[Bug]: v5.31.0 - aws_lb - 'ValidationError: Attributes cannot be empty' on apply for existing NLB in GovCloud (but appears to actually work?) #35014
Labels
bug
Addresses a defect in current functionality.
partition/aws-us-gov
Pertains to the aws-us-gov partition.
service/elbv2
Issues and PRs that pertain to the elbv2 service.
Milestone
Terraform Core Version
1.5.7
AWS Provider Version
5.31.0
Affected Resource(s)
Expected Behavior
Upgraded provider from v5.22.0 --> v5.31.0, in response to issue #34135 being marked as resolved. Expected re-apply of Terraform configuration to upgrade all resources to latest provider configuration (v5.31.0).``
Actual Behavior
Attempted to re-apply Terraform configuration (with no other changes) to an existing NLB in GovCloud, which produced the following error: "ValidationError: Attributes cannot be empty."
If you then re-execute a
terraform apply
(orterraform plan
), Terraform shows no changes required.Relevant Error/Panic Output Snippet
Terraform Configuration Files
resource "aws_lb" "this" {
load_balancer_type = "network"
name = "some-name"
internal = true
subnets = ["subnet-id-1", "subnet-id-2"]
enable_deletion_protection = true
enable_cross_zone_load_balancing = true
}
Steps to Reproduce
hashicorp/aws
provider version constraint from~> 5.0, <= 5.22
-->~> 5.31
terraform init -upgrade
to update the provider versionterraform apply
to (attempt) upgrade of all resourcesterraform apply
(orterraform plan
)Debug Output
No response
Panic Output
No response
Important Factoids
us-gov-west-1
)References
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: