Skip to content

Commit 6aca35a

Browse files
committed
fix(s3): name -> region
1 parent d5f4c25 commit 6aca35a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ data "aws_iam_policy_document" "elb_log_delivery" {
620620

621621
# Policy for AWS Regions created before August 2022 (e.g. US East (N. Virginia), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo), Europe (Ireland))
622622
dynamic "statement" {
623-
for_each = { for k, v in local.elb_service_accounts : k => v if k == data.aws_region.current.name }
623+
for_each = { for k, v in local.elb_service_accounts : k => v if k == data.aws_region.current.region }
624624

625625
content {
626626
sid = format("ELBRegion%s", title(statement.key))
@@ -854,7 +854,7 @@ data "aws_iam_policy_document" "waf_log_delivery" {
854854

855855
condition {
856856
test = "ArnLike"
857-
values = ["arn:aws:logs:${data.aws_region.current.name}:${data.aws_caller_identity.current.id}:*"]
857+
values = ["arn:aws:logs:${data.aws_region.current.region}:${data.aws_caller_identity.current.id}:*"]
858858
variable = "aws:SourceArn"
859859
}
860860
}
@@ -885,7 +885,7 @@ data "aws_iam_policy_document" "waf_log_delivery" {
885885

886886
condition {
887887
test = "ArnLike"
888-
values = ["arn:aws:logs:${data.aws_region.current.name}:${data.aws_caller_identity.current.id}:*"]
888+
values = ["arn:aws:logs:${data.aws_region.current.region}:${data.aws_caller_identity.current.id}:*"]
889889
variable = "aws:SourceArn"
890890
}
891891
}

0 commit comments

Comments
 (0)