Skip to content

Commit 10e6515

Browse files
committed
fix: Flatten and tolist policy statements
Signed-off-by: Devon Crouse <[email protected]>
1 parent 0c0607b commit 10e6515

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/iam/group-workers.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ locals {
3030
])
3131

3232
# Block volume encryption using OCI Key Management System (KMS)
33-
worker_kms_volume_statements = coalesce(var.worker_volume_kms_key_id, "none") != "none" ? tolist([
33+
worker_kms_volume_statements = coalesce(var.worker_volume_kms_key_id, "none") != "none" ? flatten(tolist([
3434
for statement in local.worker_kms_volume_templates :
3535
formatlist(statement, local.worker_compartments, var.worker_volume_kms_key_id)
36-
]) : []
36+
])) : []
3737

38-
worker_policy_statements = var.create_iam_worker_policy ? concat(
38+
worker_policy_statements = var.create_iam_worker_policy ? tolist(concat(
3939
local.cluster_join_statements,
4040
local.worker_kms_volume_statements,
41-
) : []
41+
)) : []
4242
}
4343

4444
resource "oci_identity_dynamic_group" "workers" {

0 commit comments

Comments
 (0)