Aws cli commands
$ aws help
This command will list out the possible combinations of aws key terminologies that we can use in the terminal(AWS CLI).
$ aws ec2 describe-instances
This command is used to list all instances which is in the particular aws account through pagination technique.
$ aws configure --profile profilename
This command is used to create and configure profiles in aws.
$ aws configure output format {json, yaml, yaml-stream, text, table}
This command will helps to structure the output in a prescribed format.
$ aws configure region (region-name)
This command is to configure the region for the respective instance that we need.
Basic Commands
An AWS CLI command has the following structure:
$ aws <command> <subcommand> [options and parameters]
For example, to list S3 buckets, the command would be:
$ aws s3 ls
To view help documentation, use one of the following:
$ aws help $ aws <command> help $ aws <command> <subcommand> help
To get the version of the AWS CLI:
$ aws --version
To turn on debugging output:
$ aws --debug <command> <subcommand>
You can read more information on the Using the AWS CLI chapter of the AWS CLI User Guide.
Comments