-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
r/aws_autoscaling_group: Add instance_refresh preferences #33310
r/aws_autoscaling_group: Add instance_refresh preferences #33310
Conversation
…ted_instances` attributes to instance_refresh preferences
Community NoteVoting for Prioritization
For Submitters
|
2f05f36
to
dfceb8c
Compare
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.
LGTM 🚀.
% make testacc TESTARGS='-run=TestAccAutoScalingGroup_InstanceRefresh_' PKG=autoscaling ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/autoscaling/... -v -count 1 -parallel 2 -run=TestAccAutoScalingGroup_InstanceRefresh_ -timeout 180m
=== RUN TestAccAutoScalingGroup_InstanceRefresh_basic
=== PAUSE TestAccAutoScalingGroup_InstanceRefresh_basic
=== RUN TestAccAutoScalingGroup_InstanceRefresh_start
=== PAUSE TestAccAutoScalingGroup_InstanceRefresh_start
=== RUN TestAccAutoScalingGroup_InstanceRefresh_triggers
=== PAUSE TestAccAutoScalingGroup_InstanceRefresh_triggers
=== RUN TestAccAutoScalingGroup_InstanceRefresh_autoRollback
=== PAUSE TestAccAutoScalingGroup_InstanceRefresh_autoRollback
=== CONT TestAccAutoScalingGroup_InstanceRefresh_basic
=== CONT TestAccAutoScalingGroup_InstanceRefresh_triggers
--- PASS: TestAccAutoScalingGroup_InstanceRefresh_triggers (197.22s)
=== CONT TestAccAutoScalingGroup_InstanceRefresh_start
--- PASS: TestAccAutoScalingGroup_InstanceRefresh_basic (417.91s)
=== CONT TestAccAutoScalingGroup_InstanceRefresh_autoRollback
--- PASS: TestAccAutoScalingGroup_InstanceRefresh_autoRollback (193.32s)
--- PASS: TestAccAutoScalingGroup_InstanceRefresh_start (468.28s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/autoscaling 671.692s
@evan-cleary Thanks for the contribution 🎉 👏. |
@ewbankkit Wasn't expecting such a quick merge! Cheers! 🎉 |
This functionality has been released in v5.16.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Description
Adds the
scale_in_protected_instances
andstandby_instances
attributes to theaws_autoscaling_group
instance refresh properties. These attributes allow for further control of the instance refresh bhevaiors in conditions where an instance may not normally refresh, or may result in the instance refresh failing.One example use case is utilizing ecs capacity provider
managed_termination_protection
withscale_in_protected_instances
set toRefresh
to allow for ECS compute to be fully updated with a new AMI, current default behavior results in these protected instances not refreshing and the instance refresh failing.Relations
Closes #29827
References
Refresh Preferences API Docs
AWS Release Blog Post
Output from Acceptance Testing