-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to launch ec2 instances from launch templates #19911
Comments
It would be nice to have this implemented! |
@arnvid Thanks for raising this issue. |
@ewbankkit - I was looking for any reference to this in the issues - but I did not got as far back as 2018 :) I believe that these two are the same. Is there already work in progress on this? If so, is there anything we can do to contribute to speed this up? |
It would be nice to have this feature |
I'm going to close this issue as a duplicate of #4264. |
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. |
Community Note
Description
Currently we have a configuration which requires us to have instances launched with multiple network interfaces in different subnets. In the press release of 23rd of November 2020 there is a clear statement that ASGs and LTs now supportttach multiple network interfaces when launching EC2 instances in an Auto Scaling group. https://aws.amazon.com/about-aws/whats-new/2020/11/amazon-ec2-auto-scaling-supports-attaching-multiple-network-interfaces-at-launch/ - but AWS support clarifed that this is not the case and that they would be updating the press release.
When we create the ASGs we only define the availabilty zones:
availability_zones = [var.azs[count.index]]
And leave the vpc_zone_identifier empty. This makes either the terraform-aws-provider or the API backend to take every subnet that is defined in the launch template from the network_interfaces blocks - where we currently have up to 3 - and propogate them into the vpc_zone_identifier parameter.
When the EC2 instance launch - all 3 eni's get's then placed into 1 of these subnets randomly..
What we would like to do - until such point as AWS allows ASGs to have interfaces in different subnets - is to use the LaunchTemplates and launch them via aws_instance resource.
The AWS GO SDK clearly allows - RunInstancesInput to specify the LaunchTemplate to launch instance from.
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: