

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

# PCS クラスターの VPC AWS の作成
<a name="working-with_networking_create-vpc"></a>

 AWS Parallel Computing Service (AWS PCS) 内でクラスターの Amazon Virtual Private Cloud (Amazon VPC) を作成できます。

Amazon VPC を使用して、定義した仮想ネットワークで VPC リソースを起動します。この仮想ネットワークは、お客様自身のデータセンターで運用されている従来のネットワークによく似ています。ただし、Amazon Web Services のスケーラブルなインフラストラクチャを使用できるというメリットがあります。本番稼働用 VPC クラスターをデプロイする前に、Amazon VPC サービスを十分に理解しておくことをお勧めします。詳細については、[「Amazon VPC とは」を参照してください。](https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html) 作成者ビジュアルモード。*Amazon VPC ユーザーガイド*。

PCS クラスター、ノード、およびサポートリソース (ファイルシステムやディレクトリサービスなど) は、Amazon VPC 内にデプロイされます。PCS で既存の Amazon VPC を使用する場合は、[AWS PCS VPC とサブネットの要件と考慮事項](working-with_networking_vpc-requirements.md)「」で説明されている要件を満たしている必要があります。このトピックでは、 AWSが提供する CloudFormation テンプレートを使用して PCS 要件を満たす VPC を作成する方法について説明します。テンプレートをデプロイすると、テンプレートによって作成されたリソースを表示して、作成されたリソースとそれらのリソースの設定を正確に把握できます。

## 前提条件
<a name="working-with_networking_create-vpc_prereq"></a>

