

# Scenarios for IAM using Amazon SDKs
<a name="service_code_examples_iam_scenarios"></a>

The following code examples show you how to implement common scenarios in IAM with Amazon SDKs. These scenarios show you how to accomplish specific tasks by calling multiple functions within IAM or combined with other Amazon Web Services 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 Amazon ECS Service Connect](iam_example_ecs_ServiceConnect_085_section.md)
+ [Create a REST API with Lambda proxy integration](iam_example_api_gateway_GettingStarted_087_section.md)
+ [Create an Amazon ECS Linux task for the Fargate launch type](iam_example_ecs_GettingStarted_086_section.md)
+ [Create read-only and read-write users](iam_example_iam_Scenario_UserPolicies_section.md)
+ [Creating a CloudWatch dashboard with function name as a variable](iam_example_cloudwatch_GettingStarted_031_section.md)
+ [Creating an Amazon ECS service for the EC2 launch type](iam_example_ecs_GettingStarted_018_section.md)
+ [Creating an Amazon Managed Grafana workspace](iam_example_iam_GettingStarted_044_section.md)
+ [Creating your first Lambda function](iam_example_lambda_GettingStarted_019_section.md)
+ [Get started with Redshift Serverless](iam_example_redshift_GettingStarted_038_section.md)
+ [Getting Started with IoT Device Defender](iam_example_iot_GettingStarted_079_section.md)
+ [Getting started with Amazon EKS](iam_example_eks_GettingStarted_034_section.md)
+ [Getting started with Amazon MSK](iam_example_ec2_GettingStarted_057_section.md)
+ [Getting started with Amazon Redshift provisioned clusters](iam_example_redshift_GettingStarted_039_section.md)
+ [Getting started with Amazon SageMaker Feature Store](iam_example_iam_GettingStarted_028_section.md)
+ [Getting started with Config](iam_example_config_service_GettingStarted_053_section.md)
+ [Getting started with Step Functions](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 Secrets Manager](iam_example_secrets_manager_GettingStarted_073_section.md)
+ [Permission policy allows Amazon 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 Amazon 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 Amazon 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 EC2 instances using FIS](iam_example_iam_GettingStarted_069_section.md)
+ [Set up Attribute-Based Access Control](iam_example_dynamodb_Scenario_ABACSetup_section.md)
+ [Setting up Systems Manager](iam_example_iam_GettingStarted_046_section.md)
+ [Using property variables in CloudWatch dashboards to monitor multiple Lambda 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)