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 84bd206 commit 101c89fCopy full SHA for 101c89f
modules/role/main.tf
@@ -8,7 +8,7 @@ resource "opensearch_role" "this" {
8
for_each = var.index_permissions
9
10
content {
11
- index_patterns = index_permissions.key
+ index_patterns = toset([index_permissions.key])
12
allowed_actions = index_permissions.value.allowed_actions
13
document_level_security = index_permissions.value.document_level_security
14
field_level_security = index_permissions.value.field_level_security
@@ -19,7 +19,7 @@ resource "opensearch_role" "this" {
19
dynamic "tenant_permissions" {
20
for_each = var.tenant_permissions
21
22
- tenant_patterns = tenant_permissions.key
+ tenant_patterns = toset([tenant_permissions.key])
23
allowed_actions = tenant_permissions.value
24
}
25
0 commit comments