Credentials passed as command line options

The AWS CLI

  • Uses the GNU-style of command line options: Fullwords that are preceded by two hyphens.
  • Can use options to override default configuration settings for a single operation.
  • Cannot specify Credentials.
  • Takes a string argument with a space or equals sign (=) separating the argument from the option name.
Tip: Quotations around the argument are not needed unless the argument string contains a space.
Table 1. Command Line Options for the AWS CLI
Option Purpose
--profile Name of a Named Profile to use or default to use the default profile.
--output Output format is {json|text|table}
--endpoint-url The URL against which the command acts. It can be the address of a proxy or an endpoint URL.