Skip to content

Commit

Permalink
fix(tf): cur bucket policy add us-east-1 (#991)
Browse files Browse the repository at this point in the history
  • Loading branch information
vramahandry authored Oct 30, 2024
1 parent 6aba11c commit aea0397
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions terraform-modules/cur-setup-destination/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions terraform-modules/cur-setup-source/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit aea0397

Please sign in to comment.