-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Description
Would be great to be able to specify network interfaces for a LaunchTemplate.
Use Case
We are building an application where EC2 instances need to be launched/autoscaled in the application logic and the best abstraction for this would be to have a launch template that contains all the necessary details for launching an instance, without having to worry about things like subnets.
Proposed Solution
Include the vpcSubnets fields in LaunchTemplate, similarly to what you can do with an Instance.
Other
I'm not super deep into CDK/CloudFormation/EC2 details, so my proposed change may have the wrong abstractions. Still, being able to specify the networking configuration in a LaunchTemplate would be awesome. Just for reference, I've done the same thing earlierly with Terraform, which does support Network Interfaces in launch tempalates, as described in here.
Thanks for your great work!
This is a 🚀 Feature Request