To check EC2 instances of a profile, we use the following command:
aws ec2 describe-instances --profile devops

Ensure you have configured the correct AWS profile before running this command.
To list S3 buckets of a profile, use the command:
aws s3 ls --profile devops

AWS CLI Auto Prompt helps suggest parameters and commands, very useful when you don’t remember the exact syntax:
aws --cli-auto-prompt

To view EC2 instance information in table format, you can use the command:
aws ec2 describe-instances --output table --region ap-southeast-1
