AggregateDocs
Guides

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

What it leaves out

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

  1. 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.
  2. 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.
  3. 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}"
    }
  ]
}
  1. Security credentials → Create access key → Application running outside AWS. Copy the access key ID and the secret access key.
  2. In Aggregate, open Connections → + Add a connection → AWS Cost Explorer, and paste both.
  3. 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:

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.

Last checked 2026-11-26.

© 2026 Aggregate Finance LLC