-
-
Notifications
You must be signed in to change notification settings - Fork 556
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
[Breaking Changes] Use Launch Template #86
Conversation
Should we support launch template versions and setting a version as default in this PR? |
ping @antonbabenko can we get a review on this? |
Add tag_specifications
thanks @michaelaw320 for the PR! I don't know if we can proceed with just replacing the launch config with the launch template as this module is widely used in the launch config version. I think we have two possible routes (in my opinion):
Personally, I am more in favor of item 1 but it will take some work and a bit of testing to get it right. Thoughts? Feedback? |
@bryantbiggs Seems to me that option 1 is more flexible indeed and would allow a smoother transition for legacy code to go towards launch_template. |
Having this will allow us to use gp3 - looks like launch configuration is not (yet) supported: hashicorp/terraform-provider-aws#16514 |
I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
Convert Autoscaling Group to use
Launch Template
instead ofLaunch Configuration
Fixes #54 #81
and possibly fixes #44
This is backport from https://github.com/HENNGE/terraform-aws-autoscaling-mixed-instances . The said repository must use
Launch Template
to support mixed instance policy, so I decided to why not I backport the changes I made as I see more than 1 issue here requesting to useLaunch Template
with normal Autoscaling Group.This will introduce breaking changes on input variables:
create_lc
is changed tocreate_lt
launch_configuration
changed tolaunch_template
lc
is changed tolt
(naming sense)root_block_device
,ebs_block_device
,ephemeral_block_device
changed toblock_device_mappings
This PR tries to keep the behaviour the same (except for few inevitable changes above) and keep the changes minimal. Also this PR has not added features that becomes possible when using
Launch Template
(advanced network configurations, spot market configurations, etc.)Currently I have no intention of supporting both
Launch Configuration
andLaunch Template
in the same module, it will make it complicated, and I seeLaunch Template
supersedesLaunch Configuration
features, if there's anyone who is willing to support both, please close this PR and go with that PR instead 🙇