AWS CLI Configuration

In this step, we will generate an IAM user access key and secret access key to use in configuration for the AWS CLI.

  1. From IAM service interface click Users.

Lightsail

  1. Click *Add users

Lightsail

  1. Name the user aws-cli.
  • Click Programmatic access, our user only uses it for AWS CLI, so there is no need to log in to the management console.
  • Click Next: Permissions.

Lightsail

  1. Click Attach existing policies directly.
  • Click on Administrator Access.
  • Click Next: Tags.

Lightsail

  1. Click Next: Review. then click Create User.

  2. Click Download .csv to download the csv file containing access information and secret access key.

Lightsail

  1. Back on our Build Instance run sudo aws configure command to proceed with CLI configuration.
  • Configure Region and format information as shown below. Note to use the access key and secret access key from the csv file you downloaded.

Lightsail

  1. The next step is to install Docker to start building the image.

Lightsail