browseDownload binary →
aws/AWS CLI
Amazon Web ServicesUnified command line interface to Amazon Web Services. Provides direct access to AWS service APIs.
Cloud ProvidersJSON
01Install
brew install awscli02Agent Notes
AWS CLI uses a service-based command structure: `aws <service> <operation>`. Always pass `--output json --no-cli-pager` for machine-readable output. Most read operations start with `describe-` or `list-`. Most mutating operations start with `create-`, `delete-`, `modify-`, or `update-`. Region must be specified via --region flag or AWS_REGION env var.
03Help Output
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: the following arguments are required: command
04Global Flags
| Flag | Type | Description |
|---|---|---|
--region | string | AWS region to target |
--profile | string | Named profile from credentials file |
--output | enum [json, text, table, yaml] | Output format |
--no-cli-pager | boolean | Disable automatic pagination of output |
05Authentication
Methods
environment-variablesconfig-fileinstance-rolesso
Env vars
AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYAWS_SESSION_TOKENAWS_PROFILEAWS_REGIONConfig files
~/.aws/credentials~/.aws/configSetup
aws configure06Capabilities
Reference
binary
awscheck
aws --versionauth
environment-variables, config-file, instance-role, ssoformats
table, text, yaml, yaml-streamjson flag
--output jsonversion
1.44.58