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 1, 2022
1 parent c2ef044 commit 8e4561a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 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 @@ -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 8e4561a

Please sign in to comment.