Skip to content

Commit 0c6ebe0

Browse files
authored
fix(aws/ecs): ensure we don't pass a NULL object to the policy builder (#365)
1 parent 351b7f9 commit 0c6ebe0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws/ecs/execution-role.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ resource "aws_iam_role_policy" "ecs-task-execution-policy" {
149149
}
150150

151151
locals {
152-
kms_and_secret_arns = flatten([
152+
kms_and_secret_arns = compact(flatten([
153153
var.secrets_arns,
154154
var.kms_key_arns,
155-
])
155+
]))
156156
}
157157

158158
# Making secret/kms ARNs optional was added later.

0 commit comments

Comments
 (0)