How to set up AWS CLI

The aim of this page📝 is to quickly setup AWS CLI.

1. PIP install

2. CREDS

  • Open the following URL
  1. Make sure you have programmatic access
  2. Give yourself AdministratorAccess permission for the sake of the test
  3. get access key_id
  4. get key

3. CONFIGURE

  • with access key_id and the secret key run
  • you are prompted for both + default region + output format
  • for output format, chose text (you can enter also json or table)
  • test you have access by listing your s3 buckets

4. AWS PROFILE

  • this will create another profile that can be used
  • you still need account_id and secret key
  • these are added to the config file
  • to use another profile use --profile <name> with the command, e.g.

5. AWS FILES

  • aws stores files in .aws file of the user

--

--

Infrastructure Support Engineer/Technical Writer (snowplow.io) with a passion for Python/writing documentation. More about me: https://pavol.kutaj.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Pavol Kutaj

Infrastructure Support Engineer/Technical Writer (snowplow.io) with a passion for Python/writing documentation. More about me: https://pavol.kutaj.com