Awareness of AWS account resources
So far in this chapter, we have seen how Amazon Q assists builders in creating solutions on AWS by generating architecture patterns, best practices, and also code. But what if the builders need assistance with AWS resources that are already built in their AWS account and want to know more details about them without having to find this information individually? Amazon Q is now not only aware of the AWS resources in your account but can also answer questions about costs, helping you better understand and create optimization strategies. Let’s quickly look at these features.
Analyzing resources with Amazon Q
Before you ask Q to analyze your resources, ensure that IAM permissions are granted for the action you are asking Q to perform. For example, if you are asking Q to list all S3 buckets in your account, then the s3:ListAllMyBuckets
IAM permission must be granted.
The following screenshot shows all the EC2 instances I used for my use...