b. Configure ParallelCluster

The following commands generate a new key pair, query the EC2 metadata to get the Subnet ID, VPC ID. These will be used in the next section.

Don’t skip this step, creating key-pair step is very important for the later steps, please follow instruction bellow.

Generate a new key-pair

aws ec2 create-key-pair --key-name pc-intro-key --query KeyMaterial --output text > ~/.ssh/pc-intro-key
chmod 600 ~/.ssh/pc-intro-key

Getting your AWS networking information

export IFACE=$(curl --silent
export SUBNET_ID=$(curl --silent${IFACE}/subnet-id)
export VPC_ID=$(curl --silent${IFACE}/vpc-id)
export REGION=$(curl --silent | sed 's/[a-z]$//')

Next, you build a configuration to generate an optimized cluster to run typical “tightly coupled” HPC applications.