{"id":22793326,"url":"https://github.com/fivetran/dbt_aws_cloud_cost","last_synced_at":"2026-01-29T22:00:49.732Z","repository":{"id":245933872,"uuid":"818368111","full_name":"fivetran/dbt_aws_cloud_cost","owner":"fivetran","description":"Fivetran's AWS Cloud Cost dbt package","archived":false,"fork":false,"pushed_at":"2026-01-15T20:16:34.000Z","size":1266,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-17T05:09:54.183Z","etag":null,"topics":["aws-cost","aws-cost-and-usage-report","dbt","dbt-packages","fivetran"],"latest_commit_sha":null,"homepage":"https://fivetran.github.io/dbt_aws_cloud_cost/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fivetran.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-06-21T17:36:27.000Z","updated_at":"2026-01-15T19:46:56.000Z","dependencies_parsed_at":"2026-01-16T19:03:13.369Z","dependency_job_id":null,"html_url":"https://github.com/fivetran/dbt_aws_cloud_cost","commit_stats":null,"previous_names":["fivetran/dbt_aws_cloud_cost"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/fivetran/dbt_aws_cloud_cost","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivetran%2Fdbt_aws_cloud_cost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivetran%2Fdbt_aws_cloud_cost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivetran%2Fdbt_aws_cloud_cost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivetran%2Fdbt_aws_cloud_cost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fivetran","download_url":"https://codeload.github.com/fivetran/dbt_aws_cloud_cost/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fivetran%2Fdbt_aws_cloud_cost/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28886880,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T21:06:44.224Z","status":"ssl_error","status_checked_at":"2026-01-29T21:06:42.160Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-cost","aws-cost-and-usage-report","dbt","dbt-packages","fivetran"],"created_at":"2024-12-12T03:19:14.134Z","updated_at":"2026-01-29T22:00:49.664Z","avatar_url":"https://github.com/fivetran.png","language":"Shell","funding_links":[],"categories":["Shell","Others"],"sub_categories":[],"readme":"\u003c!--section=\"aws-cloud-cost_transformation_model\"--\u003e\n# Aws Cloud Cost dbt Package\n\n\u003cp align=\"left\"\u003e\n    \u003ca alt=\"License\"\n        href=\"https://github.com/fivetran/dbt_aws_cloud_cost/blob/main/LICENSE\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/License-Apache%202.0-blue.svg\" /\u003e\u003c/a\u003e\n    \u003ca alt=\"dbt-core\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/dbt_Core™_version-\u003e=1.3.0_,\u003c3.0.0-orange.svg\" /\u003e\u003c/a\u003e\n    \u003ca alt=\"Maintained?\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Maintained%3F-yes-green.svg\" /\u003e\u003c/a\u003e\n    \u003ca alt=\"PRs\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Contributions-welcome-blueviolet\" /\u003e\u003c/a\u003e\n    \u003ca alt=\"Fivetran Quickstart Compatible\"\n        href=\"https://fivetran.com/docs/transformations/data-models/quickstart-management#quickstartmanagement\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/Fivetran_Quickstart_Compatible%3F-yes-green.svg\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nThis dbt package transforms data from Fivetran's Aws Cloud Cost connector into analytics-ready tables.\n\n## Resources\n\n- Number of materialized models¹: 5\n- Connector documentation\n  - [AWS Cloud Cost connector documentation](https://fivetran.com/docs/connectors/applications/aws-cost-report)\n  - [AWS Cost \u0026 Usage Report](https://fivetran.com/docs/connectors/applications/aws-cost-report#syncoverview)\n- dbt package documentation\n  - [GitHub repository](https://github.com/fivetran/dbt_aws_cloud_cost)\n  - [dbt Docs](https://fivetran.github.io/dbt_aws_cloud_cost/#!/overview)\n  - [DAG](https://fivetran.github.io/dbt_aws_cloud_cost/#!/overview?g_v=1)\n  - [Changelog](https://github.com/fivetran/dbt_aws_cloud_cost/blob/main/CHANGELOG.md)\n\n## What does this dbt package do?\nThis package enables you to monitor and investigate cost \u0026 usage of different AWS services across your organizations. It creates enriched models with metrics focused on billing, pricing, line item buckets, products, reservations, and savings plans.\n\n\n### Output schema\nFinal output tables are generated in the following target schema:\n\n```\n\u003cyour_database\u003e.\u003cconnector/schema_name\u003e_aws_cloud_cost\n```\n\n### Final output tables\n\nBy default, this package materializes the following final tables:\n\n| Table | Description |\n| :---- | :---- |\n| [aws_cloud_cost__daily_overview](https://fivetran.github.io/dbt_aws_cloud_cost/#!/model/model.aws_cloud_cost.aws_cloud_cost__daily_overview) | Provides a comprehensive daily view of AWS costs and usage across all services, accounts, and billing dimensions from the [Standard](https://docs.aws.amazon.com/cur/latest/userguide/dataexports-create-standard.html) Cost \u0026 Usage Report (2.0) to monitor spending patterns, optimize costs, and track [reservations](https://docs.aws.amazon.com/cur/latest/userguide/table-dictionary-cur2-reservation.html) and [savings plans](https://docs.aws.amazon.com/cur/latest/userguide/table-dictionary-cur2-savings-plan.html). \u003cbr\u003e\u003c/br\u003e**Example Analytics Questions:**\u003cul\u003e\u003cli\u003eWhat are our daily AWS costs by [billing](https://docs.aws.amazon.com/cur/latest/userguide/table-dictionary-cur2-bill.html) account, [product](https://docs.aws.amazon.com/cur/latest/userguide/table-dictionary-cur2-product.html), or region?\u003c/li\u003e\u003cli\u003eHow much are we saving through reservations and savings plans compared to on-demand pricing?\u003c/li\u003e\u003cli\u003eWhich [line item](https://docs.aws.amazon.com/cur/latest/userguide/table-dictionary-cur2-line-item.html) buckets or [pricing](https://docs.aws.amazon.com/cur/latest/userguide/table-dictionary-cur2-pricing.html) categories are driving the biggest spending increases?\u003c/li\u003e\u003c/ul\u003e|\n| [aws_cloud_cost__daily_product_report](https://fivetran.github.io/dbt_aws_cloud_cost/#!/model/model.aws_cloud_cost.aws_cloud_cost__daily_product_report) | Breaks down daily AWS spending by individual product and service for each account to identify which services consume the most budget and where optimization opportunities exist. \u003cbr\u003e\u003c/br\u003e**Example Analytics Questions:**\u003cul\u003e\u003cli\u003eWhich AWS products or services drive the highest costs by account?\u003c/li\u003e\u003cli\u003eHow are product-specific costs trending day-over-day or month-over-month?\u003c/li\u003e\u003cli\u003eWhere should we focus cost optimization efforts based on product spending patterns?\u003c/li\u003e\u003c/ul\u003e|\n| [aws_cloud_cost__daily_instance_report](https://fivetran.github.io/dbt_aws_cloud_cost/#!/model/model.aws_cloud_cost.aws_cloud_cost__daily_instance_report) | Analyzes daily costs and usage for EC2 instances across all accounts to optimize compute spending and identify underutilized or oversized instances. \u003cbr\u003e\u003c/br\u003e**Example Analytics Questions:**\u003cul\u003e\u003cli\u003eWhich EC2 instance types generate the highest daily costs by account?\u003c/li\u003e\u003cli\u003eHow does EC2 instance usage and spending vary across different accounts or environments?\u003c/li\u003e\u003cli\u003eAre there opportunities to right-size instances based on usage patterns?\u003c/li\u003e\u003c/ul\u003e|\n\n¹ Each Quickstart transformation job run materializes these models if all components of this data model are enabled. This count includes all staging, intermediate, and final models materialized as `view`, `table`, or `incremental`.\n\n---\n\n## Prerequisites\nTo use this dbt package, you must have the following:\n\n- At least one Fivetran AWS Cloud Cost connection syncing data into your destination.\n- A **BigQuery**, **Snowflake**, **Redshift**, **Databricks**, or **PostgreSQL** destination.\n\n## How do I use the dbt package?\nYou can either add this dbt package in the Fivetran dashboard or import it into your dbt project:\n\n- To add the package in the Fivetran dashboard, follow our [Quickstart guide](https://fivetran.com/docs/transformations/data-models/quickstart-management#quickstartmanagement).\n- To add the package to your dbt project, follow the setup instructions in the dbt package's [README file](https://github.com/fivetran/dbt_aws_cloud_cost/blob/main/README.md#how-do-i-use-the-dbt-package) to use this package.\n\n\u003e DISCLAIMER: This package transforms source data of potentially very high volumes. Please be aware of the size of your dataset(s) and take this into consideration when configuring the frequency with which you will orchestrate the package models. See [Additional configurations](https://github.com/fivetran/dbt_aws_cloud_cost?tab=readme-ov-file#optional-additional-configurations) for tools to mitigate compute and storage costs.\n\n\u003c!--section-end--\u003e\n\n### Install the package\nInclude the following AWS Cloud Cost package version in your `packages.yml` file:\n\u003e TIP: Check [dbt Hub](https://hub.getdbt.com/) for the latest installation instructions or [read the dbt docs](https://docs.getdbt.com/docs/package-management) for more information on installing packages.\n```yml\npackages:\n  - package: fivetran/aws_cloud_cost\n    version: [\"\u003e=0.3.0\", \"\u003c0.4.0\"] # we recommend using ranges to capture non-breaking changes automatically\n```\n\n##### Databricks dispatch configuration\nIf you are using a Databricks destination with this package, you must add the following (or a variation of the following) dispatch configuration within your `dbt_project.yml`. This is required in order for the package to accurately search for macros within the `dbt-labs/spark_utils` then the `dbt-labs/dbt_utils` packages respectively.\n```yml\ndispatch:\n  - macro_namespace: dbt_utils\n    search_order: ['spark_utils', 'dbt_utils']\n```\n\n### Define database, schema, and table name variables\n\n##### Option A: Single connection\nBy default, this package assumes your AWS Cost \u0026 Usage Report data lives in the following location:\n\n- Your `target.database`\n- A schema called `aws_cloud_cost`\n- A table called `aws_cloud_cost_report`\n\nIn the very likely case that your AWS Cloud Cost source data lives someplace else (for example, if your AWS Cloud Cost schema is named `aws_cloud_cost_fivetran` or your table is called `aws_billing`), add the following configuration to your root `dbt_project.yml` file:\n\n```yml\n# dbt_project.yml\n\nvars:\n    aws_cloud_cost_database: your_database_name # default: target.database\n    aws_cloud_cost_schema: your_schema_name # default: aws_cloud_cost\n    aws_cloud_cost_report_identifier: your_table_name # default: aws_cloud_cost_report\n```\n\n##### Option B: Union multiple connections\nIf you have multiple AWS Cloud Cost connections in Fivetran and would like to use this package on all of them simultaneously, we have provided functionality to do so. The package will union all of the data together and pass the unioned table into the transformations. You will be able to see which source it came from (the `database.schema.table`, NOT the source `name`) in the `source_relation` column of each model.\n\nTo use this functionality, you will need to configure the `aws_cloud_cost_sources` dictionary-list in your root `dbt_project.yml` file. For each source, provide the appropriate `database`, `schema`, and `table` for each dataset:\n\n```yml\n# dbt_project.yml\n\nvars:\n  aws_cloud_cost_sources:\n    - database: source_databse_name # default: target.database\n      schema: source_schema_name\n      table: source_table_name\n\n    - database: 'my-db-example'\n      schema: aws_cost_schema_example\n      table: report_table_example\n\n    # include as many sources as you'd like\n```\n\n###### Recommended: Incorporate unioned sources into DAG\n\u003e NOTE: The native `aws_cloud_cost` source connection set up in the package will not function when the union-feature is utilized. Although the package will run correctly and the data will be correctly transformed, you will not observe the sources linked to the package models in the Directed Acyclic Graph (DAG).\n\nTo properly incorporate all of your AWS Cloud Cost connections into your project's DAG:\n\n1. For each source provided to the `aws_cloud_cost_sources` variable, you must now add a unique `name` attribute. This can be any name, so long as it is unique and matches the `source.name` you define in the following step.\n\n```yml\n# dbt_project.yml\n\nvars:\n  aws_cloud_cost_sources:\n    - database: source_databse_name\n      schema: source_schema_name\n      table: source_table_name\n      name: unique_source_name # NOW REQUIRED - can choose any name so long as it is unique\n\n    - database: 'my-db-example'\n      schema: aws_cost_schema_example\n      table: report_table_example\n      name: my_aws_cost_report_source\n\n    # include as many sources as you'd like\n```\n\n2. Define each source provided to the `aws_cloud_cost_sources` variable in a `.yml` file in your root project's `models/` pathway. Utilize the following template for the `source`-level configurations, and, **most importantly**, copy and paste the table and column-level definitions:\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ci\u003eExpand for source template\u003c/i\u003e\u003c/summary\u003e\n\n```yml\n# a .yml file in your root project\nsources:\n  - name: \u003cname\u003e # Must map onto name in var(aws_cloud_cost_sources) you added in the previous step\n    schema: \u003cschema_name\u003e # Must map onto schema in var(aws_cloud_cost_sources)\n    database: \u003cdatabase_name\u003e # Must map onto database in var(aws_cloud_cost_sources)\n    loader: fivetran\n    loaded_at_field: _fivetran_synced\n\n    tables:\n      - name: \u003ctable_name_as_it_appears_in_warehouse\u003e # Must map onto table in var(aws_cloud_cost_sources)\n        description: '{{ doc(\"aws_cloud_cost_report\") }}' # Your projecy will inherit docs blocks defined by this package\n        columns: \u0026aws_report_columns # Can use columns: *aws_report yaml anchor in subsequent sources\n          - name: _file\n            description: '{{ doc(\"_file\") }}'\n          - name: _line\n            description: '{{ doc(\"_line\") }}'\n          - name: _fivetran_synced\n            description: '{{ doc(\"_fivetran_synced\") }}'\n          - name: _modified\n            description: '{{ doc(\"_modified\") }}'\n          - name: bill_bill_type\n            description: '{{ doc(\"bill_bill_type\") }}'\n          - name: bill_billing_entity\n            description: '{{ doc(\"bill_billing_entity\") }}'\n          - name: bill_billing_period_end_date\n            description: '{{ doc(\"bill_billing_period_end_date\") }}'\n          - name: bill_billing_period_start_date\n            description: '{{ doc(\"bill_billing_period_start_date\") }}'\n          - name: bill_invoice_id\n            description: '{{ doc(\"bill_invoice_id\") }}'\n          - name: bill_invoicing_entity\n            description: '{{ doc(\"bill_invoicing_entity\") }}'\n          - name: bill_payer_account_id\n            description: '{{ doc(\"bill_payer_account_id\") }}'\n          - name: identity_line_item_id\n            description: '{{ doc(\"identity_line_item_id\") }}'\n          - name: identity_time_interval\n            description: '{{ doc(\"identity_time_interval\") }}'\n          - name: line_item_availability_zone\n            description: '{{ doc(\"line_item_availability_zone\") }}'\n          - name: line_item_blended_cost\n            description: '{{ doc(\"line_item_blended_cost\") }}'\n          - name: line_item_blended_rate\n            description: '{{ doc(\"line_item_blended_rate\") }}'\n          - name: line_item_currency_code\n            description: '{{ doc(\"line_item_currency_code\") }}'\n          - name: line_item_legal_entity\n            description: '{{ doc(\"line_item_legal_entity\") }}'\n          - name: line_item_line_item_description\n            description: '{{ doc(\"line_item_line_item_description\") }}'\n          - name: line_item_line_item_type\n            description: '{{ doc(\"line_item_line_item_type\") }}'\n          - name: line_item_normalization_factor\n            description: '{{ doc(\"line_item_normalization_factor\") }}'\n          - name: line_item_normalized_usage_amount\n            description: '{{ doc(\"line_item_normalized_usage_amount\") }}'\n          - name: line_item_operation\n            description: '{{ doc(\"line_item_operation\") }}'\n          - name: line_item_product_code\n            description: '{{ doc(\"line_item_product_code\") }}'\n          - name: line_item_resource_id\n            description: '{{ doc(\"line_item_resource_id\") }}'\n          - name: line_item_tax_type\n            description: '{{ doc(\"line_item_tax_type\") }}'\n          - name: line_item_unblended_cost\n            description: '{{ doc(\"line_item_unblended_cost\") }}'\n          - name: line_item_unblended_rate\n            description: '{{ doc(\"line_item_unblended_rate\") }}'\n          - name: line_item_usage_account_id\n            description: '{{ doc(\"line_item_usage_account_id\") }}'\n          - name: line_item_usage_amount\n            description: '{{ doc(\"line_item_usage_amount\") }}'\n          - name: line_item_usage_end_date\n            description: '{{ doc(\"line_item_usage_end_date\") }}'\n          - name: line_item_usage_start_date\n            description: '{{ doc(\"line_item_usage_start_date\") }}'\n          - name: line_item_usage_type\n            description: '{{ doc(\"line_item_usage_type\") }}'\n          - name: pricing_currency\n            description: '{{ doc(\"pricing_currency\") }}'\n          - name: pricing_lease_contract_length\n            description: '{{ doc(\"pricing_lease_contract_length\") }}'\n          - name: pricing_offering_class\n            description: '{{ doc(\"pricing_offering_class\") }}'\n          - name: pricing_public_on_demand_cost\n            description: '{{ doc(\"pricing_public_on_demand_cost\") }}'\n          - name: pricing_public_on_demand_rate\n            description: '{{ doc(\"pricing_public_on_demand_rate\") }}'\n          - name: pricing_purchase_option\n            description: '{{ doc(\"pricing_purchase_option\") }}'\n          - name: pricing_rate_code\n            description: '{{ doc(\"pricing_rate_code\") }}'\n          - name: pricing_rate_id\n            description: '{{ doc(\"pricing_rate_id\") }}'\n          - name: pricing_term\n            description: '{{ doc(\"pricing_term\") }}'\n          - name: pricing_unit\n            description: '{{ doc(\"pricing_unit\") }}'\n          - name: product_fee_code\n            description: '{{ doc(\"product_fee_code\") }}'\n          - name: product_fee_description\n            description: '{{ doc(\"product_fee_description\") }}'\n          - name: product_from_location\n            description: '{{ doc(\"product_from_location\") }}'\n          - name: product_from_location_type\n            description: '{{ doc(\"product_from_location_type\") }}'\n          - name: product_from_region_code\n            description: '{{ doc(\"product_from_region_code\") }}'\n          - name: product_instance_family\n            description: '{{ doc(\"product_instance_family\") }}'\n          - name: product_instance_type\n            description: '{{ doc(\"product_instance_type\") }}'\n          - name: product_location\n            description: '{{ doc(\"product_location\") }}'\n          - name: product_location_type\n            description: '{{ doc(\"product_location_type\") }}'\n          - name: product_operation\n            description: '{{ doc(\"product_operation\") }}'\n          - name: product_pricing_unit\n            description: '{{ doc(\"product_pricing_unit\") }}'\n          - name: product_product_family\n            description: '{{ doc(\"product_product_family\") }}'\n          - name: product_product_name\n            description: '{{ doc(\"product_product_name\") }}'\n          - name: product_region_code\n            description: '{{ doc(\"product_region_code\") }}'\n          - name: product_servicecode\n            description: '{{ doc(\"product_servicecode\") }}'\n          - name: product_sku\n            description: '{{ doc(\"product_sku\") }}'\n          - name: product_to_location\n            description: '{{ doc(\"product_to_location\") }}'\n          - name: product_to_location_type\n            description: '{{ doc(\"product_to_location_type\") }}'\n          - name: product_to_region_code\n            description: '{{ doc(\"product_to_region_code\") }}'\n          - name: product_usagetype\n            description: '{{ doc(\"product_usagetype\") }}'\n          - name: reservation_amortized_upfront_fee_for_billing_period\n            description: '{{ doc(\"reservation_amortized_upfront_fee_for_billing_period\") }}'\n          - name: reservation_end_time\n            description: '{{ doc(\"reservation_end_time\") }}'\n          - name: reservation_modification_status\n            description: '{{ doc(\"reservation_modification_status\") }}'\n          - name: reservation_normalized_units_per_reservation\n            description: '{{ doc(\"reservation_normalized_units_per_reservation\") }}'\n          - name: reservation_number_of_reservations\n            description: '{{ doc(\"reservation_number_of_reservations\") }}'\n          - name: reservation_reservation_arn\n            description: '{{ doc(\"reservation_reservation_arn\") }}'\n          - name: reservation_start_time\n            description: '{{ doc(\"reservation_start_time\") }}'\n          - name: reservation_subscription_id\n            description: '{{ doc(\"reservation_subscription_id\") }}'\n          - name: reservation_total_reserved_normalized_units\n            description: '{{ doc(\"reservation_total_reserved_normalized_units\") }}'\n          - name: reservation_total_reserved_units\n            description: '{{ doc(\"reservation_total_reserved_units\") }}'\n          - name: reservation_units_per_reservation\n            description: '{{ doc(\"reservation_units_per_reservation\") }}'\n          - name: reservation_unused_amortized_upfront_fee_for_billing_period\n            description: '{{ doc(\"reservation_unused_amortized_upfront_fee_for_billing_period\") }}'\n          - name: reservation_unused_normalized_unit_quantity\n            description: '{{ doc(\"reservation_unused_normalized_unit_quantity\") }}'\n          - name: reservation_unused_quantity\n            description: '{{ doc(\"reservation_unused_quantity\") }}'\n          - name: reservation_unused_recurring_fee\n            description: '{{ doc(\"reservation_unused_recurring_fee\") }}'\n          - name: reservation_upfront_value\n            description: '{{ doc(\"reservation_upfront_value\") }}'\n          - name: savings_plan_end_time\n            description: '{{ doc(\"savings_plan_end_time\") }}'\n          - name: savings_plan_offering_type\n            description: '{{ doc(\"savings_plan_offering_type\") }}'\n          - name: savings_plan_payment_option\n            description: '{{ doc(\"savings_plan_payment_option\") }}'\n          - name: savings_plan_purchase_term\n            description: '{{ doc(\"savings_plan_purchase_term\") }}'\n          - name: savings_plan_region\n            description: '{{ doc(\"savings_plan_region\") }}'\n          - name: savings_plan_savings_plan_arn\n            description: '{{ doc(\"savings_plan_savings_plan_arn\") }}'\n          - name: savings_plan_savings_plan_effective_cost\n            description: '{{ doc(\"savings_plan_savings_plan_effective_cost\") }}'\n          - name: savings_plan_savings_plan_rate\n            description: '{{ doc(\"savings_plan_savings_plan_rate\") }}'\n          - name: savings_plan_start_time\n            description: '{{ doc(\"savings_plan_start_time\") }}'\n          - name: bill_payer_account_name\n            description: '{{ doc(\"bill_payer_account_name\") }}'\n          - name: product\n            description: '{{ doc(\"product\") }}'\n          - name: discount\n            description: '{{ doc(\"discount\") }}'\n          - name: resource_tags\n            description: '{{ doc(\"resource_tags\") }}'\n          - name: cost_category\n            description: '{{ doc(\"cost_category\") }}'\n          - name: line_item_usage_account_name\n            description: '{{ doc(\"line_item_usage_account_name\") }}'\n          - name: reservation_reservation_a_r_n\n            description: '{{ doc(\"reservation_reservation_a_r_n\") }}'\n          - name: reservation_recurring_fee_for_usage\n            description: '{{ doc(\"reservation_recurring_fee_for_usage\") }}'\n          - name: savings_plan_recurring_commitment_for_billing_period\n            description: '{{ doc(\"savings_plan_recurring_commitment_for_billing_period\") }}'\n          - name: savings_plan_used_commitment\n            description: '{{ doc(\"savings_plan_used_commitment\") }}'\n          - name: reservation_amortized_upfront_cost_for_usage\n            description: '{{ doc(\"reservation_amortized_upfront_cost_for_usage\") }}'\n          - name: reservation_effective_cost\n            description: '{{ doc(\"reservation_effective_cost\") }}'\n          - name: savings_plan_amortized_upfront_commitment_for_billing_period\n            description: '{{ doc(\"savings_plan_amortized_upfront_commitment_for_billing_period\") }}'\n          - name: savings_plan_total_commitment_to_date\n            description: '{{ doc(\"savings_plan_total_commitment_to_date\") }}'\n```\n\n\u003c/details\u003e\n\n3. Set the `has_defined_sources` variable (scoped to the `aws_cloud_cost` package) to `True`, like such:\n\n```yml\n# dbt_project.yml\nvars:\n  aws_cloud_cost:\n    has_defined_sources: true\n```\n\n### (Optional) Additional configurations\n\n##### Limit Date Range\nAlthough the package transforms the latest version of each report, your AWS Cost \u0026 Usage Report data may still be quite large. In order to avoid unnecessary compute and storage costs, we have added a minimum (INCLUSIVE) **start date** variable that can be used to limit the data's date range.\n\nBy default, the package will look at data as far back as you have it. To adjust this, configure the following variable in your `dbt_project.yml` to be the first date you want *included*:\n```yml\n# dbt_project.yml\n\nvars:\n    aws_cloud_cost_start_date: 'YYYY-MM-DD' # default value: '1970-01-01' \n```\n\n\u003e Note for BigQuery users: This filter applies a full table scan and may therefore not actually mitigate your compute costs. We have applied [partitions](https://docs.getdbt.com/reference/resource-configs/bigquery-configs#partition-clause) to each end model, but you may want to consider applying pre-package transformations (partitions, filters, etc.) to streamline the amount of data processed by the package.\n\u003e\n\u003e Please create an [issue](https://github.com/fivetran/dbt_aws_cloud_cost/issues) if you'd like to see support for incremental materializations.\n\n##### Passing Through Additional Fields\nThis package includes all source columns defined in the macros folder. You can add more columns to the `aws_cloud_cost__daily_overview` model using the `aws_cloud_cost_report_pass_through_columns` variable. This variable allows for custom or otherwise not included fields to be included, aliased (`alias`), and casted (`transform_sql`) if desired (but not required). Datatype casting is configured via a sql snippet within the `transform_sql` key. You may add the desired sql while omitting the `as field_name` at the end and your custom pass-though fields will be casted accordingly.\n\nUse the below format for declaring extra fields to include:\n\n```yml\n# dbt_project.yml\n\nvars:\n  aws_cloud_cost_report_pass_through_columns: # will be included in aws_cloud_cost__daily_overview model\n    - name: \"that_field\"\n      alias: \"renamed_to_this_field\"\n      transform_sql: \"cast(renamed_to_this_field as string)\"\n    - name: \"this_field\"\n    - name: \"old_name\"\n      alias: \"new_name\"\n```\n\nThese fields will be included in the `aws_cloud_cost__daily_overview` model and part of its composite hashed `unique_key`.\n\n\u003e Please create an [issue](https://github.com/fivetran/dbt_aws_cloud_cost/issues) if you'd like to see passthrough column support for the `aws_cloud_cost__daily_product_report` or `aws_cloud_cost__daily_instance_report` models.\n\n##### Changing the Build Schema\nBy default this package will build the AWS Cloud Cost staging models within a schema titled (\u003ctarget_schema\u003e + `_stg_aws_cloud_cost`) and the AWS Cloud Cost final models within a schema titled (\u003ctarget_schema\u003e + `_aws_cloud_cost`) in your target database. If this is not where you would like your modeled AWS Cloud Cost data to be written to, add the following configuration to your `dbt_project.yml` file:\n\n```yml\n# dbt_project.yml\n\nmodels:\n  aws_cloud_cost:\n    +schema: my_new_schema_name # leave blank for just the target_schema\n    staging:\n        +schema: my_new_schema_name # leave blank for just the target_schema\n```\n\u003c/details\u003e\n\n### (Optional) Orchestrate your models with Fivetran Transformations for dbt Core™\n\u003cdetails\u003e\u003csummary\u003eExpand for details\u003c/summary\u003e\n\u003cbr\u003e\n\nFivetran offers the ability for you to orchestrate your dbt project through [Fivetran Transformations for dbt Core™](https://fivetran.com/docs/transformations/dbt#transformationsfordbtcore). Learn how to set up your project for orchestration through Fivetran in our [Transformations for dbt Core setup guides](https://fivetran.com/docs/transformations/dbt/setup-guide#transformationsfordbtcoresetupguide).\n\u003c/details\u003e\n\n### Does this package have dependencies?\nThis dbt package is dependent on the following dbt packages. These dependencies are installed by default within this package. For more information on the following packages, refer to the [dbt hub](https://hub.getdbt.com/) site.\n\u003e IMPORTANT: If you have any of these dependent packages in your own `packages.yml` file, we highly recommend that you remove them from your root `packages.yml` to avoid package version conflicts.\n\n```yml\npackages:\n    - package: fivetran/fivetran_utils\n      version: [\"\u003e=0.4.0\", \"\u003c0.5.0\"]\n\n    - package: dbt-labs/dbt_utils\n      version: [\"\u003e=1.0.0\", \"\u003c2.0.0\"]\n```\n\n\u003c!--section=\"aws-cloud-cost_maintenance\"--\u003e\n## How is this package maintained and can I contribute?\n\n### Package Maintenance\nThe Fivetran team maintaining this package only maintains the [latest version](https://hub.getdbt.com/fivetran/aws_cloud_cost/latest/) of the package. We highly recommend you stay consistent with the latest version of the package and refer to the [CHANGELOG](https://github.com/fivetran/dbt_aws_cloud_cost/blob/main/CHANGELOG.md) and release notes for more information on changes across versions.\n\n### Contributions\nA small team of analytics engineers at Fivetran develops these dbt packages. However, the packages are made better by community contributions.\n\nWe highly encourage and welcome contributions to this package. Learn how to contribute to a package in dbt's [Contributing to an external dbt package article](https://discourse.getdbt.com/t/contributing-to-a-dbt-package/657).\n\n#\u003c!--section-end--\u003e\n\n## Are there any resources available?\n- If you have questions or want to reach out for help, see the [GitHub Issue](https://github.com/fivetran/dbt_aws_cloud_cost/issues/new/choose) section to find the right avenue of support for you.\n- If you would like to provide feedback to the dbt package team at Fivetran or would like to request a new dbt package, fill out our [Feedback Form](https://www.surveymonkey.com/r/DQ7K7WW).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffivetran%2Fdbt_aws_cloud_cost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffivetran%2Fdbt_aws_cloud_cost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffivetran%2Fdbt_aws_cloud_cost/lists"}