Skip to content
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

Closed

Conversation

michaelaw320
Copy link

@michaelaw320 michaelaw320 commented Dec 11, 2019

Description

Convert Autoscaling Group to use Launch Template instead of Launch 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 use Launch Template with normal Autoscaling Group.

This will introduce breaking changes on input variables:

  • create_lc is changed to create_lt
  • launch_configuration changed to launch_template
  • parameters which has lc is changed to lt (naming sense)
  • root_block_device, ebs_block_device, ephemeral_block_device changed to block_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 and Launch Template in the same module, it will make it complicated, and I see Launch Template supersedes Launch Configuration features, if there's anyone who is willing to support both, please close this PR and go with that PR instead 🙇

@acsrujan
Copy link
Contributor

Should we support launch template versions and setting a version as default in this PR?

@jwhitcraft
Copy link

ping @antonbabenko can we get a review on this?

@bryantbiggs
Copy link
Member

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):

  1. Updating the module to provide the option to use either launch config OR launch template. This would be quite an undertaking and should in theory support using the launch config as the default
  2. Create a second module for autoscaling group that uses the launch template

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?

@yogeek
Copy link

yogeek commented Oct 21, 2020

@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.
Is there any current work on this or is it currently paused ?
Thanks

@dawidmalina
Copy link

Having this will allow us to use gp3 - looks like launch configuration is not (yet) supported: hashicorp/terraform-provider-aws#16514

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

launch templates support Desired capacity should not be mandatory
7 participants