Post-Install

Create S3 Bucket

For data and post-install scripts we create a bucket for our AWS ParallelCluster setup.

export BUCKET_NAME=pcluster-$(date +%F)-$(uuidgen --random | cut -d'-' -f1)
echo "export BUCKET_NAME=${BUCKET_NAME}" |tee -a ~/.bashrc
aws s3 mb s3://${BUCKET_NAME}

We will use a post-install scripts that allows us to just push scripts up to the bucket and have them executed automatically. Find more about the script here: aws-samples/aws-pcluster-post-samples.

wget -q https://gromacs-on-pcluster.workshop.aws/setup/pcluster/pcluster-post/_index.files/post.install.sh
chmod +x post.install.sh
aws s3 cp post.install.sh s3://${BUCKET_NAME}/

It will download all scripts in the bucket and execute them in order.

01.install.stuff.master.sh
|  |       |     |      |     
|  |       name  |      file extension
|  purpose       |
|                to be run on `master`, `compute`, or `all` nodes
execution order