- Newest
- Most votes
- Most comments
What is your end goal with pulling this data?
The Payer account has access to the costing data for both the payer and all the linked accounts. Getting a read-only account that only has access to cost explorer would be the easiest solution for what you asked. But as you mentioned, having regular automated access would be difficult unless you were able to use something like a Lambda or EC2 to run the query (since they get permissions via IAM).
However, remember that Cost Explorer API calls have a cost. What would be more efficient is to use Cost and Usage Reports (CUR) to store the billing data (which can be stored longer and be more fine grained than Cost Explorer supplies) into an S3 bucket and then query that data via something like Athena.
Additionally, you can utilize the existing CUDOS and CID dashboards that can be deployed in Quicksight to see dashboards of the costing data. And/or build your own dashboards. This will give you a more scalable and automated solution.
Relevant content
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 3 years ago
