From aea03971055ac73052b0c103164960b59963cb20 Mon Sep 17 00:00:00 2001 From: vramahandry <56304555+vramahandry@users.noreply.github.com> Date: Wed, 30 Oct 2024 11:22:48 +0100 Subject: [PATCH] fix(tf): cur bucket policy add us-east-1 (#991) --- terraform-modules/cur-setup-destination/main.tf | 4 ++-- terraform-modules/cur-setup-source/main.tf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/terraform-modules/cur-setup-destination/main.tf b/terraform-modules/cur-setup-destination/main.tf index 57d2e16d..41cfe0be 100644 --- a/terraform-modules/cur-setup-destination/main.tf +++ b/terraform-modules/cur-setup-destination/main.tf @@ -158,7 +158,7 @@ data "aws_iam_policy_document" "bucket_policy" { ] condition { test = "StringLike" - values = ["arn:${data.aws_partition.this.partition}:cur:${data.aws_region.this.name}:${data.aws_caller_identity.this.account_id}:definition/*"] + values = ["arn:${data.aws_partition.this.partition}:cur:us-east-1:${data.aws_caller_identity.this.account_id}:definition/*"] variable = "aws:SourceArn" } condition { @@ -185,7 +185,7 @@ data "aws_iam_policy_document" "bucket_policy" { ] condition { test = "StringLike" - values = ["arn:${data.aws_partition.this.partition}:cur:${data.aws_region.this.name}:${data.aws_caller_identity.this.account_id}:definition/*"] + values = ["arn:${data.aws_partition.this.partition}:cur:us-east-1:${data.aws_caller_identity.this.account_id}:definition/*"] variable = "aws:SourceArn" } condition { diff --git a/terraform-modules/cur-setup-source/main.tf b/terraform-modules/cur-setup-source/main.tf index 0a6880d5..04943f52 100644 --- a/terraform-modules/cur-setup-source/main.tf +++ b/terraform-modules/cur-setup-source/main.tf @@ -126,7 +126,7 @@ data "aws_iam_policy_document" "bucket_policy" { ] condition { test = "StringLike" - values = ["arn:${data.aws_partition.this.partition}:cur:*:${data.aws_caller_identity.this.account_id}:definition/*"] + values = ["arn:${data.aws_partition.this.partition}:cur:us-east-1:${data.aws_caller_identity.this.account_id}:definition/*"] variable = "aws:SourceArn" } condition { @@ -150,7 +150,7 @@ data "aws_iam_policy_document" "bucket_policy" { ] condition { test = "StringLike" - values = ["arn:${data.aws_partition.this.partition}:cur:*:${data.aws_caller_identity.this.account_id}:definition/*"] + values = ["arn:${data.aws_partition.this.partition}:cur:us-east-1:${data.aws_caller_identity.this.account_id}:definition/*"] variable = "aws:SourceArn" } condition {