Skip to content

Commit 172e255

Browse files
committed
See if this fixes dynamic statement block
``` │ on .terraform/modules/production.auth_token/secret/main.tf line 43, in data "aws_iam_policy_document" "secret": │ 43: identifiers = [statement.arn] │ │ This object does not have an attribute named "arn". ``` https://developer.hashicorp.com/terraform/language/expressions/dynamic-blocks
1 parent 41f77e7 commit 172e255

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

secret/main.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ data "aws_iam_policy_document" "secret" {
4040
]
4141
principals {
4242
type = "AWS"
43-
identifiers = [statement.arn]
43+
identifiers = [statement.value.arn]
4444
}
4545
}
4646
}
@@ -136,7 +136,7 @@ data "aws_iam_policy_document" "key" {
136136
resources = ["*"]
137137
principals {
138138
type = "AWS"
139-
identifiers = [statement.arn]
139+
identifiers = [statement.value.arn]
140140
}
141141
}
142142
}

0 commit comments

Comments
 (0)