Watch out the CLI has two modes of operation

This is part of the Semicolon&Sons Code Diary - consisting of lessons learned on the job. You're in the AWS category.

Last Updated: 2021-05-16

Watch out, the CLI has two modes of operation

Often I try a command-line command for AWS and they fail.

The reason is because aws cli has two modes. E.g. with the s3 service you can choose between:

  1. aws s3 CMD
  2. aws s3api CMD

The latter has far more commands and is often what you want if the first fails