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 24, 2024
1 parent 21646ce commit 6ce0dee
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions modules/create_environment_v2/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,9 @@ 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"]
kms_key_name = var.kms_key_name
}
}

Expand Down

0 comments on commit 6ce0dee

Please sign in to comment.