Skip to content

Commit

Permalink
Fix config format
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharon Nam authored and Sharon Nam committed Apr 17, 2024
1 parent 4c658c6 commit e9f3584
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions internal/service/bcmdataexports/export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,16 @@ resource "aws_s3_bucket_policy" "bucket" {
Id = %[1]q
Statement = [{
Action = [
"s3:PutObject",
"s3:GetBucketPolicy"
"s3:PutObject",
"s3:GetBucketPolicy"
]
Effect = "Allow"
Sid = "EnableAWSDataExportsToWriteToS3AndCheckPolicy"
Sid = "EnableAWSDataExportsToWriteToS3AndCheckPolicy"
Principal = {
Service = [
"billingreports.amazonaws.com",
"bcm-data-exports.amazonaws.com"
]
Service = [
"billingreports.amazonaws.com",
"bcm-data-exports.amazonaws.com"
]
}
Resource = [
aws_s3_bucket.test.arn,
Expand All @@ -163,7 +163,7 @@ resource "aws_s3_bucket_policy" "bucket" {
}
resource "aws_s3_bucket" "test" {
bucket = %[1]q
bucket = %[1]q
force_destroy = true
}
Expand All @@ -174,24 +174,24 @@ resource "aws_bcmdataexports_export" "test" {
query_statement = "SELECT identity_line_item_id, identity_time_interval, line_item_product_code,line_item_unblended_cost FROM COST_AND_USAGE_REPORT"
table_configurations = {
COST_AND_USAGE_REPORT = {
TIME_GRANULARITY = "HOURLY",
INCLUDE_RESOURCES = "FALSE",
TIME_GRANULARITY = "HOURLY",
INCLUDE_RESOURCES = "FALSE",
INCLUDE_MANUAL_DISCOUNT_COMPATIBILITY = "FALSE",
INCLUDE_SPLIT_COST_ALLOCATION_DATA = "FALSE",
INCLUDE_SPLIT_COST_ALLOCATION_DATA = "FALSE",
}
}
}
destination_configurations {
s3_destination {
s3_bucket = aws_s3_bucket.test.bucket
s3_prefix = aws_s3_bucket.test.bucket_prefix
s3_region = aws_s3_bucket.test.region
s3_output_configurations {
overwrite = "OVERWRITE_REPORT"
format = "TEXT_OR_CSV"
compression = "GZIP"
output_type = "CUSTOM"
}
s3_bucket = aws_s3_bucket.test.bucket
s3_prefix = aws_s3_bucket.test.bucket_prefix
s3_region = aws_s3_bucket.test.region
s3_output_configurations {
overwrite = "OVERWRITE_REPORT"
format = "TEXT_OR_CSV"
compression = "GZIP"
output_type = "CUSTOM"
}
}
}
Expand Down

0 comments on commit e9f3584

Please sign in to comment.