Sub topic 11
Getting access to billing and cost data
This chapter assumes you have signed up for an AWS account, enabled MFA on the root user, and can use the AWS CLI. You also need an IAM identity for daily work, which the previous chapter set up. Here you will learn why that identity cannot see billing pages by default, how to turn that access on, and how to grant it with a policy.
Why billing is hidden by default
A new AWS account is built so that only the root user can see billing pages. IAM users and roles, even ones with the AdministratorAccess policy, are blocked from the Billing and Cost Management console. This is a deliberate default. Billing data shows your payment methods and spending, and AWS does not assume your administrators should see it.
A common error follows from this. You sign in as your admin identity, open the Billing console, and see "You don't have permissions to access this page." Nothing is broken. A setting is missing.
Turn on IAM access to billing
The setting is called IAM user and role access to Billing information. Only the root user can change it, and this is one of the few tasks that needs root.
- Sign in as the root user with MFA.
- Open the account menu in the top right corner and choose Account.
- Scroll to IAM user and role access to Billing information and choose Edit.
- Select Activate IAM Access and choose Update.
- Sign out of the root user.
Activating access does not give anyone permissions by itself. It removes the block, so that IAM policies can then allow billing actions.
Grant billing permissions
With access activated, the identity still needs a policy that allows billing actions. The AWS managed policy Billing grants broad billing access, and AWSBillingReadOnlyAccess grants read-only access. Following least privilege, give read-only access to people who only need to look at costs.
Attach the read-only policy to a user. This example uses a user named daily-admin, which you should replace with your own identity.
aws iam attach-user-policy \
--user-name daily-admin \
--policy-arn arn:aws:iam::aws:policy/AWSBillingReadOnlyAccessIf your daily identity comes from IAM Identity Center, attach the policy to a permission set instead. The activation step still applies.
Check that cost data is visible
Cost Explorer shows spending by service and by day. Open it once in the console to enable it, because it is not populated until you do. Data can take up to 24 hours to appear.
After that, you can query it from the CLI. This command returns the unblended cost for the current month so far, grouped by service. Replace the dates with the first day of the month and tomorrow's date, because the end date is not included.
aws ce get-cost-and-usage \
--time-period Start=2026-11-01,End=2026-11-27 \
--granularity MONTHLY \
--metrics UnblendedCost \
--group-by Type=DIMENSION,Key=SERVICECost Explorer API requests are charged, at the time of writing about 0.01 USD per request. Use the console for routine checks and avoid putting this call in a loop.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Billing console shows "You don't have permissions" | IAM access to Billing is not activated | Activate it as the root user |
| Same error after activation | The identity has no billing policy | Attach `AWSBillingReadOnlyAccess` or an equivalent |
| `AccessDeniedException` from `aws ce` | The policy lacks `ce:` actions | Add the Cost Explorer actions your policy needs |
| Cost Explorer is empty | It was never enabled, or data is still loading | Open it in the console and wait up to 24 hours |
Exercise
You sign in as an IAM identity with the AdministratorAccess policy and cannot open the Billing console. Name the two things that could be missing, and who must fix the first one.
Show answer
IAM access to Billing information may not be activated, and the identity may lack a billing policy. Only the root user can activate IAM access to Billing, so the first fix needs a root sign-in. After that, you can attach a billing policy such as AWSBillingReadOnlyAccess from an administrative identity.