

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

# 部署单独的堆栈
<a name="deploying-separate-stacks"></a>

 核心堆栈是获得等候室主要功能所需的唯一堆栈。所有其他堆栈都是可选的。如果您还没有办法验证等候室发放的令牌或保护任何可能已经拥有的代币， APIs 请启动授权者堆栈。如果您需要 OpenID 身份提供者来将等候室与授权接口集成，请启动 OpenID 堆栈。样本入口策略堆栈提供了几个示例，说明如何以及何时允许更多用户进入你想要保护的网站。

## 1. 启动核心堆栈
<a name="launch-the-core-stack"></a>

 **部署用时：**大约 20 分钟 

 此自动 AWS CloudFormation 模板 AWS 在 AWS 云端部署虚拟等候室。在启动堆栈之前，您必须完成[先决条件](automated-deployment.md#prerequisites)。

**注意**  
 运行此解决方案时使用的 AWS 服务费用由您承担。有关更多详细信息，请访问本指南中的 “[成本](cost.md)” 部分，并参阅本解决方案中使用的每项 AWS 服务的定价网页。

1. 登录[AWS Management Console](https://aws.amazon.com/console/)并选择按钮以启动`aws-virtual-waiting-room-on-aws.template` AWS CloudFormation 模板。

   [https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=virtual-waiting-room-on-aws&templateURL=https:%2F%2Fsolutions-reference.s3.amazonaws.com%2Fvirtual-waiting-room-on-aws%2Flatest%2Fvirtual-waiting-room-on-aws.template](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=virtual-waiting-room-on-aws&templateURL=https:%2F%2Fsolutions-reference.s3.amazonaws.com%2Fvirtual-waiting-room-on-aws%2Flatest%2Fvirtual-waiting-room-on-aws.template)或者，您可以[下载模板](https://solutions-reference.s3.amazonaws.com/virtual-waiting-room-on-aws/latest/virtual-waiting-room-on-aws.template)作为自己实现的起点。

1.  默认情况下，该模板在美国东部（弗吉尼亚州北部）区域启动。要在其他 AWS 区域启动解决方案，请使用控制台导航栏中的区域选择器。

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

1.  在**指定堆栈详细信息**页面上，为您的解决方案堆栈分配一个名称。有关命名字符限制的信息，请参阅《*AWS Identity and Access Management 用户指南》*[中的 IAM 和 STS 限制](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html)。

1.  在 “**参数**” 下，查看此解决方案模板的参数并根据需要进行修改。该解决方案使用以下默认值。    
[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/solutions/latest/virtual-waiting-room-on-aws/deploying-separate-stacks.html)

1.  请选择 **Next**（下一步）。

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

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

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

    您可以在 AWS CloudFormation 控制台的 “状态” 列中查看堆栈的**状态**。您将在大约 20 分钟后看到 CREATE\_COMPLETE 状态。

## 2. （可选）启动授权者堆栈
<a name="optional-launch-the-authorizers-stack"></a>

 **部署用时：**大约五分钟 

1. 登录[AWS Management Console](https://aws.amazon.com/console/)并选择按钮以启动` aws-virtual-waiting-room-on-aws-authorizers.template` AWS CloudFormation 模板。

   [https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=virtual-waiting-room-on-aws-authorizers&templateURL=https:%2F%2Fsolutions-reference.s3.amazonaws.com%2Fvirtual-waiting-room-on-aws%2Flatest%2Fvirtual-waiting-room-on-aws-authorizers.template](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=virtual-waiting-room-on-aws-authorizers&templateURL=https:%2F%2Fsolutions-reference.s3.amazonaws.com%2Fvirtual-waiting-room-on-aws%2Flatest%2Fvirtual-waiting-room-on-aws-authorizers.template)或者，您可以[下载模板](https://solutions-reference.s3.amazonaws.com/virtual-waiting-room-on-aws/latest/virtual-waiting-room-on-aws-authorizers.template)作为自己实现的起点。

1.  默认情况下，该模板在美国东部（弗吉尼亚州北部）区域启动。要在其他 AWS 区域启动解决方案，请使用控制台导航栏中的区域选择器。

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

1.  在**指定堆栈详细信息**页面上，为您的解决方案堆栈分配一个名称。有关命名字符限制的信息，请参阅《*AWS Identity and Access Management 用户指南》*[中的 IAM 和 STS 限制](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html)。

1.  在 “**参数**” 下，查看此解决方案模板的参数并根据需要进行修改。该解决方案使用以下默认值。    
[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/solutions/latest/virtual-waiting-room-on-aws/deploying-separate-stacks.html)

1.  请选择 **Next**（下一步）。

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

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

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

    您可以在 AWS CloudFormation 控制台的 “状态” 列中查看堆栈的**状态**。大约五分钟后，您应该会收到 CREATE\_COMPLETE 状态。

## 3. （可选）启动 OpenID 堆栈
<a name="optional-launch-the-openid-stack"></a>

 **部署用时：**大约五分钟 

1. 登录[AWS Management Console](https://aws.amazon.com/console/)并选择按钮以启动` aws-virtual-waiting-room-on-aws-openid.template` AWS CloudFormation 模板。

   [https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=virtual-waiting-room-on-aws-openid&templateURL=https:%2F%2Fsolutions-reference.s3.amazonaws.com%2Fvirtual-waiting-room-on-aws%2Flatest%2Fvirtual-waiting-room-on-aws-openid.template](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=virtual-waiting-room-on-aws-openid&templateURL=https:%2F%2Fsolutions-reference.s3.amazonaws.com%2Fvirtual-waiting-room-on-aws%2Flatest%2Fvirtual-waiting-room-on-aws-openid.template)或者，您可以[下载模板](https://solutions-reference.s3.amazonaws.com/virtual-waiting-room-on-aws/latest/virtual-waiting-room-on-aws-openid.template)作为自己实现的起点。

1.  默认情况下，该模板在美国东部（弗吉尼亚州北部）区域启动。要在其他 AWS 区域启动解决方案，请使用控制台导航栏中的区域选择器。

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

1.  在**指定堆栈详细信息**页面上，为您的解决方案堆栈分配一个名称。有关命名字符限制的信息，请参阅《*AWS Identity and Access Management 用户指南》*[中的 IAM 和 STS 限制](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html)。

1.  在 “**参数**” 下，查看此解决方案模板的参数并根据需要进行修改。该解决方案使用以下默认值。    
[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/solutions/latest/virtual-waiting-room-on-aws/deploying-separate-stacks.html)

1.  请选择 **Next**（下一步）。

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

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

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

    您可以在 AWS CloudFormation 控制台的 “状态” 列中查看堆栈的**状态**。大约五分钟后，您应该会收到 CREATE\_COMPLETE 状态。

## 4. （可选）启动样本入口策略堆栈
<a name="optional-launch-the-sample-inlet-strategy-stack"></a>

 **部署时间：**大约两分钟 

1. 登录[AWS Management Console](https://aws.amazon.com/console/)并选择按钮以启动`aws-virtual-waiting-room-sample-inlet-strategy.template` AWS CloudFormation 模板。

   [https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=virtual-waiting-room-on-aws-sample-inlet-strategy&templateURL=https:%2F%2Fsolutions-reference.s3.amazonaws.com%2Fvirtual-waiting-room-on-aws%2Flatest%2Fvirtual-waiting-room-on-aws-sample-inlet-strategy.template](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=virtual-waiting-room-on-aws-sample-inlet-strategy&templateURL=https:%2F%2Fsolutions-reference.s3.amazonaws.com%2Fvirtual-waiting-room-on-aws%2Flatest%2Fvirtual-waiting-room-on-aws-sample-inlet-strategy.template)或者，您可以[下载模板](https://solutions-reference.s3.amazonaws.com/virtual-waiting-room-on-aws/latest/virtual-waiting-room-on-aws-sample-inlet-strategy.template)作为自己实现的起点。

1.  默认情况下，该模板在美国东部（弗吉尼亚州北部）区域启动。要在其他 AWS 区域启动解决方案，请使用控制台导航栏中的区域选择器。

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

1.  在**指定堆栈详细信息**页面上，为您的解决方案堆栈分配一个名称。有关命名字符限制的信息，请参阅《*AWS Identity and Access Management 用户指南》*[中的 IAM 和 STS 限制](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html)。

1.  在 “**参数**” 下，查看此解决方案模板的参数并根据需要进行修改。该解决方案使用以下默认值。    
[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/solutions/latest/virtual-waiting-room-on-aws/deploying-separate-stacks.html)

1.  请选择 **Next**（下一步）。

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

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

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

    您可以在 AWS CloudFormation 控制台的 “状态” 列中查看堆栈的**状态**。大约两分钟后，您应该会收到 CREATE\_COMPLETE 状态。

## 5. （可选）启动样本等候室堆栈
<a name="optional-launch-the-sample-waiting-room-stack"></a>

 **部署用时：**大约五分钟 

1. 登录[AWS Management Console](https://aws.amazon.com/console/)并选择按钮以启动`aws-virtual-waiting-room-sample.template` AWS CloudFormation 模板。

   [https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=aws-virtual-waiting-room-sample&templateURL=https:%2F%2Fsolutions-reference.s3.amazonaws.com%2Faws-virtual-waiting-room%2Flatest%2Faws-virtual-waiting-room-sample.template](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=aws-virtual-waiting-room-sample&templateURL=https:%2F%2Fsolutions-reference.s3.amazonaws.com%2Faws-virtual-waiting-room%2Flatest%2Faws-virtual-waiting-room-sample.template)或者，您可以[下载模板](https://solutions-reference.s3.amazonaws.com/aws-virtual-waiting-room/latest/aws-virtual-waiting-room-sample.template)作为自己实现的起点。

1.  默认情况下，该模板在美国东部（弗吉尼亚州北部）区域启动。要在其他 AWS 区域启动解决方案，请使用控制台导航栏中的区域选择器。

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

1.  在**指定堆栈详细信息**页面上，为您的解决方案堆栈分配一个名称。有关命名字符限制的信息，请参阅《*AWS Identity and Access Management 用户指南》*[中的 IAM 和 STS 限制](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html)。

1.  在 “**参数**” 下，查看此解决方案模板的参数并根据需要进行修改。该解决方案使用以下默认值。    
[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_cn/solutions/latest/virtual-waiting-room-on-aws/deploying-separate-stacks.html)

1.  请选择 **Next**（下一步）。

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

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

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

    您可以在 AWS CloudFormation 控制台的 “状态” 列中查看堆栈的**状态**。大约五分钟后，您应该会收到 CREATE\_COMPLETE 状态。