feat: Allow snapshot_id to be specified for additional_ebs_volumes (#1431)

This commit is contained in:
omjadas
2021-10-07 23:26:53 +11:00
committed by GitHub
parent f37e5af88a
commit 8866569d53
3 changed files with 12 additions and 1 deletions

View File

@@ -344,6 +344,11 @@ resource "aws_launch_configuration" "workers" {
"encrypted",
local.workers_group_defaults["root_encrypted"],
)
snapshot_id = lookup(
block_device_mappings.value,
"snapshot_id",
local.workers_group_defaults["snapshot_id"],
)
delete_on_termination = lookup(ebs_block_device.value, "delete_on_termination", true)
}
}