We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dde73c8 commit 23b228eCopy full SHA for 23b228e
main.tf
@@ -288,7 +288,10 @@ data "aws_iam_policy_document" "this" {
288
not_actions = try(statement.value.not_actions, null)
289
effect = try(statement.value.effect, null)
290
resources = try(statement.value.resources,
291
- [for path in try(statement.value.resource_paths, ["*"]) : "${aws_opensearch_domain.this[0].arn}/${path}"]
+ [
292
+ for path in try(statement.value.resource_paths, ["*"]) :
293
+ "${aws_opensearch_domain.this[0].arn}${path == "/*" ? "/*" : path}"
294
+ ]
295
)
296
not_resources = try(statement.value.not_resources, null)
297
0 commit comments