Skip to content

Commit

Permalink
Use launch_template_id instead of launch_template_name
Browse files Browse the repository at this point in the history
  • Loading branch information
dhoppe committed Sep 16, 2022
1 parent c2ef044 commit c5cfa97
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ resource "aws_autoscaling_group" "this" {
for_each = var.use_mixed_instances_policy ? [] : [1]

content {
name = local.launch_template
id = aws_launch_template.this[0].id
version = local.launch_template_version
}
}
Expand Down Expand Up @@ -434,8 +434,8 @@ resource "aws_autoscaling_group" "this" {

launch_template {
launch_template_specification {
launch_template_name = local.launch_template
version = local.launch_template_version
launch_template_id = aws_launch_template.this[0].id
version = local.launch_template_version
}

dynamic "override" {
Expand Down Expand Up @@ -504,7 +504,7 @@ resource "aws_autoscaling_group" "idc" {
for_each = var.use_mixed_instances_policy ? [] : [1]

content {
name = local.launch_template
id = aws_launch_template.this[0].id
version = local.launch_template_version
}
}
Expand Down Expand Up @@ -585,8 +585,8 @@ resource "aws_autoscaling_group" "idc" {

launch_template {
launch_template_specification {
launch_template_name = local.launch_template
version = local.launch_template_version
launch_template_id = aws_launch_template.this[0].id
version = local.launch_template_version
}

dynamic "override" {
Expand Down

0 comments on commit c5cfa97

Please sign in to comment.