

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

# 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 使用者集區。