-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
aws_lb subnet_mapping forces recreation using ForceNew even if only new subnet mapping is added #17281
Comments
Same issue here but using
|
I just want to add that this happens also for ipv6, probably this is not nothing surprising, but adding this info just in case it is relevant.
|
Same issue with provider 4.64.0 At initial LB resource creation This scenario requires a two step execution:
|
I see the behavior described by @ef-klukacs in provider 5.25.0, which occurs without adding or deleting subnets to the NLB, so may or may not have the same root cause as the original issue description here. I confirmed that when I provide But then FWIW I'm using this resource via v9.2.0 of https://github.com/terraform-aws-modules/terraform-aws-alb, but I don't think that affects the behavior described here. |
This functionality has been released in v5.31.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v0.12.23
Tested on AWS provider 2.63.0 and 3.25.0
Affected Resource(s)
aws_lb
Terraform Configuration Files
and var:
Debug Output
Panic Output
Expected Behavior
New subnet mapping added into existing NLB (as in AWS Console you can add but not remove existing Subnets)
Actual Behavior
New subnet added into NLB and NLB forced to be recreated.
Steps to Reproduce
terraform apply
terraform plan
and see that NLB will be recreatedThe text was updated successfully, but these errors were encountered: