Skip to content

Commit 0cd0aca

Browse files
committed
fix: update boot_volume_encryption_kms_config of additional_worker_pool
1 parent ab72160 commit 0cd0aca

File tree

1 file changed

+17
-13
lines changed
  • solutions/fully-configurable

1 file changed

+17
-13
lines changed

solutions/fully-configurable/main.tf

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -169,19 +169,23 @@ locals {
169169
}
170170
], [for pool in var.additional_worker_pools : pool if length(pool.vpc_subnets) > 0],
171171
[for pool in var.additional_worker_pools : {
172-
pool_name = pool.pool_name
173-
machine_type = pool.machine_type
174-
workers_per_zone = pool.workers_per_zone
175-
resource_group_id = pool.resource_group_id
176-
operating_system = pool.operating_system
177-
labels = pool.labels
178-
minSize = pool.minSize
179-
secondary_storage = pool.secondary_storage
180-
maxSize = pool.maxSize
181-
enableAutoscaling = pool.enableAutoscaling
182-
boot_volume_encryption_kms_config = pool.boot_volume_encryption_kms_config
183-
additional_security_group_ids = pool.additional_security_group_ids
184-
subnet_prefix = "default"
172+
pool_name = pool.pool_name
173+
machine_type = pool.machine_type
174+
workers_per_zone = pool.workers_per_zone
175+
resource_group_id = module.resource_group.resource_group_id
176+
operating_system = pool.operating_system
177+
labels = pool.labels
178+
minSize = pool.minSize
179+
secondary_storage = pool.secondary_storage
180+
maxSize = pool.maxSize
181+
enableAutoscaling = pool.enableAutoscaling
182+
boot_volume_encryption_kms_config = {
183+
crk = local.boot_volume_kms_key_id
184+
kms_instance_id = local.boot_volume_existing_kms_guid
185+
kms_account_id = local.boot_volume_kms_account_id
186+
}
187+
additional_security_group_ids = pool.additional_security_group_ids
188+
subnet_prefix = "default"
185189
} if length(pool.vpc_subnets) == 0])
186190
}
187191

0 commit comments

Comments
 (0)