-
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
Changing AWS ELB to not ForceNew when listeners change #721
Changing AWS ELB to not ForceNew when listeners change #721
Conversation
retest |
Didn't see a retest button or action anywhere - but the build failure looks transient and unrelated to my commit. Any help? |
Done 😃 |
Cheers, thanks! |
@@ -85,7 +85,7 @@ func resourceAwsElb() *schema.Resource { | |||
"listener": &schema.Schema{ | |||
Type: schema.TypeSet, | |||
Required: true, | |||
ForceNew: true, | |||
ForceNew: false, |
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.
The approach used in other resources, is to only add the ForceNew
option if it is set to true
, otherwise just delete it from the schema. So in this case it would be better to just delete the line instead of setting it to false
.
One inline comment about the code change, but additionally a note that this code change on it's own doesn't seem to be enough to change the behaviour. As the So if you want to modify this behaviour, you should also add some logic in the update func so changes are actually updated to the existing ELB. |
LGTM, going to remove that one extranneous line myself. :) |
providers/aws: Changing AWS ELB to not ForceNew when listeners change
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. |
Closes #652.