Skip to content

Commit

Permalink
See if this fixes dynamic statement block
Browse files Browse the repository at this point in the history
```
│   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
  • Loading branch information
emilford committed Aug 6, 2024
1 parent 41f77e7 commit 172e255
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions secret/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ data "aws_iam_policy_document" "secret" {
]
principals {
type = "AWS"
identifiers = [statement.arn]
identifiers = [statement.value.arn]
}
}
}
Expand Down Expand Up @@ -136,7 +136,7 @@ data "aws_iam_policy_document" "key" {
resources = ["*"]
principals {
type = "AWS"
identifiers = [statement.arn]
identifiers = [statement.value.arn]
}
}
}
Expand Down

0 comments on commit 172e255

Please sign in to comment.