-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
[Bug]: Terraform Provider v5.6.0 causes Load Balancers recreate when tags change #32296
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
This is not limited to LB resources, appears to be consistent across all resource types. This should be considered a SEV1 issue! |
Wow scary @Pesticles |
cc: @justinretzolk |
Yup. All our pipelines are broken on trying to replace iam roles. Ack! |
@lopezm1 Thanks for reporting this issue 👏. |
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. |
Terraform Core Version
1.4.6
AWS Provider Version
5.6.0
Affected Resource(s)
aws_lb
Expected Behavior
I would expect a tag change NOT to destroy and recreate my existing load balancer.
Actual Behavior
Our aws_lb object is being re-created any time a tag is updated. This is not the expected behavior. We were able to fix our deployment pipelines by pinning v5.5.0 on the AWS Terraform provider.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
resource "aws_lb" "application" {
name = var.name
security_groups = var.security_groups
internal = var.internal
subnets = var.internal ? data.terraform_remote_state.current_vpc.outputs.private_subnets : data.terraform_remote_state.current_vpc.outputs.public_subnets
load_balancer_type = var.load_balancer_type
enable_deletion_protection = var.enable_deletion_protection
enable_cross_zone_load_balancing = true
tags = var.tags
lifecycle {
ignore_changes = [subnets]
}
}
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: