[PR #2396/3c7e9eca backport][stable-9] Deprecate managing instances through autoscaling_group #2399
+154
−60
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a backport of PR #2396 as merged into main (3c7e9ec).
SUMMARY
Managing instances directly through autoscaling_group has lead to a significant sprawl in the code which is difficult to test. With Amazon now also supporting "Instance Refresh" through its own API we can handle rolling replacements using less home-brew code (available through autoscaling_instance_refresh). The autoscaling_instance also has support for a more complete set of attach/detach/standby/terminate functionality (including instance protection management).
Deprecates the following parameters:
This functionality provided through these parameters is now available through autoscaling_instance and autoscaling_instance_refresh
Also adds
group_name
as an alias forname
on both autoscaling_instance_refresh and autoscaling_group for consistency with autoscaling_instance wherename
would be ambiguous.ISSUE TYPE
COMPONENT NAME
ADDITIONAL INFORMATION