2018-12-12 20:57:02 +00:00
|
|
|
# aws
|
|
|
|
|
|
|
|
> The official CLI tool for Amazon Web Services.
|
2020-03-06 21:13:10 +00:00
|
|
|
> Wizard, SSO, Resource Autocompletion, and YAML options are v2 only.
|
2019-06-09 00:05:27 +01:00
|
|
|
> More information: <https://aws.amazon.com/cli>.
|
2018-12-12 20:57:02 +00:00
|
|
|
|
2020-03-06 21:13:10 +00:00
|
|
|
- Configure the AWS Command Line:
|
2018-12-12 20:57:02 +00:00
|
|
|
|
2020-03-06 21:13:10 +00:00
|
|
|
`aws configure wizard`
|
2018-12-12 20:57:02 +00:00
|
|
|
|
2020-03-06 21:13:10 +00:00
|
|
|
- Configure the AWS Command Line using SSO:
|
2018-12-12 20:57:02 +00:00
|
|
|
|
2020-03-06 21:13:10 +00:00
|
|
|
`aws configure sso`
|
2018-12-12 20:57:02 +00:00
|
|
|
|
2020-03-06 21:13:10 +00:00
|
|
|
- See help text for the AWS command:
|
2018-12-12 20:57:02 +00:00
|
|
|
|
2020-03-06 21:13:10 +00:00
|
|
|
`aws {{command}} help`
|
2018-12-12 20:57:02 +00:00
|
|
|
|
2020-03-06 21:13:10 +00:00
|
|
|
- Get the caller identity (used to troubleshoot permissions):
|
2018-12-12 20:57:02 +00:00
|
|
|
|
2020-03-06 21:13:10 +00:00
|
|
|
`aws sts get-caller-identity`
|
2018-12-12 20:57:02 +00:00
|
|
|
|
2020-03-06 21:13:10 +00:00
|
|
|
- List AWS resources in a region and output in yaml:
|
2018-12-12 20:57:02 +00:00
|
|
|
|
2020-03-06 21:13:10 +00:00
|
|
|
`aws dynamodb list-tables --region {{us-east-1}} --output yaml`
|
|
|
|
|
|
|
|
- Use auto prompt to help with a command:
|
|
|
|
|
|
|
|
`aws iam create-user --cli-auto-prompt`
|
|
|
|
|
|
|
|
- Get an interactive wizard for an AWS resource:
|
|
|
|
|
2020-11-01 13:40:05 +00:00
|
|
|
`aws dynamodb wizard {{new_table}}`
|
2020-03-06 21:13:10 +00:00
|
|
|
|
|
|
|
- Generate a JSON CLI Skeleton (useful for infrastructure as code):
|
|
|
|
|
|
|
|
`aws dynamodb update-table --generate-cli-skeleton`
|