a. Lab Environment

This section modifies the Cloud9 environment that you created in the Getting Started in the Cloud workshop in the following ways:

Expand Cloud9 Root Volume

In this first step you will ensure the root volume of your Cloud9 instance has at least 20GiB capacity in order for Docker images to be built locally.

  1. Open the Amazon EC2 console link to find your Cloud9 instance.
  2. Stop the instance if is running by selecting the instance and choosing Instance state / Stop instance /. Stop running instance
  3. Choose the storage tab and select the Volume ID for the root volume. Click on the Storage tab
  4. For actions, choose Modify Volume and for Size enter 20GiB. Modify the root volume
  5. Return to your Cloud9 EC2 instance and start it up by selecting the instance and choosing Instance state / Start instance /.
  6. Open your Cloud9 instance.

Upgrade to AWS CLI Version 2

AWS CLI Version 2 is required to interact with Amazon ECR. You will install it by copying, pasting, and executing the following instructions in the terminal window at the bottom of your Cloud9 IDE window.

  1. Execute the following commands to upgrade to AWS CLI to Version 2. More information on this process is available at https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html.
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install -i /usr/local/aws-cli -b /usr/bin
aws --version

After executing ther commands above, confirm that you now have AWS CLI version 2 sucessfully installed by verfying output from the last command above results in output similar to the following:

aws-cli/2.5.7 Python/3.9.11 Linux/4.14.273-207.502.amzn2.x86_64 exe/x86_64.amzn.2 prompt/off

Install JQ

To help with commands results slicing and filtering.

sudo yum -y install jq