PCS 用の Amazon VPC を作成するには、Amazon VPC リソースを作成するために必要な IAM アクセス許可が必要です。これらのリソースは、VPC、サブネット、セキュリティグループ、ルートテーブルとルート、およびインターネットと NAT ゲートウェイです。詳細については、*「Amazon* [VPC ユーザーガイド」の「パブリックサブネットを使用して VPC を作成する](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-policy-examples.html#vpc-public-subnet-iam)」を参照してください。Amazon EC2 の完全なリストを確認するには、*「サービス認可リファレンス*」の[Amazon EC2 のアクション、リソース、および条件キー](https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazonec2.html)」を参照してください。

## Amazon VPC を作成する
<a name="working-with_networking_create-vpc_create"></a>

PCS を使用する の適切な URL をコピーして貼り付け、 AWS リージョン VPC を作成します。 CloudFormation テンプレートをダウンロードして、自分で[CloudFormation コンソール](https://console.aws.amazon.com/cloudformation)にアップロードすることもできます。
+ **米国東部 (バージニア北部)** (us-east-1)

  ```
  https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/create/review?stackName=hpc-networking&templateURL=https://aws-hpc-recipes.s3.us-east-1.amazonaws.com/main/recipes/net/hpc_large_scale/assets/main.yaml
  ```
+ **米国東部 (オハイオ)** (us-east-2)

  ```
  https://console.aws.amazon.com/cloudformation/home?region=us-east-2#/stacks/create/review?stackName=hpc-networking&templateURL=https://aws-hpc-recipes.s3.us-east-1.amazonaws.com/main/recipes/net/hpc_large_scale/assets/main.yaml
  ```
+ **米国西部 (オレゴン)** (us-west-2)

  ```
  https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/create/review?stackName=hpc-networking&templateURL=https://aws-hpc-recipes.s3.us-east-1.amazonaws.com/main/recipes/net/hpc_large_scale/assets/main.yaml
  ```
+ **アジアパシフィック (ムンバイ)** (ap-south-1)

  ```
  https://console.aws.amazon.com/cloudformation/home?region=ap-south-1#/stacks/create/review?stackName=hpc-networking&templateURL=https://aws-hpc-recipes.s3.us-east-1.amazonaws.com/main/recipes/net/hpc_large_scale/assets/main.yaml
  ```
+ **アジアパシフィック (シンガポール)** (ap-southeast-1)

  ```
  https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-1#/stacks/create/review?stackName=hpc-networking&templateURL=https://aws-hpc-recipes.s3.us-east-1.amazonaws.com/main/recipes/net/hpc_large_scale/assets/main.yaml
  ```
+ **アジアパシフィック (シドニー)** (ap-southeast-2)

  ```
  https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-2#/stacks/create/review?stackName=hpc-networking&templateURL=https://aws-hpc-recipes.s3.us-east-1.amazonaws.com/main/recipes/net/hpc_large_scale/assets/main.yaml
  ```
+ **アジアパシフィック (東京)** (ap-northeast-1)

  ```
  https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-1#/stacks/create/review?stackName=hpc-networking&templateURL=https://aws-hpc-recipes.s3.us-east-1.amazonaws.com/main/recipes/net/hpc_large_scale/assets/main.yaml
  ```
+ **欧州 (フランクフルト) (eu-central-1)**

  ```
  https://console.aws.amazon.com/cloudformation/home?region=eu-central-1#/stacks/create/review?stackName=hpc-networking&templateURL=https://aws-hpc-recipes.s3.us-east-1.amazonaws.com/main/recipes/net/hpc_large_scale/assets/main.yaml
  ```
+ **欧州 (アイルランド) (eu-west-1)**

  ```
  https://console.aws.amazon.com/cloudformation/home?region=eu-west-1#/stacks/create/review?stackName=hpc-networking&templateURL=https://aws-hpc-recipes.s3.us-east-1.amazonaws.com/main/recipes/net/hpc_large_scale/assets/main.yaml
  ```
+ **欧州 (ロンドン) (eu-west-2)**

  ```
  https://console.aws.amazon.com/cloudformation/home?region=eu-west-2#/stacks/create/review?stackName=hpc-networking&templateURL=https://aws-hpc-recipes.s3.us-east-1.amazonaws.com/main/recipes/net/hpc_large_scale/assets/main.yaml
  ```
+ **欧州 (パリ) (eu-west-3)**

  ```
  https://console.aws.amazon.com/cloudformation/home?region=eu-west-3#/stacks/create/review?stackName=hpc-networking&templateURL=https://aws-hpc-recipes.s3.us-east-1.amazonaws.com/main/recipes/net/hpc_large_scale/assets/main.yaml
  ```
+ **欧州 (ミラノ) (eu-south-1)**

  ```
  https://console.aws.amazon.com/cloudformation/home?region=eu-south-1#/stacks/create/review?stackName=hpc-networking&templateURL=https://aws-hpc-recipes.s3.us-east-1.amazonaws.com/main/recipes/net/hpc_large_scale/assets/main.yaml
  ```
+ **欧州 (ストックホルム) (eu-north-1)**

  ```
  https://console.aws.amazon.com/cloudformation/home?region=eu-north-1#/stacks/create/review?stackName=hpc-networking&templateURL=https://aws-hpc-recipes.s3.us-east-1.amazonaws.com/main/recipes/net/hpc_large_scale/assets/main.yaml
  ```
+ **AWS GovCloud (米国東部) (us-gov-east-1)**

  ```
  https://console.aws.amazon.com/cloudformation/home?region=us-gov-east-1#/stacks/create/review?stackName=hpc-networking&templateURL=https://aws-hpc-recipes.s3.us-east-1.amazonaws.com/main/recipes/net/hpc_large_scale/assets/main.yaml
  ```
+ **AWS GovCloud (米国西部) (us-gov-west-1)**

  ```
  https://console.aws.amazon.com/cloudformation/home?region=us-gov-west-1#/stacks/create/review?stackName=hpc-networking&templateURL=https://aws-hpc-recipes.s3.us-east-1.amazonaws.com/main/recipes/net/hpc_large_scale/assets/main.yaml
  ```
+ **テンプレートのみ**

  ```
  https://aws-hpc-recipes.s3.us-east-1.amazonaws.com/main/recipes/net/hpc_large_scale/assets/main.yaml
  ```

**PCS 用の Amazon VPC を作成するには**

1. [CloudFormation コンソール](https://console.aws.amazon.com/cloudformation)でテンプレートを開きます。
**注記**  
 これらはテンプレートにあらかじめ入力されているため、デフォルト値のままにしておくだけで済みます。

1. **「スタック名を指定**」に**「スタック名**」と入力します`hpc-networking`。

1. **パラメータ**に、次の詳細を入力します。

   1. **VPC** で **CidrBlock** と入力します。 `10.3.0.0/16`

   1. **サブネット A の下**:

      1. 次に、**CidrPublicSubnetA** と入力します。 `10.3.0.0/20`

      1. 次に、**CidrPrivateSubnetA** と入力します。 `10.3.128.0/20`

   1. **サブネット B の下**:

      1. 次に、**CidrPublicSubnetB** と入力します。 `10.3.16.0/20`

      1. 次に、**CidrPrivateSubnetA** と入力します。 ` 10.3.144.0/20`

   1. **サブネット C の下**:

      1. **ProvisionSubnetsC** で、 を選択します`True`。
**注記**  
アベイラビリティーゾーンが 3 つ未満のリージョンで VPC を作成する場合、このオプションを に設定すると無視されます`True`。

      1. 次に、**CidrPublicSubnetB** と入力します。 `10.3.32.0/20`

      1. 次に、**CidrPrivateSubnetA** と入力します。 `10.3.160.0/20`

1. ****「機能」のチェックボックスをオンにして、**AWS CloudFormation が IAM リソースを作成する可能性があることを確認します**。

 CloudFormation スタックのステータスをモニタリングします。に達すると`CREATE_COMPLETE`、VPC リソースを使用できるようになります。

**注記**  
 CloudFormation テンプレートが作成したすべてのリソースを表示するには、 [CloudFormation コンソール](https://console.aws.amazon.com/cloudformation)を開きます。`hpc-networking` スタックを選択し、**[リソース]** タブを選択します。