a. Create S3 bucket

In this step, we will create a S3 bucket to store the results of your Nextflow simulations

  1. In the AWS Management Console search bar, type and select Cloud9.

  2. Choose open IDE for the Cloud9 instance set up previously. It may take a few moments for the IDE to open. AWS Cloud9 stops and restarts the instance so that you do not pay compute charges when no longer using the Cloud9 IDE.

  3. Go to the environment space

cd ~/environment
  1. Create your unique S3 bucket using the following command
BUCKET_NAME=nextflow-results
BUCKET_POSTFIX=$(uuidgen --random | cut -d'-' -f1)
aws s3 mb s3://${BUCKET_NAME}-${BUCKET_POSTFIX}
export BUCKET_NAME_RESULTS=${BUCKET_NAME}-${BUCKET_POSTFIX}

echo "export BUCKET_NAME_RESULTS=${BUCKET_NAME_RESULTS}" >> s3_vars

An Amazon S3 bucket name is globally unique, and the namespace is shared by all AWS accounts. Keep note of your bucket name. If you forget your bucket name, you can view it in the Amazon S3 Dashboard.