We can check the profile’s EC2 instances using the following command:
aws ec2 describe-instances --profile devops
You can specify the region by adding --region <region-name>
.
To check the number of S3 buckets in your profile:
aws s3 ls --profile devops
This command lists all S3 buckets associated with the selected AWS profile.
The AWS CLI Auto Prompt helps you interactively create AWS CLI commands:
aws --cli-auto-prompt
To view EC2 instance details in tabular format for a specific region:
aws ec2 describe-instances --output table --region ap-southeast-1