

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

# 安裝 PCUI
<a name="install-pcui-v3"></a>

UI AWS ParallelCluster (PCUI) 是以 Web 為基礎的使用者介面，可鏡射 AWS ParallelCluster `pcluster`CLI，同時提供類似主控台的體驗。您可以在 中安裝和存取 PCUI AWS 帳戶。當您執行它時，PCUI 會存取 中 Amazon AWS ParallelCluster API Gateway 上託管的 API 執行個體 AWS 帳戶。 Amazon API Gateway 如需 PCUI 的詳細資訊，請參閱 [AWS ParallelCluster UI](pcui-using-v3.md)。

**事前準備：**
+ 您必須擁有 AWS 帳戶
+ 您必須能夠存取 AWS 管理主控台

如需詳細資訊，請參閱[設定 AWS 帳戶](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)
+ [識別 AWS ParallelCluster 和 PCUI 版本](install-pcui-version-v3.md)
+ [PCUI 成本](install-pcui-costs-v3.md)

## 安裝 PCUI
<a name="install-pcui-steps-v3"></a>

若要安裝 UI AWS ParallelCluster (PCUI) 的執行個體，請為您建立叢集 AWS 區域 的 選擇一個 CloudFormation 快速建立連結。快速建立 URL 會帶您前往**建立堆疊精靈**，您可以在其中提供快速建立堆疊範本輸入並部署堆疊。如需 CloudFormation 快速建立堆疊的詳細資訊，請參閱*AWS CloudFormation 《 使用者指南*》中的[為堆疊建立快速建立連結](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-console-create-stacks-quick-create-links.html)。

**注意**  
您只能使用安裝 PCUI 所用的相同 AWS ParallelCluster 版本來建立和編輯叢集或建置映像。

**使用 AWS CloudFormation 快速建立連結來部署具有巢狀 Amazon Cognito、API Gateway 和 Amazon EC2 Systems Manager 堆疊的 PCUI 堆疊。**

1. 登入 AWS 管理主控台。

