

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

# 安装 PCUI
安装 Amazon ParallelCluster 用户界面

用户界 Amazon ParallelCluster 面 (PCUI) 是一个基于 Web 的用户界面，它镜像 Amazon ParallelCluster `pcluster` CLI，同时提供类似于控制台的体验。您可以在中安装并访问 PCUI。 Amazon Web Services 账户当你运行它时，PCU Amazon ParallelCluster I 会访问你的 Amazon API Gateway 上托管的 API 实例。 Amazon Web Services 账户有关 PCUI 的更多信息，请参阅 [Amazon ParallelCluster 用户界面](pcui-using-v3.md)。

**先决条件：**
+ 你必须有一个 Amazon Web Services 账户
+ 您必须有权访问 Amazon Web Services 管理控制台

有关更多信息，请参阅 [设置一个 Amazon Web Services 账户](install-v3.md#setting-up)。

**Topics**
+ [

## 安装 PCUI
](#install-pcui-steps-v3)
+ [

## 堆栈参数
](#install-pcui-steps-v3-stack-params)
+ [

# 配置自定义域
](tutorials_08_custom_domain-v3.md)
+ [

# Amazon Cognito 用户群体选项
](install-pcui-cognito-v3.md)
+ [

# 识别 Amazon ParallelCluster 和 PCUI 版本
](install-pcui-version-v3.md)
+ [

# PCUI 成本
](install-pcui-costs-v3.md)

## 安装 PCUI


要安装 Amazon ParallelCluster 用户界面 (PCUI) 的实例，请选择用于 Amazon CloudFormation 创建集群 Amazon Web Services 区域 的快速创建链接。该快速创建 URL 会将您引导至**创建堆栈向导**，您可以在其中提供快速创建堆栈模板输入并部署堆栈。*有关 CloudFormation 快速创建堆栈的更多信息，请参阅《用户指南》中的[为堆栈创建快速创建链接](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/cfn-console-create-stacks-quick-create-links.html)。Amazon CloudFormation *

**注意**  
您只能使用与安装 PCUI 相同的 Amazon ParallelCluster 版本创建和编辑集群或构建映像。

**使用 Amazon CloudFormation 快速创建链接部署包含嵌套的 Amazon Cognito、API Gateway 和 Amazon EC2 Systems Manager 堆栈的 PCUI 堆栈。**

1. 登录到 Amazon Web Services 管理控制台。

1. 通过从此处的列表中选择 Amazon Web Services 区域 快速创建链接来部署 PCUI。这将带您进入控制台中的 “ CloudFormation **创建堆栈向导”**。
   + [us-east-1](https://us-east-1.console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/create/review?stackName=parallelcluster-ui&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui.yaml)
   + [us-east-2](https://us-east-2.console.aws.amazon.com/cloudformation/home?region=us-east-2#/stacks/create/review?stackName=parallelcluster-ui&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui.yaml)
   + [us-west-1](https://us-west-1.console.aws.amazon.com/cloudformation/home?region=us-west-1#/stacks/create/review?stackName=parallelcluster-ui&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui.yaml)
   + [us-west-2](https://us-west-2.console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/create/review?stackName=parallelcluster-ui&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui.yaml)
   + [eu-west-1](https://eu-west-1.console.aws.amazon.com/cloudformation/home?region=eu-west-1#/stacks/create/review?stackName=parallelcluster-ui&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui.yaml)
   + [eu-west-2](https://eu-west-2.console.aws.amazon.com/cloudformation/home?region=eu-west-2#/stacks/create/review?stackName=parallelcluster-ui&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui.yaml)
   + [eu-west-3](https://eu-west-3.console.aws.amazon.com/cloudformation/home?region=eu-west-3#/stacks/create/review?stackName=parallelcluster-ui&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui.yaml)
   + [eu-central-1](https://eu-central-1.console.aws.amazon.com/cloudformation/home?region=eu-central-1#/stacks/create/review?stackName=parallelcluster-ui&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui.yaml)
   + [eu-north-1](https://eu-north-1.console.aws.amazon.com/cloudformation/home?region=eu-north-1#/stacks/create/review?stackName=parallelcluster-ui&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui.yaml)
   + [me-south-1](https://me-south-1.console.aws.amazon.com/cloudformation/home?region=me-south-1#/stacks/create/review?stackName=parallelcluster-ui&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui.yaml)
   + [sa-east-1](https://sa-east-1.console.aws.amazon.com/cloudformation/home?region=sa-east-1#/stacks/create/review?stackName=parallelcluster-ui&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui.yaml)
   + [ca-central-1](https://ca-central-1.console.aws.amazon.com/cloudformation/home?region=ca-central-1#/stacks/create/review?stackName=parallelcluster-ui&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui.yaml)
   + [ap-northeast-1](https://ap-northeast-1.console.aws.amazon.com/cloudformation/home?region=ap-northeast-1#/stacks/create/review?stackName=parallelcluster-ui&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui.yaml)
   + [ap-northeast-2](https://ap-northeast-2.console.aws.amazon.com/cloudformation/home?region=ap-northeast-2#/stacks/create/review?stackName=parallelcluster-ui&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui.yaml)
   + [ap-south-1](https://ap-south-1.console.aws.amazon.com/cloudformation/home?region=ap-south-1#/stacks/create/review?stackName=parallelcluster-ui&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui.yaml)
   + [ap-southeast-1](https://ap-southeast-1.console.aws.amazon.com/cloudformation/home?region=ap-southeast-1#/stacks/create/review?stackName=parallelcluster-ui&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui.yaml)
   + [ap-southeast-2](https://ap-southeast-2.console.aws.amazon.com/cloudformation/home?region=ap-southeast-2#/stacks/create/review?stackName=parallelcluster-ui&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui.yaml)
   + [us-gov-west-1](https://console.amazonaws-us-gov.com/cloudformation/home?region=us-gov-west-1#/stacks/create/review?stackName=parallelcluster-ui&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui.yaml)

1. 输入有效的**管理员**电子邮件地址和**ParallelCluster 版本**。

   部署成功完成后，PCUI 将向该电子邮件地址发送一个临时密码，您可以使用该密码访问 PCUI。如果您在保存或使用该临时密码之前删除了电子邮件，则必须删除堆栈并重新安装 PCUI。

1. 将表单的其余部分留空或输入（可选）参数的值以自定义 PCUI 构建。

1. 记下堆栈名称，以供后续步骤中使用。

1. 导航至**功能**。同意这些 CloudFormation 能力。

1. 选择**创建**。完成 Amazon ParallelCluster API 和 PCUI 部署大约需要 15 分钟。

1. 创建堆栈后查看堆栈的详细信息。

1. 部署完成后，打开发送到您输入的地址且包含临时密码的管理员电子邮件。使用它来访问 PCUI。（请记住，如果您在登录 PCUI 之前永久删除了电子邮件，则必须删除您创建的 PCUI 堆栈并重新安装 PCUI。

1. 在 Amazon CloudFormation 控制台堆栈列表中，选择您在上一步中记下的堆栈名称的链接。

1. 在**堆栈详细信息**中，选择**输出**，然后选择名为 ***Stackname*URL** 的密钥的链接以打开 PCUI（其中***Stackname***是您在上一步中记下的名称）。

1. 输入临时密码。按照步骤创建自己的密码并重新登录。

1. 现在，您已进入所选的 PCUI Amazon Web Services 区域 的主页。

1. 要开始使用 PCUI，请参阅[使用 PCUI 配置和创建集群](configure-create-pcui-v3.md)。

**注意**  
 PCUI 会话的默认持续时间为 5 分钟，这是 Cognito 在 PCUI 2023.12.0 之前提供的最小值。因此，预计在会话到期之前，从 Cognito 用户池中移除的用户仍能访问系统。

## 堆栈参数


**AdditionalPoliciesPCAPI：**  
描述：（可选）要附加到 Lambda 函数 ParallelCluster 默认执行角色的其他 IAM 策略的 ARN。只能指定一个策略。  
类型：字符串  
默认：”  
AllowedPattern: “^ (arn:. \$1: iam::。 \$1: policy\$1\$1/([a-za-z0-9\$1-] \$1)) \$1 () \$1”

**AdminUserEmail:**  
描述：默认情况下要设置的管理用户的电子邮件地址（仅适用于新的 Cognito 实例）。  
类型：字符串  
默认：”

**CognitoCustomDomain:**  
描述：（可选）Cognito 的自定义域名。如果省略，则将使用默认 Cognito 域名。  
类型：字符串  
默认：”

**CognitoCustomDomainCertificateArn:**  
描述：（可选）为 Cognito 自定义域名颁发的 ACM 证书的 ARN。只有在指定时`CognitoCustomDomain`才需要这样做。  
类型：字符串  
默认：”

**CustomDomain:**  
描述：（可选）自定义域名。如果省略，则将使用默认域名。  
类型：字符串  
默认：”

**CustomDomainCertificateArn:**  
描述：（可选）为自定义域颁发的 ACM 证书的 ARN。只有在指定时`CustomDomain`才需要这样做。  
类型：字符串  
默认：”

**IAMRoleAndPolicyPrefix:**  
描述：应用于每个 IAM 角色和策略名称的前缀（最大长度：10）。[ParallelCluster >= 3.8.0]  
类型：字符串  
默认：”  
MaxLength: 10

**ImageBuilderSubnetId:**  
描述：（可选）选择用于构建容器镜像的子网。子网必须为公有子网并自动分配为公 IPs有子网。如果未选中，则将使用默认子网。  
类型：字符串  
默认：”

**ImageBuilderVpcId:**  
描述：（可选）选择用于构建容器镜像的 VPC。如果未选中，则将使用默认 VPC。  
类型：字符串  
默认：”

**InfrastructureBucket:**  
描述：（可选）存储 CloudFormation 文件的 S3 存储桶。只有在测试对基础架构本身所做的更改时才更改此参数。  
类型：字符串  
默认：”

**LambdaSecurityGroupIds:**  
描述：要与 PCUI Lambda 函数关联的安全组列表，以逗号分隔。  
类型： CommaDelimitedList  
默认：”

**LambdaSubnetIds:**  
描述：要与 PCUI Lambda 函数关联的子网列表， IDs 以逗号分隔。这些子网应为私有子网，并与您的 VPC 终端节点相关联。  
类型： CommaDelimitedList  
默认：”

**PermissionsBoundaryPolicy:**  
描述：用作 ParallelCluster UI 基础设施创建的每个 IAM 角色的权限边界的 IAM 策略的 ARN。”  
类型：字符串  
默认：”  
AllowedPattern: “^ (arn:. \$1: iam::。 \$1: policy\$1\$1/([a-za-z0-9\$1-] \$1)) \$1 () \$1”

**PermissionsBoundaryPolicyPCAPI：**  
描述：用作 ParallelCluster API 基础设施创建的每个 IAM 角色的权限边界的 IAM 策略的 ARN。[ParallelCluster >= 3.8.0]  
类型：字符串  
默认：”  
AllowedPattern: “^ (arn:. \$1: iam::。 \$1: policy\$1\$1/([a-za-z0-9\$1-] \$1)) \$1 () \$1”

**PublicEcrImageUri:**  
描述：如果指定，则指定 UI 容器的 Lambda 的 Docker 镜像 ParallelCluster 的 URI。  
类型：字符串  
默认：public.ecr。 aws/pcm/parallelcluster-ui: 2024.11.0

**SNSRole:**  
描述：之前部署的 PCUI Cognito 堆栈的 SNSRole ARN。留空可创建一个新的。  
类型：字符串  
默认：”

**UserPoolAuthDomain:**  
描述：之前部署 UserPoolAuthDomain 的 PCUI Cognito 用户池。留空可创建一个新的。  
类型：字符串  
默认：”

**UserPoolId:**  
描述：之前部署 UserPoolId 的 PCUI Cognito 用户池。留空可创建一个新的。  
类型：字符串  
默认：”

**版本：**  
描述： Amazon ParallelCluster 要部署的版本。  
类型：字符串  
默认值：3.11.1

**VpcEndpointId:**  
描述：输入带有 execute-API 服务类型接口的 VPC 终端节点，以启用私有 PCUI 实现。启用后，API 将仅接受来自给定 VPC 内部的请求。  
类型：字符串  
默认：”

# 配置自定义域


了解如何为 Amazon ParallelCluster 用户界面 (PCUI) 配置自定义网域。UI 托管在您的 Amazon Web Services 账户中的 Amazon API Gateway 上。您可以在 API Gateway 控制台中配置自定义域。

**先决条件：**
+ 你有一个 Amazon Web Services 账户.
+ 您拥有域。
+ 域根目录是可解析的。例如，如果您想`xyz.example.com`用作自定义域，则根域`example.com`必须是可解析的。这意味着您必须至少有 A 记录才能`example.com`指向 IP。如果你没有这样的记录，请添加一个指向 0.0.0.0 的虚拟记录。
+ 您已在 us-east-1 中为 Cognito 创建自定义域名证书或将其导入到 Amazon Certificate Manager (ACM) 中。
+ 您拥有更改域名系统（DNS）设置的必要权限。

**Topics**
+ [

# 部署 PCUI
](tutorials_08_custom_domain-v3-deploy-pcui.md)
+ [

# 配置 DNS
](tutorials_08_custom_domain-v3-config-dns.md)

# 部署 PCUI


完成以下步骤以创建或更新您的 Amazon ParallelCluster UI (PCUI) 部署，使其使用您的自定义域。

在此示例中，我们假设您要使用自定义域 `xyz.example.com` 部署 PCUI，并使用自定义域 `auth-xyz.example.com` 部署 Amazon Cognito 接口。

**注意**  
请注意，自定义 Amazon Cognito 域不是必需的，可以保留默认值。为了完整起见，我们将此自定义设置包括在内。

**注意**  
 Amazon GovCloud (US) Regions不支持 Amazon Cognito 的自定义域。

为此，请使用以下参数部署 PCUI 堆栈：
+ **CustomDomain:** *xyz.example.com*.
+ **CustomDomainCertificateArn：**亚马逊资源名称 (ARN) 的 ACM 证书。*xyz.example.com*
+ **CognitoCustomDomain:** *auth-xyz.example.com*.
+ **CognitoCustomDomainCertificateArn**到 ACM 证书的 Amazon 资源名称 (ARN)。*xyz.example.com*

# 配置 DNS


完成以下步骤来配置您的域名服务 (DNS)，以便 Amazon ParallelCluster 用户界面 (PCUI) 和 Amazon Cognito 对所需的自定义域名做出响应。

此示例假设您要使用自定义域 `xyz.example.com` 部署 PCUI，并使用自定义域 `auth-xyz.example.com` 部署 Amazon Cognito 接口。

1. 使用以下参数部署 PCUI 堆栈：
   + **CustomDomainEndpoint：**在您的 DNS 中创建 A 记录*xyz.example.com*，该记录指向输出中指定的别名。
   + **CognitoCustomDomainEndpoint：**在您的 DNS 中创建 A 记录*auth-xyz.example.com*，该记录指向输出中指定的别名。

1. 等待约 10 分钟，以便可以分发 DNS 更改。

1. 分发 DNS 更改后，PCUI 对 *xyz.example.com/pcui* 进行响应，Amazon Cognito 身份验证页面对 *auth-xyz.example.com* 进行响应。

# Amazon Cognito 用户群体选项


以下各节涉及 CloudFormation 快速创建链接或快速 URLs创建。快速创建 URL 会将您带到**创建堆栈向导**，您可以在其中提供快速创建堆栈模板输入并部署堆栈。*有关 CloudFormation 快速创建堆栈的更多信息，请参阅《用户指南》中的[为堆栈创建快速创建链接](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/cfn-console-create-stacks-quick-create-links.html)。Amazon CloudFormation *

要维护可用于多个用户 Amazon ParallelCluster 界面 (PCUI) 实例的 Amazon Cognito 用户池，请考虑以下选项：
+ 使用链接到基于嵌套堆栈创建的 Amazon Cognito 用户池的现有 PCUI 实例。 CloudFormation 这是您使用快速创建链接部署 PCUI 并将所有 Amazon Cognito 参数留空时创建的内容。
+ 首先，部署一个独立的 Amazon Cognito 用户池。然后，部署一个与您刚刚部署的独立 Amazon Cognito 用户池关联的新 PCUI 实例。这样，您可以将 Amazon Cognito 部署与 PCUI 部署分开。请注意，非嵌套的 PCUI CloudFormation 堆栈更易于更新。

# 将现有 Amazon Cognito 用户池与新 PCUI 实例结合使用


完成以下步骤将现有 Amazon Cognito 用户池与新 PCUI 实例结合使用

**将现有 Amazon Cognito 用户池与新 PCUI 实例结合使用**

1. 在**CloudFormation 控制台**中，选择包含要用于多个 PCUI 实例的 Amazon Cognito 用户池的 PCUI 堆栈。

1. 导航到创建 Amazon Cognito 用户群体的嵌套堆栈。

1. 选择**输出**选项卡。

1. 复制以下参数的值：
   + `UserPoolId`
   + `UserPoolAuthDomain`
   + `SNSRole`

1. 使用快速创建链接并用您复制的输出填充所有 `External PCUI Amazon Cognito` 参数，部署一个新 PCUI 实例。这可防止新 PCUI 堆栈创建新用户池，并将其链接到从嵌套堆栈创建的现有 Amazon Cognito 用户池。您可以随后部署具有相同参数值的新 PCUI 实例，并可以将它们链接到 Amazon Cognito 用户池。

# 创建独立的 Amazon Cognito 用户群体


**创建独立的 Amazon Cognito 用户池**

1. 从以下列表中选择一个标有相同 Amazon Web Services 区域 标签的快速创建链接，即可启动仅限 Amazon Cognito 的堆栈：
   + [us-east-1](https://us-east-1.console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/create/review?stackName=parallelcluster-ui-cognito&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui-cognito.yaml)
   + [us-east-2](https://us-east-2.console.aws.amazon.com/cloudformation/home?region=us-east-2#/stacks/create/review?stackName=parallelcluster-ui-cognito&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui-cognito.yaml)
   + [us-west-1](https://us-west-1.console.aws.amazon.com/cloudformation/home?region=us-west-1#/stacks/create/review?stackName=parallelcluster-ui-cognito&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui-cognito.yaml)
   + [us-west-2](https://us-west-2.console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/create/review?stackName=parallelcluster-ui-cognito&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui-cognito.yaml)
   + [eu-west-1](https://eu-west-1.console.aws.amazon.com/cloudformation/home?region=eu-west-1#/stacks/create/review?stackName=parallelcluster-ui-cognito&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui-cognito.yaml)
   + [eu-west-2](https://eu-west-2.console.aws.amazon.com/cloudformation/home?region=eu-west-2#/stacks/create/review?stackName=parallelcluster-ui-cognito&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui-cognito.yaml)
   + [eu-west-3](https://eu-west-3.console.aws.amazon.com/cloudformation/home?region=eu-west-3#/stacks/create/review?stackName=parallelcluster-ui-cognito&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui-cognito.yaml)
   + [eu-central-1](https://eu-central-1.console.aws.amazon.com/cloudformation/home?region=eu-central-1#/stacks/create/review?stackName=parallelcluster-ui-cognito&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui-cognito.yaml)
   + [eu-north-1](https://eu-north-1.console.aws.amazon.com/cloudformation/home?region=eu-north-1#/stacks/create/review?stackName=parallelcluster-ui-cognito&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui-cognito.yaml)
   + [me-south-1](https://me-south-1.console.aws.amazon.com/cloudformation/home?region=me-south-1#/stacks/create/review?stackName=parallelcluster-ui-cognito&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui-cognito.yaml)
   + [sa-east-1](https://sa-east-1.console.aws.amazon.com/cloudformation/home?region=sa-east-1#/stacks/create/review?stackName=parallelcluster-ui-cognito&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui-cognito.yaml)
   + [ca-central-1](https://ca-central-1.console.aws.amazon.com/cloudformation/home?region=ca-central-1#/stacks/create/review?stackName=parallelcluster-ui-cognito&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui-cognito.yaml)
   + [ap-northeast-1](https://ap-northeast-1.console.aws.amazon.com/cloudformation/home?region=ap-northeast-1#/stacks/create/review?stackName=parallelcluster-ui-cognito&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui-cognito.yaml)
   + [ap-northeast-2](https://ap-northeast-2.console.aws.amazon.com/cloudformation/home?region=ap-northeast-2#/stacks/create/review?stackName=parallelcluster-ui-cognito&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui-cognito.yaml)
   + [ap-south-1](https://ap-south-1.console.aws.amazon.com/cloudformation/home?region=ap-south-1#/stacks/create/review?stackName=parallelcluster-ui-cognito&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui-cognito.yaml)
   + [ap-southeast-1](https://ap-southeast-1.console.aws.amazon.com/cloudformation/home?region=ap-southeast-1#/stacks/create/review?stackName=parallelcluster-ui-cognito&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui-cognito.yaml)
   + [ap-southeast-2](https://ap-southeast-2.console.aws.amazon.com/cloudformation/home?region=ap-southeast-2#/stacks/create/review?stackName=parallelcluster-ui-cognito&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui-cognito.yaml)
   + [us-gov-west-1](https://console.amazonaws-us-gov.com/cloudformation/home?region=us-gov-west-1#/stacks/create/review?stackName=parallelcluster-ui-cognito&templateURL=https://parallelcluster-ui-release-artifacts-us-east-1.s3.us-east-1.amazonaws.com/parallelcluster-ui-cognito.yaml)

1. 堆栈创建完成后，选择**输出**选项卡并复制以下参数的值：
   + `UserPoolId`
   + `UserPoolAuthDomain`
   + `SNSRole`

1. 通过选择 PCUI 快速启动链接并用您复制的值填充所有 `External PCUI Amazon Cognito` 参数，部署一个新 PCUI 实例。新的 PCUI 实例链接到独立的 Amazon Cognito 用户池，不会创建嵌套堆栈或新的用户池。您可以随后部署具有相同参数值的新 PCUI 实例，并可以将它们链接到独立的 Amazon Cognito 用户池。

# 识别 Amazon ParallelCluster 和 PCUI 版本


**要识别 Amazon ParallelCluster 和 PCUI 版本，请执行以下操作：**

1. 在 CloudFormation 控制台中，选择一个 PCUI 堆栈。

1. 选择**参数**选项卡。

1.  Amazon ParallelCluster 版本是参数**版本**的值。

1. PCUI 版本位于该**PublicEcrImageUri**值的末尾。例如，如果值为 `public.ecr.aws/pcui/parallelcluster-ui-awslambda:2023.02`，则版本为 `2023.02`。

**注意**  
要将 PCUI 更新到最新 Amazon ParallelCluster 版本，请选择[快速创建](install-pcui-v3.md#install-pcui-steps-v3)链接启动新堆栈。

# PCUI 成本


PCUI 基于无服务器架构构建，在大多数情况下，您可以在 Amazon 免费套餐类别中使用它。下表列出了 PCUI Amazon Web Services 服务 所依赖的及其免费套餐限制。通常情况下，使用成本估计低于每月一美元。


| 服务 | Amazon 免费套餐 | 
| --- | --- | 
|  Amazon Cognito  |  每月 50000 个活跃用户  | 
|  Amazon API Gateway  |  100 万次 rest API 调用  | 
|  Amazon Lambda  |  每月 100 万次免费请求和每月 400000 GB-秒的计算时间  | 
|  EC2 Image Builder  |  不收取任何费用，EC2 除外  | 
|  Amazon Elastic Compute Cloud  |  15 分钟一次性容器映像构建  | 
|  Amazon CloudFormation  |  5 GB 数据（摄取、存档存储和通过 Logs Insights 查询扫描的数据）  | 