Skip to content

Commit

Permalink
Update modules/github-oidc-role/main.tf
Browse files Browse the repository at this point in the history
Co-authored-by: Nuru <Nuru@users.noreply.github.com>
  • Loading branch information
Benbentwo and Nuru authored Dec 20, 2023
1 parent c136ae4 commit b5daf28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/github-oidc-role/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ locals {
}
custom_policy_map = merge(local.policy_document_map, local.overridable_additional_custom_policy_map)

active_policy_map = { for k, v in local.custom_policy_map : k => v if v != null }
# Ignore empty policies of the form `"{}"` as well as null policies
active_policy_map = { for k, v in local.custom_policy_map : k => v if try(length(v), 0) > 3 }
}

module "iam_policy" {
Expand Down

0 comments on commit b5daf28

Please sign in to comment.