AWS Billing Exports: Data Exports and CUR
Every AWS connection needs a billing export, which AWS delivers to S3. Before accepting a new or changed billing source, Spotto checks its definition and storage access in AWS. You can finish before the first delivery, with the policy-readiness limits described below.
| Your situation | Do this |
|---|---|
| No export yet | Choose Create a New Export on the connect page. See create a billing export. |
| A CUR 2.0 export in the account you're connecting | Choose Use an Existing Export, then Finish to check access. Grant instructions appear only if that check identifies missing access. See connect an existing export. |
| The bucket is in another account, or a legacy CUR | Use Manual Setup, as on this page. |
Supported Exports
| Data Exports (CUR 2.0) | Legacy CUR, Manual Setup only | |
|---|---|---|
| Format | Parquet (required) | Parquet (preferred) or GZIP CSV |
| Time granularity | Daily (preferred) or Hourly | Daily or Hourly |
| Resource IDs | Required | Required |
| Capacity reservation data | Off or omitted | Not applicable |
| Monthly | Not supported | Not supported |
The required columns are listed in supported exports. A CUR 2.0 export with capacity reservation data enabled is not supported.
How Spotto Reads A Billing Export
Up to three accounts are involved. They're often the same account:
| Account | Role in billing | Access it needs |
|---|---|---|
| Export Definition Account | Where the export is set up, usually the management account | Reads the export's settings |
| Billing Payer Account | Whose bill the export covers. Used only to label costs. | None |
| S3 Storage Account | Owns the bucket the files land in | SpottoBillingExportRead (or SpottoExistingBillingExportRead for an existing export), for the export folder only |
All three must be accounts you've included in Spotto.
Add A Billing Source
On the Billing step of Manual Setup:
-
Select Add Billing Source.
-
Choose the Export Type: Data Exports (CUR 2.0) or Legacy Cost and Usage Report (CUR).
-
With more than one account, choose the Export Definition Account, Billing Payer Account and S3 Storage Account.
-
Enter the export details. See find your AWS IDs for each one.
Field Notes Data Export ARN Data Exports only. Spotto fills in Export Name from it. Export Name, or Legacy CUR Report Name Such as cid-cur2.S3 Bucket Name Without s3://.S3 Prefix Exactly as configured on the export. Empty for the bucket root. S3 Bucket Region The bucket's Region. KMS Key ARN Only for a customer-managed key. The full key ARN, not an alias. S3 Bucket Owner Account ID Only if another account owns the bucket. -
With more than one account, choose the Billing Coverage: All Accounts, or Selected Accounts.
AWS delivers files to <prefix>/<export name>/…. A prefix that already includes the export name points Spotto at the wrong folder.
Give The Roles Billing Access
- Roles not deployed yet? Deploy them now, as in deploy the role. They include billing access.
- Already deployed? Update the definition and storage accounts' roles: download their new templates and update the stacks, or generate their role instructions again and replace the policies.
Two policies outside the role may also need a change:
| Policy | Change |
|---|---|
| KMS key policy | If the files use a customer-managed key, allow the storage account's role kms:Decrypt and kms:DescribeKey. The role's own permissions aren't enough for KMS. |
| S3 bucket policy | If another account owns the bucket, allow the storage account's role. |
The exact permissions are in billing export access.
What Check Details And Save Check
Deploy the definition and storage roles before selecting Check Details, Create, Update or Finish. For each new or changed enabled billing source, Spotto:
- Assumes the definition role and reads the export from AWS. Its name, supported settings, bucket, prefix, Region and owner must match the source you entered.
- Assumes the storage role and looks for a delivered file. If one is readable, its first byte and encryption metadata establish actual access; any key you entered must match that file's key. The current bucket default is not checked in this path, because older files may use another key.
- If the folder is empty, reads the bucket's encryption settings and resolves its SSE-KMS key through read-only lookups. An entered key must match that default. Missing encryption access, unresolved or unusable keys, and missing policy-simulation context block acceptance; Spotto never creates a key to pass the check. IAM simulation checks object-read and customer-managed key-decrypt grants. Only the existing AWS-managed S3 key for that account and Region can use its service-mediated key policy without an identity allow; a simulated explicit decryption deny still blocks setup, and a reported Organizations or permissions-boundary restriction is inconclusive and also blocks acceptance.
An empty-folder result confirms policy readiness, not complete file access. IAM simulation doesn't prove that the S3 bucket policy, KMS key policy, resource control policies or VPC endpoint policies allow the future read. Spotto checks actual file access when delivery arrives; those policies can still block import.
If access fails, grant guidance is shown only for the current exact export and destination after encryption has been identified. A discovered bucket-default key is used for that grant operation only; Spotto does not copy it into your entered or saved key field, because older files may use another key. A retry discovers access again. For an existing billing-access stack, follow the update instructions instead of creating another stack with the same name.
Check Details saves nothing and starts no scan. Saving repeats the same checks before accepting changes; a failed check creates no configuration or scan request. Unchanged billing sources in a saved configuration are skipped by this preflight and remain subject to the background engine's validation.
Waiting For The First Files
A billing source that passes policy readiness without files waits for delivery. Scans carry on; billing import still needs a successful read of the delivered files. See when data arrives.
For validation and KMS errors, see billing source needs attention.