Which solution meets these requirements?
Use AWS CloudTrail to generate a list of resources with the application tag.
Use the AWS CLI to query each service across all Regions to report the tagged components.
Run a query in Amazon CloudWatch Logs Insights to report on the components with the application tag.
Run a query with the AWS Resource Groups Tag Editor to report on the resources globally with the application tag.
Explanations:
AWS CloudTrail is primarily used for logging API calls and changes to AWS resources, not for querying or reporting on resource tags directly. It doesn’t provide a way to generate a list of resources with specific tags.
While using the AWS CLI could theoretically work, it requires manual effort to query each service across all Regions, making it a slower and more cumbersome solution compared to others that are specifically designed for tag management.
Amazon CloudWatch Logs Insights is designed for querying logs, not for querying AWS resource tags. It won’t provide a direct method to list resources tagged with “application”.
The AWS Resource Groups Tag Editor allows users to search for and manage resources based on tags across all Regions, making it the most efficient and quickest solution to identify all components tagged with “application”.