1. 從此處清單中選擇 AWS 區域 快速建立連結來部署 PCUI。這將帶您前往 主控台中的 CloudFormation **Create Stack Wizard**。
   + [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. 選擇**建立**。完成 AWS ParallelCluster API 和 PCUI 部署大約需要 15 分鐘。

1. 在建立堆疊時檢視堆疊詳細資訊。

1. 部署完成後，開啟傳送至您輸入之地址且包含臨時密碼的管理員電子郵件。使用 存取 PCUI。（請記住，如果您在登入 PCUI 之前永久刪除電子郵件，則必須刪除您建立的 PCUI 堆疊，然後重新安裝 PCUI。

1. 在堆疊的 CloudFormation 主控台清單中，選擇您在上一個步驟中記下的堆疊名稱連結。

1. 在**堆疊詳細資訊**中，選擇**輸出**，然後選取名為 ***Stackname* URL **的金鑰連結以開啟 PCUI （其中 ***Stackname*** 是您在上一個步驟中記下的名稱）。

1. 輸入臨時密碼。依照步驟建立您自己的密碼並再次登入。

1. 您現在位於 AWS 區域 所選 中 PCUI 的首頁。

1. 若要開始使用 PCUI，請參閱 [使用 PCUI 設定和建立叢集](configure-create-pcui-v3.md)。

**注意**  
 PCUI 工作階段的預設持續時間為 5 分鐘，這是 Cognito 自 PCUI 2023.12.0 起提供的最小值。因此，預期從 Cognito 使用者集區移除的使用者仍然可以存取系統，直到工作階段過期為止。

## 堆疊參數
<a name="install-pcui-steps-v3-stack-params"></a>

**AdditionalPoliciesPCAPI：**  
描述：（選用） 附加至 ParallelCluster Lambda 函數預設執行角色之其他 IAM 政策的 ARN。只能指定一個政策。  
類型：字串  
預設：''  
AllowedPattern： "^(arn：.\$1：iam：：.\$1：policy\$1\$1/(【a-zA-Z0-9\$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"

**PermissionsBoundaryPolicyPCAPI：**  
描述：IAM 政策的 ARN，用於 ParallelCluster API 基礎設施建立的每個 IAM 角色的許可界限。【ParallelCluster >= 3.8.0】  
類型：字串  
預設：''  
AllowedPattern： "^(arn：.\$1：iam：：.\$1：policy\$1\$1/(【a-zA-Z0-9\$1-】＋)))\$1()\$1"

**PublicEcrImageUri：**  
描述：指定時，ParallelCluster UI 容器 Lambda 的 Docker 映像 URI。  
類型：字串  
預設：public.ecr.aws/pcm/parallelcluster-ui：2024.11.0

**SNSRole：**  
描述：先前部署之 PCUI Cognito Stack 的 SNSRole ARN。保留空白以建立新的。  
類型：字串  
預設：''

**UserPoolAuthDomain：**  
描述：先前部署之 PCUI Cognito 使用者集區的 UserPoolAuthDomain。保留空白以建立新的。  
類型：字串  
預設：''

**UserPoolId：**  
描述：先前部署之 PCUI Cognito 使用者集區的 UserPoolId。保留空白以建立新的。  
類型：字串  
預設：''

**版本：**  
描述：要部署的 AWS ParallelCluster 版本。  
類型：字串  
預設：3.11.1

**VpcEndpointId：**  
描述：輸入 VPC 端點，其類型界面適用於 execute-api 服務，以啟用私有 PCUI 實作。啟用時，API 只會接受來自指定 VPC 內的請求。  
類型：字串  
預設：''

# 設定自訂網域
<a name="tutorials_08_custom_domain-v3"></a>

了解如何設定 UI (PCUI) AWS ParallelCluster 的自訂網域。UI 託管於 中的 Amazon API Gateway AWS 帳戶。您可以在 API Gateway 主控台中設定自訂網域。

**事前準備：**
+ 您有 AWS 帳戶。
+ 您擁有網域。
+ 網域根目錄是可解析的。例如，如果您想要使用 `xyz.example.com`做為自訂網域，則根網域`example.com`必須是可解析的。這表示您至少必須有`example.com`指向 IP 的 A 記錄。如果您沒有此類記錄，請新增指向 0.0.0.0 的虛擬記錄。
+ 您已在 us-east-1 中建立或匯入 Cognito 的自訂網域憑證至 AWS Certificate Manager (ACM)。
+ 您擁有變更網域名稱系統 (DNS) 設定的必要許可。

**Topics**
+ [部署 PCUI](tutorials_08_custom_domain-v3-deploy-pcui.md)
+ [設定 DNS](tutorials_08_custom_domain-v3-config-dns.md)

# 部署 PCUI
<a name="tutorials_08_custom_domain-v3-deploy-pcui"></a>

請完成下列步驟，以建立或更新 UI AWS ParallelCluster (PCUI) 部署，使其將使用您的自訂網域。

在此範例中，我們假設您想要部署具有自訂網域 的 PCUI，`xyz.example.com`以及具有自訂網域 的 Amazon Cognito 介面`auth-xyz.example.com`。

**注意**  
請注意，自訂 Amazon Cognito 網域並非必要項目，而且可以保留預設值。我們為完整性納入此自訂項目。

**注意**  
不支援 Amazon Cognito 的自訂網域 AWS GovCloud (US) Regions。

若要達成此目的，請使用下列參數部署 PCUI 堆疊：
+ **CustomDomain：**https：//*xyz.example.com*。
+ **CustomDomainCertificateArn：**https：//*xyz.example.com* 的 ACM 憑證 Amazon Resource Name (ARN)。
+ **CognitoCustomDomain：**https：//*auth-xyz.example.com*。
+ **CognitoCustomDomainCertificateArn** 至 https：//*xyz.example.com* 的 ACM 憑證 Amazon Resource Name (ARN)。

# 設定 DNS
<a name="tutorials_08_custom_domain-v3-config-dns"></a>

請完成下列步驟來設定您的網域名稱服務 (DNS)，以便 AWS ParallelCluster UI (PCUI) 和 Amazon Cognito 回應所需的自訂網域。

此範例假設您想要部署具有自訂網域 的 PCUI，`xyz.example.com`以及具有自訂網域 的 Amazon Cognito 界面`auth-xyz.example.com`。

1. 使用下列參數部署 PCUI 堆疊：
   + **CustomDomainEndpoint：**在您的 DNS for *xyz.example.com* 中建立一個記錄，指向輸出中指定的別名。
   + **CognitoCustomDomainEndpoint：**在您的 DNS for *auth-xyz.example.com* 中建立記錄，指向輸出中指定的別名。

1. 等待約 10 分鐘，以便分佈 DNS 變更。

1. 分佈 DNS 變更時，PCUI 會在 *xyz.example.com/pcui* 上回應，Amazon Cognito 身分驗證頁面會在 *auth-xyz.example.com* 上回應。

# Amazon Cognito 使用者集區選項
<a name="install-pcui-cognito-v3"></a>

下列各節參考 CloudFormation 快速建立連結或快速建立 URLs。快速建立 URL 會帶您前往**建立堆疊精靈**，您可以在其中提供快速建立堆疊範本輸入並部署堆疊。如需 CloudFormation 快速建立堆疊的詳細資訊，請參閱*AWS CloudFormation 《 使用者指南*》中的[為堆疊建立快速建立連結](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-console-create-stacks-quick-create-links.html)。

若要維護可與多個 UI (PCUI) 執行個體搭配使用的 Amazon Cognito AWS ParallelCluster 使用者集區，請考慮下列選項：
+ 使用現有的 PCUI 執行個體，連結至從巢狀 CloudFormation 堆疊建立的 Amazon Cognito 使用者集區。這是當您使用快速建立連結部署 PCUI 並保持所有 Amazon Cognito 參數空白時所建立的。
+ 首先，部署獨立的 Amazon Cognito 使用者集區。然後，部署連結至您剛部署之獨立 Amazon Cognito 使用者集區的新 PCUI 執行個體。如此一來，您可以將 Amazon Cognito 部署與 PCUI 部署分開。請注意，非巢狀 PCUI CloudFormation 堆疊更容易更新。

# 將現有的 Amazon Cognito 使用者集區與新的 PCUI 執行個體搭配使用
<a name="install-pcui-existing-cognito-v3"></a>

完成下列步驟，將現有的 Amazon Cognito 使用者集區與新的 PCUI 執行個體搭配使用

**將現有的 Amazon Cognito 使用者集區與新的 PCUI 執行個體搭配使用**

1. 在 **CloudFormation 主控台**中，選取包含您要與多個 PCUI 執行個體搭配使用之 Amazon Cognito 使用者集區的 PCUI 堆疊。

1. 導覽至建立 Amazon Cognito 使用者集區的巢狀堆疊。

1. 選取 **Outputs (輸出)** 標籤。

1. 複製下列參數的值：
   + `UserPoolId`
   + `UserPoolAuthDomain`
   + `SNSRole`

1. 使用快速建立連結部署新的 PCUI 執行個體，並使用您複製的輸出填入所有`External PCUI Amazon Cognito`參數。這可防止新的 PCUI 堆疊建立新的集區，並將其連結至從巢狀堆疊建立的現有 Amazon Cognito 使用者集區。您可以部署具有相同參數值的後續新 PCUI 執行個體，並將其連結至 Amazon Cognito 使用者集區。

# 建立獨立的 Amazon Cognito 使用者集區
<a name="install-pcui-standalone-cognito-v3"></a>

**建立獨立的 Amazon Cognito 使用者集區**

1. 選擇快速建立連結來啟動僅限 Amazon Cognito 的堆疊，該連結會標記您在此清單中部署 PCUI 執行個體的相同 AWS 區域 連結：
   + [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 使用者集區。

# 識別 AWS ParallelCluster 和 PCUI 版本
<a name="install-pcui-version-v3"></a>

**若要識別 AWS ParallelCluster 和 PCUI 版本：**

1. 在 CloudFormation 主控台中，選取 PCUI 堆疊。

1. 選取**參數**索引標籤。

1.  AWS ParallelCluster 版本是 參數**版本**的值。

1. PCUI 版本位於 **PublicEcrImageUri** 值的結尾。例如，如果值為 `public.ecr.aws/pcui/parallelcluster-ui-awslambda:2023.02`，則版本為 `2023.02`。

**注意**  
若要將 PCUI 更新至 AWS ParallelCluster 最新版本，請選擇[快速建立連結](install-pcui-v3.md#install-pcui-steps-v3)來啟動新堆疊。

# PCUI 成本
<a name="install-pcui-costs-v3"></a>

PCUI 是以無伺服器架構為基礎，您可以在 免費 AWS 方案類別中使用它。下表列出 PCUI 所依賴 AWS 服務 的 及其自由方案限制。一般用量估計每月成本低於 1 美元。


| 服務 | AWS 免費方案 | 
| --- | --- | 
|  Amazon Cognito  |  每月 50，000 個作用中使用者  | 
|  Amazon API Gateway  |  100 萬次靜態 API 呼叫  | 
|  AWS Lambda  |  每月 100 萬個免費請求和每月 400，000 GB 的運算時間  | 
|  EC2 Image Builder  |  除了 EC2 之外，免費  | 
|  Amazon Elastic Compute Cloud  |  15 分鐘的一次性容器映像建置  | 
|  CloudFormation  |  5 GB 資料 （擷取、封存儲存和由 Logs Insights 查詢掃描的資料）  | 