AWS CLI Basics

Essential AWS CLI commands

Version and Help

aws --version # show AWS CLI version
aws help # get help
aws service help # help for specific service
aws service command help # help for command

Configuration

aws configure # configure AWS CLI
aws configure list # show configuration
aws configure get key # get config value
aws configure set key value # set config value

Profiles

aws configure --profile profile-name # configure named profile
aws command --profile profile-name # use specific profile
export AWS_PROFILE=profile-name # set default profile

Output Formats

--output json # JSON output (default)
--output text # text output
--output table # table output
--output yaml # YAML output

Debug

aws command --debug # turn on debug output