

# 使用 Amazon 开发工具包的 Amazon STS 场景
<a name="service_code_examples_sts_scenarios"></a>

以下代码示例显示如何通过 Amazon 开发工具包实施 Amazon STS 中的常见场景。这些场景向您展示了如何通过调用 Amazon STS 中的多个函数或与其他 Amazon Web Services 服务 结合来完成特定任务。每个场景都包含完整源代码的链接，您可以在其中找到有关如何设置和运行代码的说明。

场景以中等水平的经验为目标，可帮助您结合具体环境了解服务操作。

**Topics**
+ [代入需要 MFA 令牌的 IAM 角色](sts_example_sts_Scenario_AssumeRoleMfa_section.md)
+ [配置 Amazon ECS Service Connect](sts_example_ecs_ServiceConnect_085_section.md)
+ [为联合用户构建 URL](sts_example_sts_Scenario_ConstructFederatedUrl_section.md)
+ [使用 Lambda 代理集成创建 REST API](sts_example_api_gateway_GettingStarted_087_section.md)
+ [创建 Fargate 启动类型的 Amazon ECS Linux 任务](sts_example_ecs_GettingStarted_086_section.md)
+ [将函数名称作为变量创建 CloudWatch 控制面板](sts_example_cloudwatch_GettingStarted_031_section.md)
+ [创建 EC2 启动类型的 Amazon ECS 服务](sts_example_ecs_GettingStarted_018_section.md)
+ [创建 Amazon Managed Grafana 工作区](sts_example_iam_GettingStarted_044_section.md)
+ [获取需要 MFA 令牌的会话令牌](sts_example_sts_Scenario_SessionTokenMfa_section.md)
+ [开始使用 Amazon ECR](sts_example_ecr_GettingStarted_078_section.md)
+ [开始使用 Amazon EKS](sts_example_eks_GettingStarted_034_section.md)
+ [Amazon MSK 入门](sts_example_ec2_GettingStarted_057_section.md)
+ [Amazon OpenSearch Service 入门](sts_example_opensearch_GettingStarted_016_section.md)
+ [Amazon SageMaker Feature Store 入门](sts_example_iam_GettingStarted_028_section.md)
+ [Config 入门](sts_example_config_service_GettingStarted_053_section.md)
+ [终端用户消息发送推送服务入门](sts_example_pinpoint_GettingStarted_049_section.md)
+ [IoT Core 入门](sts_example_iot_GettingStarted_063_section.md)
+ [WAF 入门](sts_example_wafv2_GettingStarted_052_section.md)
+ [将硬编码的密钥移动到 Secrets Manager](sts_example_secrets_manager_GettingStarted_073_section.md)
+ [使用 FIS 在 EC2 实例上运行 CPU 压力测试](sts_example_iam_GettingStarted_069_section.md)
+ [设置 Systems Manager](sts_example_iam_GettingStarted_046_section.md)