Analyze AWS Config Costs
Analyze AWS Config Costs with Athena
AWS Config can feel expensive because usage scales with how many configuration items are recorded and how often they change. Cost questions usually boil down to: “Which resources are generating the most records?” This post shows how to answer that using Athena against centralized AWS Config logs.
Prerequisites
- AWS Config is aggregated to a centralized S3 bucket in a logs account.
- You know the bucket name (replace
aws-config-logs-bucketbelow). - You have Athena access in the logs account.
Create an Athena table (Config history)
The following table uses partition projection for accounts, regions, and dates.
| |
After the table is created, you can query it directly.
Find the noisiest resource types (last month)
This query lists how many configuration items were recorded per resource type.
| |
This returns the resource types that generated the most records for the selected accounts and regions.
Example output:
| |
Summarize by account and region
Use this to see which accounts or regions are the loudest.
| |
Cost reduction levers (without losing audit value)
Once you see which types are noisy, you can tune AWS Config in a few safe ways:
- Record only required resource types instead of “all supported types.”
- Exclude low-value resource types that change frequently but are not audit-critical.
- Narrow the global recording scope if global resources are covered elsewhere.
Common high-volume candidates to review (examples only):
| |
