-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
add instance refresh preferences #115
add instance refresh preferences #115
Conversation
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.
@scott-doyland-burrows How about making preferences
also optional?
@scott-doyland-burrows this looks good and we'd be happy to get it merged. Can you please do the following and push the changes?
Thanks! |
I have run |
/terratest |
Ah @scott-doyland-burrows -- can you update https://github.com/cloudposse/terraform-aws-ec2-autoscale-group/blob/main/versions.tf#L2 to require 1.3+? Otherwise someone could have 1.0 or 1.1 pinned, try to use this module, and then it'll break on |
I have made the change. |
/terratest |
Ah apologies @scott-doyland-burrows -- Can you run the |
I have run: |
/terratest |
what
Adds
skip_matching
andauto_rollback
to the instance refresh preferences.Allows the instance refresh preferences to be optional. If the values are not set in the calling module, then the default values are used as per:
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/autoscaling_group#instance_refresh
why
Previously it was not possible to set the
skip_matching
andauto_rollback
.It was also not possible to omit preferences from the calling module and just use the defaults instead.
With this change we can now set preferences and/or omit preferences that we wish to use the defaults for.
The change should not cause any diffs in current infrastructure.
references
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/autoscaling_group#instance_refresh
examples
It is now possible to use something such as this to use defaults:
or this to override certain defaults: