Skip to content

Commit

Permalink
fix(aws/ecs): ensure we don't pass a NULL object to the policy builder (
Browse files Browse the repository at this point in the history
  • Loading branch information
swiknaba authored Aug 27, 2024
1 parent 351b7f9 commit 0c6ebe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws/ecs/execution-role.tf
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ resource "aws_iam_role_policy" "ecs-task-execution-policy" {
}

locals {
kms_and_secret_arns = flatten([
kms_and_secret_arns = compact(flatten([
var.secrets_arns,
var.kms_key_arns,
])
]))
}

# Making secret/kms ARNs optional was added later.
Expand Down

0 comments on commit 0c6ebe0

Please sign in to comment.