Skip to content

Commit

Permalink
LZA-163: Change bucket name references to use tf resource value and a…
Browse files Browse the repository at this point in the history
…dd arn for iam role in replication rule
  • Loading branch information
danielpalmeribm committed Mar 12, 2024
1 parent 18cc3f5 commit ba23f13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/aws/cost_usage_reports/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ resource "aws_cur_report_definition" "cur_report_definitions" {
format = var.format
compression = var.compression
additional_schema_elements = var.additional_schema_elements
s3_bucket = var.bucket_name
s3_bucket = aws_s3_bucket.s3_buckets.id
s3_region = var.bucket_region
additional_artifacts = var.additional_artifacts
s3_prefix = var.s3_prefix
Expand Down Expand Up @@ -181,7 +181,7 @@ resource "aws_s3_bucket_lifecycle_configuration" "cur_bucket_lifecycle_rule" {
resource "aws_s3_bucket_replication_configuration" "cur_bucket_replication_rule" {
depends_on = [aws_s3_bucket_versioning.versioning_rules]
bucket = var.bucket_name
role = aws_iam_role.cur_role
role = aws_iam_role.cur_role.arn
rule {
id = var.replication_rule

Expand Down

0 comments on commit ba23f13

Please sign in to comment.