1 Answer
- Newest
- Most votes
- Most comments
0
The most efficient way to retrieve the ARN of non-compliant AWS resources detected by AWS Config is to use the AWS SDK or AWS CLI to describe the resource using its ID. First, capture the non-compliant resource's ID from the AWS Config event. Then, call the appropriate describe API for the resource type (e.g., describe-instances for EC2, describe-buckets for S3) to obtain the ARN. Automating this in a Lambda function, triggered by EventBridge, can streamline the process by dynamically resolving ARNs based on resource IDs before applying the required tags.
Relevant content
- AWS OFFICIALUpdated 2 years ago
