Creating a VPC for your AWS PCS cluster
You can create an Amazon Virtual Private Cloud (Amazon VPC) for your clusters within AWS Parallel Computing Service (AWS PCS).
Use Amazon VPC to launch VPC resources into a virtual network that you've defined. This virtual network closely resembles a traditional network that you might operate in your own data center. However, it comes with the benefits of using the scalable infrastructure of Amazon Web Services. We recommend that you have a thorough understanding of the Amazon VPC service before deploying production VPC clusters. For more information, see What is Amazon VPC? in the author visual mode.Amazon VPC User Guide.
An PCS cluster, nodes, and supporting resources (such as file systems and directory services) are deployed within your Amazon VPC. If you want to use an existing Amazon VPC with PCS, it must meet the requirements described in AWS PCS VPC and subnet requirements and considerations . This topic describes how to create a VPC that meets PCS requirements using an AWS–provided AWS CloudFormation template. Once you've deployed a template, you can view the resources created by the template to know exactly what resources it created, and the configuration of those resources.
Prerequisites
To create an Amazon VPC for PCS, you must have the necessary IAM permissions to create Amazon VPC resources. These resources are VPCs, subnets, security groups, route tables and routes, and internet and NAT gateways. For more information, see Create a VPC with a public subnet in the Amazon VPC User Guide. To review the full list for Amazon EC2, see Actions, resources, and condition keys for Amazon EC2 in the Service Authorization Reference.
Create an Amazon VPC
Create a VPC by copy and pasting the appropriate URL for the AWS Region where you will use
PCS. You may also download the AWS CloudFormation template and upload it yourself to the
AWS CloudFormation console
-
US East (N. Virginia) (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 (Ohio) (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 (Oregon) (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
-
Template only
https://aws-hpc-recipes.s3.us-east-1.amazonaws.com/main/recipes/net/hpc_large_scale/assets/main.yaml
To create an Amazon VPC for PCS
-
Open the template in the AWS CloudFormation console
. Note
These are pre-populated in the template so that you can simply leave them as the default values.
-
Under Provide a stack name, then Stack name, enter
hpc-networking
. -
Under parameters, enter the following details:
-
Under VPC, then CidrBlock, enter
10.3.0.0/16
-
Under Subnets A:
-
Then CidrPublicSubnetA, enter
10.3.0.0/20
-
Then CidrPrivateSubnetA, enter
10.3.128.0/20
-
-
Under Subnets B:
-
Then CidrPublicSubnetB, enter
10.3.16.0/20
-
Then CidrPrivateSubnetA, enter
10.3.144.0/20
-
-
Under Subnets C:
-
For ProvisionSubnetsC, select
True
.Note
If you are creating a VPC in a Region that has less than three Availability Zones, this option will be ignored if set to
True
. -
Then CidrPublicSubnetB, enter
10.3.32.0/20
-
Then CidrPrivateSubnetA, enter
10.3.160.0/20
-
-
-
Under Capabilities, check the box for I acknowledge that AWS CloudFormation might create IAM resources.
Monitor the status of the AWS CloudFormation stack. When it reaches CREATE_COMPLETE
, the VPC
resource are ready for you to use.
Note
To see all the resources the AWS CloudFormation template created, open the AWS CloudFormation consolehpc-networking
stack and then choose the Resources
tab.