This data source connector downloads AWS Cost Usage Reports exported to S3 in CSV format.
First, the CUR report exports need to be set up in the AWS account to be exported to an S3 bucket in the selected granularity and CSV format. Follow this guide to set up the export.
Export setup:
Create a new configuration of the AWS Cost Usage Reports connector.
Fill in the AWS config containing your S3 bucket details and credentials as set up in the AWS console.
You have the following loading options:
Incremental Update
, the result tables will be updated based on the primary key. Full Load
overwrites the destination table each time. Note that the primary key should be set on Incremental Load
.Now fill in the extraction configuration parameters:
Maximum date
parameter is ignored.New files only
is checked, this applies only on the first run, reset the state to backfill.
Date in YYYY-MM-DD
format or a string, i.e., 5 days ago
, 1 month ago
, yesterday
, etc. If left empty, all records will be downloaded.New files only
is checked, this applies only on the first run, reset the state to backfill.
Date in YYYY-MM-DD
format or a string, i.e., 5 days ago
, 1 month ago
, yesterday
, etc. If left empty, all records will be downloaded.my-report
or some/long/prefix/my_report
.
In most cases, this would be the prefix you’ve chosen. If unsure, refer to the S3 bucket containing the report
and copy the path of the report folder.If the Incremental Load is set to true, the new data will be appended to the old ones. This way you can import new data, e.g., from today, without deleting the data imported before.
The output schema follows the structure described in the official AWS documentation.
Keep in mind that the result column names are modified to match the Keboola Storage column name requirements:
__
. E.g.,bill/BillingPeriodEndDate
is converted to bill__billingPeriodEndDate
._
underscores are replaced by underscore.
E.g., resourceTags/user:owner
is converted to resourceTags__user_owner
resourceTags/user:name
and resourceTags/user:Name
lead to resourceTags__user_Name
and resourcetags__user_name_1
columns respectively.Note: The output schema changes often and may be also affected by the tags and custom columns you define.