aws: upgrade to CLIv2 (#3892)
Co-authored-by: Zlatan Vasović <zlatanvasovic@gmail.com>
This commit is contained in:
@@ -1,24 +1,37 @@
|
|||||||
# aws
|
# aws
|
||||||
|
|
||||||
> The official CLI tool for Amazon Web Services.
|
> The official CLI tool for Amazon Web Services.
|
||||||
|
> Wizard, SSO, Resource Autocompletion, and YAML options are v2 only.
|
||||||
> More information: <https://aws.amazon.com/cli>.
|
> More information: <https://aws.amazon.com/cli>.
|
||||||
|
|
||||||
- List all IAM users:
|
- Configure the AWS Command Line:
|
||||||
|
|
||||||
`aws iam list-users`
|
`aws configure wizard`
|
||||||
|
|
||||||
- List all EC2 instances from a specific region:
|
- Configure the AWS Command Line using SSO:
|
||||||
|
|
||||||
`aws ec2 describe-instances --region {{us-east-1}}`
|
`aws configure sso`
|
||||||
|
|
||||||
- Receive message from a specific SQS queue:
|
- See help text for the AWS command:
|
||||||
|
|
||||||
`aws sqs receive-message --queue-url {{https://queue.amazonaws.com/546123/Test}}`
|
|
||||||
|
|
||||||
- Publish message to the specific SNS topic:
|
|
||||||
|
|
||||||
`aws sns publish --topic-arn {{arn:aws:sns:us-east-1:54633:testTopic}} --message "Message"`
|
|
||||||
|
|
||||||
- To see help text for the AWS command:
|
|
||||||
|
|
||||||
`aws {{command}} help`
|
`aws {{command}} help`
|
||||||
|
|
||||||
|
- Get the caller identity (used to troubleshoot permissions):
|
||||||
|
|
||||||
|
`aws sts get-caller-identity`
|
||||||
|
|
||||||
|
- List AWS resources in a region and output in yaml:
|
||||||
|
|
||||||
|
`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:
|
||||||
|
|
||||||
|
`aws dynamodb wizard {{new-table}}`
|
||||||
|
|
||||||
|
- Generate a JSON CLI Skeleton (useful for infrastructure as code):
|
||||||
|
|
||||||
|
`aws dynamodb update-table --generate-cli-skeleton`
|
||||||
|
Reference in New Issue
Block a user