0.12.0
provider "aws" {
profile = "default"
region = "us-east-1"
version = "2.12.0"
}
resource "aws_cur_report_definition" "cost_report" {
report_name = "mycostreport"
time_unit = "HOURLY"
format = "Parquet"
compression = "Parquet"
additional_schema_elements = ["RESOURCES"]
s3_bucket = "mybucketname"
s3_prefix = "hourly-costs"
s3_region = "us-east-1"
additional_artifacts = ["ATHENA"]
}
Resource should have been created. This AWS API supports these values according to their documentation. Additionally, this AWS resource can be created using the Python boto3 package.
terraform plan throws the following errors:
Error: expected format to be one of [textORcsv], got Parquet
...
Error: expected compression to be one of [GZIP ZIP], got Parquet
...
Error: expected additional_artifacts.0 to be one of [QUICKSIGHT REDSHIFT], got ATHENA
...
terraform applyCan we have also add support for ATHENA is this issue or would be better to have a new on?.
Support for this functionality has been merged and will release with version 3.5.0 of the Terraform AWS Provider, likely tomorrow. Thanks to @robbruce for the implementation. 👍
This has been released in version 3.5.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.
For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!
Most helpful comment
@zioalex see https://github.com/terraform-providers/terraform-provider-aws/pull/12428