AWS Cost Explorer and Aggregate
Last updated
Short answer: Aggregate reads AWS Cost Explorer and shows each month's AWS bill broken down by service, with credits and discounts, refunds and tax on their own lines, so you can ask any AI assistant or agent what's behind the AWS charge on your card. It only connects the access key of an IAM user that can do nothing but read costs, checks that with IAM before connecting and before every sync, and can't move money.
Status: Beta. It's built to AWS's API reference and hasn't been run on a real account, so if a number looks off, tell us at support@aggregate.finance.
What it reads
- Each month's costs, for this month and the 12 before it (what Cost Explorer keeps), in US dollars, by service, as AWS charged them (unblended cost). This month is AWS's estimate so far.
What it leaves out
- Booking it as an expense. The money already leaves through your card or bank, where it's counted, so these totals aren't added to your books a second time.
- Anything you named. No tags, resource names, account names or regions: only AWS's own service names.
- Other AWS accounts in your organization, unless you connect the management account, whose Cost Explorer covers them all. Connect the account whose bill your card pays.
What it costs on your AWS bill
AWS charges $0.01 for each Cost Explorer request, on your own AWS bill. Aggregate asks Cost Explorer at most twice a day, two or three requests each time, so about a dollar or two a month. Checking the key is free (IAM and STS calls cost nothing).
Connect
- Turn on Cost Explorer if you haven't: open it once in the AWS Billing and Cost Management console. AWS takes about a day to fill it.
- In the AWS console, open IAM → Users → Create user. Name it
aggregate-cost-reader. No console access, no groups, no attached policies, and no path. - Open the new user → Permissions → Add permissions → Create inline policy → JSON, paste this policy, and save it (any name). Add nothing else.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ReadCostExplorer",
"Effect": "Allow",
"Action": "ce:GetCostAndUsage",
"Resource": "*"
},
{
"Sid": "LetAggregateCheckThisUserCanOnlyRead",
"Effect": "Allow",
"Action": [
"iam:SimulatePrincipalPolicy",
"iam:ListGroupsForUser",
"iam:ListAttachedUserPolicies",
"iam:ListUserPolicies",
"iam:GetUserPolicy"
],
"Resource": "arn:aws:iam::*:user/${aws:username}"
}
]
}
- Security credentials → Create access key → Application running outside AWS. Copy the access key ID and the secret access key.
- In Aggregate, open Connections → + Add a connection → AWS Cost Explorer, and paste both.
- Connect your AI to Aggregate and ask about it.
The second statement lets the user read only its own policy, nothing else in your account. Aggregate uses it before connecting and before every sync to check, with IAM itself, that the key can do nothing but read costs:
- the key belongs to an IAM user (not the root user, a role or another session);
- IAM's policy simulator says a fixed list of writes (creating users or keys, launching or ending instances, writing to S3, changing billing or payments, Cost Explorer's own settings, and more) are all denied, and reading costs is allowed;
- the user is in no groups and has no managed policies attached;
- every inline policy allows only Cost Explorer reads (
ce:Get…,ce:Describe…) and the five self-checks above.
If any of that changes, Aggregate stops, disconnects the key and deletes its copy. What it can't see: a resource policy elsewhere in your account (on an S3 bucket, say) that names this user.
Never name the Aggregate user or its key in any bucket, queue, key or other resource policy. A resource policy can give the user rights Aggregate's check can't see, so keep this user out of every resource policy in the account.
How it's counted
Each month is Cost Explorer's own total for the month, to the cent. Aggregate asks for the same month a second time broken down by charge type and service, adds the breakdown up exactly, and checks it matches the total. Each line is then rounded to the cent so the lines add up to the total exactly (no line moves by a cent or more). If the breakdown doesn't match, the sync stops and changes nothing.
Disconnect and delete
Disconnect AWS Cost Explorer in Aggregate at any time. Disconnecting deletes what it brought in after 30 days, unless you connect it again before then, or right away if you choose Disconnect and delete its data. Aggregate can't delete the access key in AWS, so to end access there too, delete the key (or the aggregate-cost-reader user) in IAM. Backups are kept for 25 days, so deleted data is gone from backups within 30 days. To delete all your data, delete your workspace. See Privacy.
Questions people ask
Can my AI change anything in AWS? No. Aggregate only connects a key that can read costs, and only reads. Aggregate can't move money.
What does it cost? Aggregate is free while we're in beta. We may introduce paid plans later, and we'll let you know before anything changes. AWS charges its own $0.01 per Cost Explorer request, as above.
Who do I contact? support@aggregate.finance.
Related
Last checked 2026-11-26.
© 2026 Aggregate Finance LLC