

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# CloudFormation を使用してサンプル PCS AWS クラスターを作成する
<a name="get-started-cfn-create"></a>

次の手順では、 で CloudFormation テンプレート AWS マネジメントコンソール を使用してサンプル PCS AWS クラスターを作成します。詳細については CloudFormation、[「 とは」を参照してください CloudFormation。](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html) *AWS CloudFormation 「 ユーザーガイド*」の「」を参照してください。の AWS PCS リソースタイプの詳細については CloudFormation、*AWS CloudFormation 「 ユーザーガイド*」の[AWS 「PCS リソースタイプのリファレンス](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_PCS.html)」を参照してください。

**サンプルクラスターを作成するには**

1.  AWS リージョン を選択して、 でクラスターを作成します (リンクは テンプレートを使用して CloudFormation コンソールを開きます）。
   + [米国東部 (バージニア北部)](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/create/review?stackName=get-started-cfn&templateURL=https://s3.amazonaws.com/aws-hpc-recipes/main/recipes/pcs/getting_started/assets/cluster.yaml&param_ClientIpCidr=0.0.0.0%2F0) (us-east-1)
   + [米国東部 (オハイオ)](https://console.aws.amazon.com/cloudformation/home?region=us-east-2#/stacks/create/review?stackName=get-started-cfn&templateURL=https://s3.amazonaws.com/aws-hpc-recipes/main/recipes/pcs/getting_started/assets/cluster.yaml&param_ClientIpCidr=0.0.0.0%2F0) (us-east-2)
   + [米国西部 (オレゴン)](https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/create/review?stackName=get-started-cfn&templateURL=https://s3.amazonaws.com/aws-hpc-recipes/main/recipes/pcs/getting_started/assets/cluster.yaml&param_ClientIpCidr=0.0.0.0%2F0) (us-west-2)
   + [アジアパシフィック (ムンバイ)](https://console.aws.amazon.com/cloudformation/home?region=ap-south-1#/stacks/create/review?stackName=get-started-cfn&templateURL=https://s3.amazonaws.com/aws-hpc-recipes/main/recipes/pcs/getting_started/assets/cluster.yaml&param_ClientIpCidr=0.0.0.0%2F0) (ap-south-1)
   + [アジアパシフィック (シンガポール)](https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-1#/stacks/create/review?stackName=get-started-cfn&templateURL=https://s3.amazonaws.com/aws-hpc-recipes/main/recipes/pcs/getting_started/assets/cluster.yaml&param_ClientIpCidr=0.0.0.0%2F0) (ap-southeast-1)
   + [アジアパシフィック (シドニー)](https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-2#/stacks/create/review?stackName=get-started-cfn&templateURL=https://s3.amazonaws.com/aws-hpc-recipes/main/recipes/pcs/getting_started/assets/cluster.yaml&param_ClientIpCidr=0.0.0.0%2F0) (ap-southeast-2)
   + [アジアパシフィック (東京)](https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-1#/stacks/create/review?stackName=get-started-cfn&templateURL=https://s3.amazonaws.com/aws-hpc-recipes/main/recipes/pcs/getting_started/assets/cluster.yaml&param_ClientIpCidr=0.0.0.0%2F0) (ap-northeast-1)
   + [欧州 (フランクフルト) (eu-central-1)](https://console.aws.amazon.com/cloudformation/home?region=eu-central-1#/stacks/create/review?stackName=get-started-cfn&templateURL=https://s3.amazonaws.com/aws-hpc-recipes/main/recipes/pcs/getting_started/assets/cluster.yaml&param_ClientIpCidr=0.0.0.0%2F0)
   + [欧州 (アイルランド) (eu-west-1)](https://console.aws.amazon.com/cloudformation/home?region=eu-west-1#/stacks/create/review?stackName=get-started-cfn&templateURL=https://s3.amazonaws.com/aws-hpc-recipes/main/recipes/pcs/getting_started/assets/cluster.yaml&param_ClientIpCidr=0.0.0.0%2F0)
   + [欧州 (ロンドン) (eu-west-2)](https://console.aws.amazon.com/cloudformation/home?region=eu-west-2#/stacks/create/review?stackName=get-started-cfn&templateURL=https://s3.amazonaws.com/aws-hpc-recipes/main/recipes/pcs/getting_started/assets/cluster.yaml&param_ClientIpCidr=0.0.0.0%2F0)
   + [欧州 (パリ) (eu-west-3)](https://console.aws.amazon.com/cloudformation/home?region=eu-west-3#/stacks/create/review?stackName=get-started-cfn&templateURL=https://s3.amazonaws.com/aws-hpc-recipes/main/recipes/pcs/getting_started/assets/cluster.yaml&param_ClientIpCidr=0.0.0.0%2F0)
   + [欧州 (ミラノ) (eu-south-1)](https://console.aws.amazon.com/cloudformation/home?region=eu-south-1#/stacks/create/review?stackName=get-started-cfn&templateURL=https://s3.amazonaws.com/aws-hpc-recipes/main/recipes/pcs/getting_started/assets/cluster.yaml&param_ClientIpCidr=0.0.0.0%2F0)
   + [欧州 (ストックホルム) (eu-north-1)](https://console.aws.amazon.com/cloudformation/home?region=eu-north-1#/stacks/create/review?stackName=get-started-cfn&templateURL=https://s3.amazonaws.com/aws-hpc-recipes/main/recipes/pcs/getting_started/assets/cluster.yaml&param_ClientIpCidr=0.0.0.0%2F0)
   + [AWS GovCloud (米国東部) (us-gov-east-1)](https://console.amazonaws-us-gov.com/cloudformation/home?region=us-gov-east-1#/stacks/create/review?stackName=get-started-cfn&templateURL=https://s3.amazonaws.com/aws-hpc-recipes/main/recipes/pcs/getting_started/assets/cluster.yaml)
   + [AWS GovCloud (米国西部) (us-gov-west-1)](https://console.amazonaws-us-gov.com/cloudformation/home?region=us-gov-west-1#/stacks/create/review?stackName=get-started-cfn&templateURL=https://s3.amazonaws.com/aws-hpc-recipes/main/recipes/pcs/getting_started/assets/cluster.yaml)

1. **スタック名を指定する** に、わかりやすい名前を入力します。これは CloudFormation スタックの名前です。テンプレートは、この値を PCS AWS クラスターの名前として使用します。

1. **パラメータ**の下:

   1. **SlurmVersion** で、クラスターで使用する Slurm のバージョンを選択します。

   1. **NodeArchitecture** で、**x86** を選択して x86\$164 互換インスタンスを使用するクラスターをデプロイするか、**Graviton** を選択して Arm64 インスタンスを使用します。

   1. **KeyName** で、クラスターログインノードにアクセスする SSH キーペアを選択します。選択したキーペアの PEM ファイルがあることを確認します。

   1. **ClientIpCidr** の場合は、CIDR 形式で IP 範囲を入力して、ログインノードへのアクセスを制御します。
**警告**  
 のデフォルト値では、すべての IP アドレスからのアクセス`0.0.0.0/0`が許可されます。

   1. **HpcRecipesS3Bucket** と **HpcRecipesBranch** の値はデフォルト値のままにします。

1. **機能および変換:**

   1. チェックボックスをオンにして、 が CloudFormation IAM リソースを作成することを確認します。

   1. チェックボックスをオンにして、 が CloudFormation カスタム名で IAM リソースを作成することを確認します。

   1. チェックボックスをオンにして、新しいスタック`CAPABILITY_AUTO_EXPAND`を承認します。詳細については、 *AWS CloudFormation API リファレンス*の[CreateStack](https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateStack.html#API_CreateStack_RequestParameters)」を参照してください。

1. **[スタックの作成]** を選択してください。

1. スタックのステータスをモニタリングします。スタックのステータスが になったら、クラスターに接続できます`CREATE_COMPLETE`。