-
Notifications
You must be signed in to change notification settings - Fork 348
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
Deprecate managing instances through autoscaling_group #2396
Deprecate managing instances through autoscaling_group #2396
Conversation
Docs Build 📝Thank you for contribution!✨ This PR has been merged and your docs changes will be incorporated when they are next published. |
c6327be
to
cf80810
Compare
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 48s |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 5m 33s |
plugins/modules/autoscaling_group.py
Outdated
@@ -341,13 +373,14 @@ | |||
""" | |||
|
|||
EXAMPLES = r""" | |||
# Basic configuration with Launch Configuration | |||
# Basic configuration with Launch Template | |||
|
|||
- amazon.aws.autoscaling_group: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be clearer if a name was provided for each task?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thanks.
Build failed. ✔️ ansible-galaxy-importer SUCCESS in 4m 52s |
recheck |
Build failed. ✔️ ansible-galaxy-importer SUCCESS in 4m 43s |
recheck |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 53s |
Build succeeded (gate pipeline). ✔️ ansible-galaxy-importer SUCCESS in 4m 47s |
3c7e9ec
into
ansible-collections:main
Backport to stable-9: 💚 backport PR created✅ Backport PR branch: Backported as #2399 🤖 @patchback |
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: replace_all_instances -> amazon.aws.autoscaling_instance_refresh replace_batch_size (tied to replace_all_instances) lc_check (tied to replace_all_instances) lt_check (tied to replace_all_instances) detach_instances -> amazon.aws.autoscaling_instance replace_instances -> amazon.aws.autoscaling_instance decrement_desired_capacity (tied to detach_instances and replace_instances) This functionality provided through these parameters is now available through autoscaling_instance and autoscaling_instance_refresh Also adds group_name as an alias for name on both autoscaling_instance_refresh and autoscaling_group for consistency with autoscaling_instance where name would be ambiguous. ISSUE TYPE Feature Pull Request COMPONENT NAME autoscaling_group autoscaling_instance autoscaling_instance_refresh ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis Reviewed-by: Mark Chappell (cherry picked from commit 3c7e9ec)
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: replace_all_instances -> amazon.aws.autoscaling_instance_refresh replace_batch_size (tied to replace_all_instances) lc_check (tied to replace_all_instances) lt_check (tied to replace_all_instances) detach_instances -> amazon.aws.autoscaling_instance replace_instances -> amazon.aws.autoscaling_instance decrement_desired_capacity (tied to detach_instances and replace_instances) This functionality provided through these parameters is now available through autoscaling_instance and autoscaling_instance_refresh Also adds group_name as an alias for name on both autoscaling_instance_refresh and autoscaling_group for consistency with autoscaling_instance where name would be ambiguous. ISSUE TYPE Feature Pull Request COMPONENT NAME autoscaling_group autoscaling_instance autoscaling_instance_refresh ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis
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