

There are more AWS SDK examples available in the [AWS Doc SDK Examples](https://github.com/awsdocs/aws-doc-sdk-examples) GitHub repo.

# Scenarios for IAM using AWS SDKs
<a name="iam_code_examples_scenarios"></a>

The following code examples show you how to implement common scenarios in IAM with AWS SDKs. These scenarios show you how to accomplish specific tasks by calling multiple functions within IAM or combined with other AWS services. Each scenario includes a link to the complete source code, where you can find instructions on how to set up and run the code. 

Scenarios target an intermediate level of experience to help you understand service actions in context.

**Topics**
+ [Build and manage a resilient service](iam_example_cross_ResilientService_section.md)
+ [Configure container service connectivity](iam_example_ecs_ServiceConnect_085_section.md)
+ [Create a container task for the serverless launch type](iam_example_ecs_GettingStarted_086_section.md)
+ [Create a rest API with function proxy integration](iam_example_api_gateway_GettingStarted_087_section.md)
+ [Create read-only and read-write users](iam_example_iam_Scenario_UserPolicies_section.md)
+ [Creating a container service for virtual machine instances](iam_example_ecs_GettingStarted_018_section.md)
+ [Creating a managed monitoring workspace](iam_example_iam_GettingStarted_044_section.md)
+ [Creating a monitoring dashboard with function name as a variable](iam_example_cloudwatch_GettingStarted_031_section.md)
+ [Creating your first serverless function](iam_example_lambda_GettingStarted_019_section.md)
+ [Get started with serverless data warehouses](iam_example_redshift_GettingStarted_038_section.md)
+ [Getting started with configuration management](iam_example_config_service_GettingStarted_053_section.md)
+ [Getting started with internet of things device protection](iam_example_iot_GettingStarted_079_section.md)
+ [Getting started with machine learning feature stores](iam_example_iam_GettingStarted_028_section.md)
+ [Getting started with managed kubernetes clusters](iam_example_eks_GettingStarted_034_section.md)
+ [Getting started with managed streaming](iam_example_ec2_GettingStarted_057_section.md)
+ [Getting started with provisioned data warehouse clusters](iam_example_redshift_GettingStarted_039_section.md)
+ [Getting started with workflow orchestration](iam_example_iam_GettingStarted_080_section.md)
+ [Manage access keys](iam_example_iam_Scenario_ManageAccessKeys_section.md)
+ [Manage policies](iam_example_iam_Scenario_PolicyManagement_section.md)
+ [Manage roles](iam_example_iam_Scenario_RoleManagement_section.md)
+ [Manage your account](iam_example_iam_Scenario_AccountManagement_section.md)
+ [Moving hardcoded secrets to secure secret storage](iam_example_secrets_manager_GettingStarted_073_section.md)
+ [Permission policy allows AWS Compute Optimizer Automation to apply recommended actions](iam_example_iam-policies.AWSMettleDocs.latest.userguide.managed-policies.xml.10_section.md)
+ [Permission policy to enable Automation across your organization](iam_example_iam-policies.AWSMettleDocs.latest.userguide.automation.xml.2_section.md)
+ [Permission policy to enable Automation for your account](iam_example_iam-policies.AWSMettleDocs.latest.userguide.automation.xml.1_section.md)
+ [Permission policy to grant full access to Compute Optimizer Automation for a management account of an organization](iam_example_iam-policies.AWSMettleDocs.latest.userguide.automation.xml.5_section.md)
+ [Permission policy to grant full access to Compute Optimizer Automation for standalone AWS accounts](iam_example_iam-policies.AWSMettleDocs.latest.userguide.automation.xml.3_section.md)
+ [Permission policy to grant read-only access to Compute Optimizer Automation for a management account of an organization](iam_example_iam-policies.AWSMettleDocs.latest.userguide.automation.xml.6_section.md)
+ [Permission policy to grant read-only access to Compute Optimizer Automation for standalone AWS accounts](iam_example_iam-policies.AWSMettleDocs.latest.userguide.automation.xml.4_section.md)
+ [Permission policy to grant service-linked role permissions for Compute Optimization Automation](iam_example_iam-policies.AWSMettleDocs.latest.userguide.slr-automation.xml.1_section.md)
+ [Roll back a policy version](iam_example_iam_Scenario_RollbackPolicyVersion_section.md)
+ [Run CPU stress tests on virtual machine instances using fault injection](iam_example_iam_GettingStarted_069_section.md)
+ [Set up Attribute-Based Access Control](iam_example_dynamodb_Scenario_ABACSetup_section.md)
+ [Setting up systems management](iam_example_iam_GettingStarted_046_section.md)
+ [Using property variables in monitoring dashboards to monitor multiple serverless functions](iam_example_iam_GettingStarted_032_section.md)
+ [Work with Streams and Time-to-Live](iam_example_dynamodb_Scenario_StreamsAndTTL_section.md)
+ [Work with the IAM Policy Builder API](iam_example_iam_Scenario_IamPolicyBuilder_section.md)