Skip to content

Commit 3e370d0

Browse files
authored
fix: Rename launch template parameters (#25)
Rename launch template parameters
1 parent a909cc6 commit 3e370d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ resource "aws_batch_compute_environment" "this" {
4545
dynamic "launch_template" {
4646
for_each = !contains(["FARGATE", "FARGATE_SPOT"], compute_resources.value.type) && try(compute_resources.value.launch_template, null) != null ? [compute_resources.value.launch_template] : []
4747
content {
48-
launch_template_id = lookup(launch_template.value, "id", null)
49-
launch_template_name = lookup(launch_template.value, "name", null)
48+
launch_template_id = lookup(launch_template.value, "id", lookup(launch_template.value, "launch_template_id", null))
49+
launch_template_name = lookup(launch_template.value, "name", lookup(launch_template.value, "launch_template_name", null))
5050
version = lookup(launch_template.value, "version", null)
5151
}
5252
}

0 commit comments

Comments
 (0)