terraform-aws-modules / terraform-aws-autoscaling

Terraform module to create AWS Auto Scaling resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/autoscaling/aws
Apache License 2.0
291 stars 557 forks source link

aws_launch_template issue with multiple security groups #125

Closed Anthony-Quere closed 3 years ago

Anthony-Quere commented 3 years ago

Hello ! I have a problem when adding a second security group on my instance. It worked with the first security group but not when adding the second one.

Here is my variable : ["sg-11111", "sg-22222"] Terraform version : 0.12.29 terraform-provider-aws : v3.22.0_x5

resource aws_launch_template "instance_template" {
  name_prefix = var.instance_name

  image_id      = var.zpa_ami_id
  instance_type = var.instance_type

  vpc_security_group_ids = var.sg_ids

  key_name = var.aws_ssh_key_name
  user_data = base64encode(data.template_file.userdata_script.rendered)
}
bryantbiggs commented 3 years ago

hi @Anthony-Quere - launch template support was only added today to v4.0. please try upgrading and let us know if your issue still persists

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.