-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
SetSubnets not allowed on LB type network #1941
Conversation
aws/resource_aws_lb.go
Outdated
@@ -390,6 +390,10 @@ func resourceAwsLbUpdate(d *schema.ResourceData, meta interface{}) error { | |||
} | |||
|
|||
if d.HasChange("subnets") { | |||
if d.Get("load_balancer_type").(string) == "network" { | |||
return fmt.Errorf("Unable to upddate subnets for loadbalancer %s, updating subnets is not supported for type network", d.Id()) |
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.
Great work on supporting NLBs in TF 👍
Small typo upddate
-> update
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.
We should log make mention that the way to actually do the change they're seeking is to use terraform taint
on this resource.
We also need to document this caveat in website/docs/r/lb.html.markdown
.
Hey @DaveBlooman thanks for fixing this! There are just 2 things we need to merge though, we need to:
We should mention |
Closing in favor of #2293 where I check off the items above |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Covers #1925