feat: Add support for specifying elastic inference accelerator (#1176)

This commit is contained in:
Rucha Kulkarni
2021-04-20 02:16:17 +05:30
committed by GitHub
parent 2e1651df86
commit 26d40d2f1d
3 changed files with 20 additions and 0 deletions

View File

@@ -290,6 +290,18 @@ resource "aws_launch_template" "workers_launch_template" {
"instance_type",
local.workers_group_defaults["instance_type"],
)
dynamic "elastic_inference_accelerator" {
for_each = lookup(
var.worker_groups_launch_template[count.index],
"elastic_inference_accelerator",
local.workers_group_defaults["elastic_inference_accelerator"]
) != null ? [lookup(var.worker_groups_launch_template[count.index], "elastic_inference_accelerator", local.workers_group_defaults["elastic_inference_accelerator"])] : []
content {
type = elastic_inference_accelerator.value
}
}
key_name = lookup(
var.worker_groups_launch_template[count.index],
"key_name",