Skip to content

Commit

Permalink
PR #825 introduced new iam conditions, one uses wildcard with Like op…
Browse files Browse the repository at this point in the history
…erator (#879)
  • Loading branch information
eriweb authored Jul 8, 2024
1 parent 5709a4f commit 8e72caa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion terraform-modules/cur-setup-destination/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ data "aws_iam_policy_document" "bucket_policy" {
"${aws_s3_bucket.this.arn}/*",
]
condition {
test = "StringEquals"
test = "StringLike"
values = ["arn:${data.aws_partition.this.partition}:cur:${data.aws_region.this.name}:${data.aws_caller_identity.this.account_id}:definition/*"]
variable = "aws:SourceArn"
}
Expand Down
2 changes: 1 addition & 1 deletion terraform-modules/cur-setup-source/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ data "aws_iam_policy_document" "bucket_policy" {
"${aws_s3_bucket.this.arn}/*",
]
condition {
test = "StringEquals"
test = "StringLike"
values = ["arn:${data.aws_partition.this.partition}:cur:${data.aws_region.this.name}:${data.aws_caller_identity.this.account_id}:definition/*"]
variable = "aws:SourceArn"
}
Expand Down

0 comments on commit 8e72caa

Please sign in to comment.