-
Notifications
You must be signed in to change notification settings - Fork 342
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate managing instances through autoscaling_group (#2396)
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
- Loading branch information
Showing
6 changed files
with
154 additions
and
60 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
changelogs/fragments/2396-autoscaling_groups-deprecations.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
minor_changes: | ||
- autoscaling_group - adds ``group_name`` as an alias for the ``name`` parameter | ||
(https://github.com/ansible-collections/amazon.aws/pull/2396). | ||
- autoscaling_group_info - adds ``group_name`` as an alias for the ``name`` parameter | ||
(https://github.com/ansible-collections/amazon.aws/pull/2396). | ||
- autoscaling_instance_refresh - adds ``group_name`` as an alias for the ``name`` parameter | ||
(https://github.com/ansible-collections/amazon.aws/pull/2396). | ||
- autoscaling_instance_refresh_info - adds ``group_name`` as an alias for the ``name`` parameter | ||
(https://github.com/ansible-collections/amazon.aws/pull/2396). | ||
deprecated_features: | ||
- autoscaling_group - the functionality provided through the ``replace_all_instances`` parameter has been deprecated and will be removed in release 14.0.0 of this collection. | ||
Rolling replacement of instances in an autoscaling group can be performed using the ``amazon.aws.autoscaling_instance_refresh`` module | ||
(https://github.com/ansible-collections/amazon.aws/pull/2396). | ||
- autoscaling_group - the ``replace_batch_size``, ``lc_check`` and ``lt_check`` parameters have been deprecated and will be removed in release 14.0.0 of this collection. | ||
Rolling replacement of instances in an autoscaling group can be performed using the ``amazon.aws.autoscaling_instance_refresh`` module | ||
(https://github.com/ansible-collections/amazon.aws/pull/2396). | ||
- autoscaling_group - the functionality provided through the ``detach_instances`` parameter has been deprecated and will be removed in release 14.0.0 of this collection. | ||
Management of instances attached an autoscaling group can be performed using the ``amazon.aws.autoscaling_instance`` module | ||
(https://github.com/ansible-collections/amazon.aws/pull/2396). | ||
- autoscaling_group - the functionality provided through the ``replace_instances`` parameter has been deprecated and will be removed in release 14.0.0 of this collection. | ||
Management of instances attached an autoscaling group can be performed using the ``amazon.aws.autoscaling_instance`` module | ||
(https://github.com/ansible-collections/amazon.aws/pull/2396). | ||
- autoscaling_group - the ``decrement_desired_capacity`` parameter has been deprecated and will be removed in release 14.0.0 of this collection. | ||
Management of instances attached an autoscaling group can be performed using the ``amazon.aws.autoscaling_instance`` module | ||
(https://github.com/ansible-collections/amazon.aws/pull/2396). | ||
trivial: | ||
- autoscaling_instance - tweak the state description to better explain replacing individual instances | ||
(https://github.com/ansible-collections/amazon.aws/pull/2396). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters