Skip to main content

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 situationDo this
No export yetChoose Create a New Export on the connect page. See create a billing export.
A CUR 2.0 export in the account you're connectingChoose 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 CURUse Manual Setup, as on this page.

Supported Exports​

Data Exports (CUR 2.0)Legacy CUR, Manual Setup only
FormatParquet (required)Parquet (preferred) or GZIP CSV
Time granularityDaily (preferred) or HourlyDaily or Hourly
Resource IDsRequiredRequired
Capacity reservation dataOff or omittedNot applicable
MonthlyNot supportedNot 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:

The export definition account, usually the management account, holds the Data Export or CUR. The billing payer account is whose charges the export covers; Spotto uses it to label the data and it needs no extra access. AWS delivers the files to your billing bucket in the S3 storage account, which can be the same account or a separate billing or data account; the first files can take up to 24 hours. Spotto reads the one export definition with the definition account's role, and lists and reads the export folder with the storage account's role and SpottoBillingExportRead, plus the KMS key policy if a key is used. It checks the definition matches what you entered, then imports cost history. Example path: s3://example-billing/cur2/111122223333/cid-cur2/data/…, where example-billing is the bucket name, cur2/111122223333 is the S3 prefix, cid-cur2 is the export name and AWS adds the rest. The prefix and export name together are the only folder Spotto can read. Enter the prefix exactly as configured on the export and the export name separately.The export definition account, usually the management account, holds the Data Export or CUR. The billing payer account is whose charges the export covers; Spotto uses it to label the data and it needs no extra access. AWS delivers the files to your billing bucket in the S3 storage account, which can be the same account or a separate billing or data account; the first files can take up to 24 hours. Spotto reads the one export definition with the definition account's role, and lists and reads the export folder with the storage account's role and SpottoBillingExportRead, plus the KMS key policy if a key is used. It checks the definition matches what you entered, then imports cost history. Example path: s3://example-billing/cur2/111122223333/cid-cur2/data/…, where example-billing is the bucket name, cur2/111122223333 is the S3 prefix, cid-cur2 is the export name and AWS adds the rest. The prefix and export name together are the only folder Spotto can read. Enter the prefix exactly as configured on the export and the export name separately.
AccountRole in billingAccess it needs
Export Definition AccountWhere the export is set up, usually the management accountReads the export's settings
Billing Payer AccountWhose bill the export covers. Used only to label costs.None
S3 Storage AccountOwns the bucket the files land inSpottoBillingExportRead (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:

  1. Select Add Billing Source.

  2. Choose the Export Type: Data Exports (CUR 2.0) or Legacy Cost and Usage Report (CUR).

  3. With more than one account, choose the Export Definition Account, Billing Payer Account and S3 Storage Account.

  4. Enter the export details. See find your AWS IDs for each one.

    FieldNotes
    Data Export ARNData Exports only. Spotto fills in Export Name from it.
    Export Name, or Legacy CUR Report NameSuch as cid-cur2.
    S3 Bucket NameWithout s3://.
    S3 PrefixExactly as configured on the export. Empty for the bucket root.
    S3 Bucket RegionThe bucket's Region.
    KMS Key ARNOnly for a customer-managed key. The full key ARN, not an alias.
    S3 Bucket Owner Account IDOnly if another account owns the bucket.
  5. With more than one account, choose the Billing Coverage: All Accounts, or Selected Accounts.

Enter the prefix, not the full path

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:

PolicyChange
KMS key policyIf 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 policyIf 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:

  1. 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.
  2. 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.
  3. 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.