Configure your AWS CLI

4.1. Inside the Cloud9 environment, in the bash terminal we are going to configure the AWS CLI with your WorkshopAdmin credentials as follows:

aws configure
  • Configuration:
    • AWS Access Key ID: (Type your Access key ID)
    • AWS Secret Access Key: (Type your Secret access key)
    • Default region name [None]: (Use your region code, example: us-east-1) All Regions
    • Default output format [None]: json

4.2. Remove aws_session_token variable from aws credentials.

sed -i 's/aws_session_token =//g' ~/.aws/credentials