-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
provider/aws: Addition of suspended_processes to aws_autoscaling_group #10096
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.
One question/suggestion
@@ -412,6 +426,11 @@ func resourceAwsAutoscalingGroupRead(d *schema.ResourceData, meta interface{}) e | |||
d.Set("health_check_type", g.HealthCheckType) | |||
d.Set("launch_configuration", g.LaunchConfigurationName) | |||
d.Set("load_balancers", flattenStringList(g.LoadBalancerNames)) | |||
if g.SuspendedProcesses != nil { |
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.
If we have suspended processes, and all of them are removed (assuming they can be removed) externally, this guard will prevent us from detecting the drift, correct? If so, then we should remove this guard and just make sure flattenAsgSuspendedProcesses
will return an empty list when g.SuspendedProcesses
is nil
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.
ooohhhh good catch! Adding this now
476d0fe
to
463071b
Compare
Fixes #8954 Addition of the support of autoScaling group suspended_processes
463071b
to
fcd3e4c
Compare
@catsby made the change as requested :) |
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.
👍
hashicorp#10096) Fixes hashicorp#8954 Addition of the support of autoScaling group suspended_processes
hashicorp#10096) Fixes hashicorp#8954 Addition of the support of autoScaling group suspended_processes
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Fixes #8954
Addition of the support of autoScaling group suspended_processes