Skip to content
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

Merged

Conversation

robzienert
Copy link
Contributor

Closes #652.

@robzienert
Copy link
Contributor Author

retest

@robzienert
Copy link
Contributor Author

Didn't see a retest button or action anywhere - but the build failure looks transient and unrelated to my commit. Any help?

@svanharmelen
Copy link
Contributor

Done 😃

@robzienert
Copy link
Contributor Author

Cheers, thanks!

@@ -85,7 +85,7 @@ func resourceAwsElb() *schema.Resource {
"listener": &schema.Schema{
Type: schema.TypeSet,
Required: true,
ForceNew: true,
ForceNew: false,
Copy link
Contributor

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.

@svanharmelen
Copy link
Contributor

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 resourceAwsElbUpdate function doesn't contains any logic to update the listeners for existing ELB's, it is currently still required to create a new one when the listeners changed.

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.

@phinze phinze added the waiting-response An issue/pull request is waiting for a response from the community label Jan 30, 2015
@mitchellh
Copy link
Contributor

LGTM, going to remove that one extranneous line myself. :)

mitchellh added a commit that referenced this pull request Feb 17, 2015
providers/aws: Changing AWS ELB to not ForceNew when listeners change
@mitchellh mitchellh merged commit 9a19eb3 into hashicorp:master Feb 17, 2015
@robzienert robzienert deleted the change-elb-listener-force-new branch February 19, 2015 04:00
@ghost
Copy link

ghost commented May 4, 2020

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.

@ghost ghost locked and limited conversation to collaborators May 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
waiting-response An issue/pull request is waiting for a response from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

providers/aws: aws_elb forces a new resource when listeners change
4 participants