Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi-bitonti committed Oct 12, 2023
1 parent a5ab180 commit d35c950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/secret-manager/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ resource "google_secret_manager_secret" "default" {
content {
auto {
dynamic "customer_managed_encryption" {
for_each = lookup(var.encryption_key, "global", null) == null ? [] : [""]
for_each = try(lookup(var.encryption_key, "global", null) == null ? [] : [""], [])
content {
kms_key_name = var.encryption_key["global"]
}
Expand Down

0 comments on commit d35c950

Please sign in to comment.