Resource: aws_cur_report_definition

Manages Cost and Usage Report Definitions.

Example Usage

resource "aws_cur_report_definition" "example_cur_report_definition" {
  report_name                = "example-cur-report-definition"
  time_unit                  = "HOURLY"
  format                     = "textORcsv"
  compression                = "GZIP"
  additional_schema_elements = ["RESOURCES", "SPLIT_COST_ALLOCATION_DATA"]
  s3_bucket                  = "example-bucket-name"
  s3_region                  = "us-east-1"
  additional_artifacts       = ["REDSHIFT", "QUICKSIGHT"]
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import Report Definitions using the report_name. For example:

import {
  to = aws_cur_report_definition.example_cur_report_definition
  id = "example-cur-report-definition"
}

Using terraform import, import Report Definitions using the report_name. For example:

% terraform import aws_cur_report_definition.example_cur_report_definition example-cur-report-definition