

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 啟動 堆疊
<a name="launch-the-stack"></a>

請依照下列步驟，在您的帳戶中部署分散式負載測試。此自動化 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_tw/solutions/latest/distributed-load-testing-on-aws/launch-the-stack.html)

1. 選擇**下一步**。

1. 在 **Configure stack options** (設定堆疊選項) 頁面，選擇 **Next** (下一步)。

1. 在**檢視** 頁面上，檢視和確認的設定。勾選確認範本將建立 AWS Identity and Access Management (IAM) 資源的方塊。

1. 選擇 **Create stack** (建立堆疊) 以部署堆疊。

您可以在狀態欄的 AWS CloudFormation 主控台中檢視堆疊**的狀態**。您應該會在大約 15 分鐘內收到 **CREATE\$1COMPLETE** 狀態。

**注意**  
除了主要 AWS Lambda 函數之外，此解決方案還包含自訂資源 Lambda 函數，僅在初始組態期間或資源更新或刪除時執行。

執行此解決方案時，自訂資源 Lambda 函數處於非作用中狀態。不過，請勿刪除此函數，因為需要管理相關聯的資源。