output - AWS SDKs and Tools


(Available in the AWS CLI only.)

Specifies the default output format for AWS CLI commands requested using this profile.


Default value: json

Valid values:

  • json – Output is formatted as a JSON string.

  • yaml – Output is formatted as a YAML string. (Available in the AWS CLI version 2 only.)

  • text – Output is formatted as multiple lines of tab-separated string values. This can be useful to pass the output to a text processor, like grep, sed, or awk.

  • table – Output is formatted as a table using the characters +|- to form the cell borders. It typically presents the information in a "human-friendly" format that is much easier to read than the others, but not as programmatically useful.

For more information, see Controlling Command Output from the AWS CLI in the AWS Command Line Interface User Guide.

Ways to set this value

Location Supported Example
config file Yes
output = json
credentials file -
Environment variable Yes Linux/macOS:
AWS CLI parameter Yes
--output json

Compatibility with AWS SDKS and tools