-
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
resource/aws_lb: suppress diff for attributes incorrect lb types #4032
Conversation
Thanks for jumping on this, I didn't realize that the output I was seeing wouldn't actually get applied since it wasn't applicable for the network type. |
No worries @tpickett66 thank you for pointing out the erroneous diff, it's very important that the user experience is clear. From your point of view it is very worrisome that the |
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.
LGTM -- thanks for this!! 🚀
This has been released in version 1.14.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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! |
Fix #4011
We recently added support for all elbv2 load balancer attributes. Some attributes can only be applied to application load balancers and some only for network load balancers. Even though the code is correct and we would never attempt to set an attribute that didn't apply to a network load balancer (or vice versa), the shared nature of the schema for this resource (and it's defaults) would show values in the state plan even if it did not make sense for the type.
This PR will suppress the diff for the respective attributes and load balancer types. Please let me know if unit tests are required, I have pasted a capture of
terraform plan
to confirm the attribute are hidden based on type.network.tf:
terraform plan:
application.tf:
terraform plan: