

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 启动 堆栈
<a name="launch-the-stack"></a>

按照以下步骤将 AWS 上的分布式负载测试解决方案部署到您的账户。此自动化 AWS CloudFormation 模板在 AWS 上部署分布式负载测试。

1. 登录 AWS 管理控制台并选择启动 CloudFormation 模板的按钮。

    [https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?templateURL=https://solutions-reference.s3.amazonaws.com/distributed-load-testing-on-aws/latest/distributed-load-testing-on-aws.template&redirectId=ImplementationGuide](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?templateURL=https://solutions-reference.s3.amazonaws.com/distributed-load-testing-on-aws/latest/distributed-load-testing-on-aws.template&redirectId=ImplementationGuide) 

   或者，您可以[下载模板](https://solutions-reference.s3.amazonaws.com/distributed-load-testing-on-aws/latest/distributed-load-testing-on-aws.template)作为自己实现的起点。

1. 默认情况下，此模板在美国东部（弗吉尼亚州北部）区域启动。要在不同的 AWS 区域启动此解决方案，请使用控制台导航栏中的区域选择器。
**注意**  
该解决方案使用 Amazon Cognito，目前仅在特定的 AWS 区域可用。因此，您必须在提供 Amazon Cognito 的 AWS 地区启动此解决方案。有关各地区的最新可用服务，请参阅 [AWS 区域服务列表](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/)。

1. 在**创建堆栈**页面上，验证 **Amazon S3 URL** 文本框中是否显示了正确的模板 URL，然后选择**下一步**。

1. 在**指定堆栈详细信息**页面上，为您的解决方案堆栈分配一个名称。

1. 在**参数**下，检查模板的参数，并根据需要进行修改。该解决方案使用以下默认值。    
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/solutions/latest/distributed-load-testing-on-aws/launch-the-stack.html)

1. 选择 **Next**(下一步)。

1. 在**配置堆栈选项**页面上，请选择**下一步**。

1. 在**审核**页面上，审核并确认设置。选中确认模板将创建 AWS Identity and Access Management（AWS IAM）资源的复选框。

1. 选择 **Create stack（创建堆栈）**以部署堆栈。

您可以在 AWS CloudFormation 控制台的 “状态” 列中查看堆栈的**状态**。您将在大约 15 分钟后收到 **“创建\$1完成**” 状态。

**注意**  
除了主要 AWS Lambda 函数外，该解决方案还包括自定义资源 Lambda 函数，该函数仅在初始配置期间或资源更新或删除时运行。

运行此解决方案时，自定义资源 Lambda 函数处于非活动状态。但是，请勿删除此功能，因为这是管理关联资源所必需的。