Provides fully automated tracking to member account owners on both their spend and credits for their AWS MAP tagged resources
- Provisions a AWS CloudWatch Events Rule in the payer account that is triggered based on the successful completion of the AWS Glue Crawler. a. The Crawler runs in the payer account each time a MAP CUR report is delivered there and creates/updates the Athena database and table for the MAP CUR report
- Provisions an output results S3 bucket in the payer account with an attached event notification to assign view permissions to objects in the S3 bucket to the member account
- Provisions an AWS Lambda as a target of the CloudWatch Events Rule. a. The AWS Lambda runs a customized Athena query specific to MAP tagged resources in the member account. b. The Athena query results for the MAP tagged resources in the member account are dropped in the output results S3 bucket.
- Provisions an AWS Glue Crawler in the member account that has cross account access to the output results S3 bucket in the payer account a. The AWS Glue Crawler creates an Athena database and table in the member account. This enables member account owner to view and query data for MAP tagged resources specific to their account.
- Steps 1-4 above are fully automated in AWS CloudFormation. It is deployed with 1-click automation. It requires no AWS related configurations to be performed by the AWS administrator.
Prerequisites
- Set up Athena integration for MAP based Cost and Usage Reports in the Payer Account as documented here - https://docs.aws.amazon.com/cur/latest/userguide/cur-query-athena.html
Setup
2 step install:
-
Payer Account - Launch the aws-map-payeraccountsetup.yml template
- Provisions steps 1-3 described above in the 'How it Works section
-
Member Account - Launch the aws-map-linkedaccountcrawler.yml template
- Provisions step 4 described above in the How it Works section