Configure

In this section we are going to configure AWS ParallelCluster and create a cluster.

Create SSH Key

We’ll get started by creating a ssh-key for pcluster to use.

# generate a new key-pair
export SSH_KEY=pc-key-$(uuidgen --random | cut -d'-' -f1)-$(date +%F)
echo "export SSH_KEY=${SSH_KEY}" |tee -a ~/.bashrc
mkdir -p ~/.ssh
aws ec2 create-key-pair --key-name ${SSH_KEY} --query KeyMaterial --output text --region=${AWS_REGION} > ~/.ssh/${SSH_KEY}
chmod 600 ~/.ssh/${SSH_KEY}