Skip to content

Commit

Permalink
fix(composer_env_v2): simplify encryption_config condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarapuce committed Jan 22, 2024
1 parent 21646ce commit 3c1aca7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions modules/create_environment_v2/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,7 @@ resource "google_composer_environment" "composer_env" {
}

dynamic "encryption_config" {
for_each = var.kms_key_name != null ? [
{
kms_key_name = var.kms_key_name
}] : []
for_each = var.kms_key_name != null ? ["encryption_config "] : []
content {
kms_key_name = encryption_config.value["kms_key_name"]
}
Expand Down

0 comments on commit 3c1aca7

Please sign in to comment.