[Bug]: Forced replacement of aws_vpclattice_service_network_vpc_association
when using ARN as service_network_identifier
#31896
Labels
bug
Addresses a defect in current functionality.
service/vpclattice
Issues and PRs that pertain to the vpclattice service.
Milestone
Terraform Core Version
1.4.6
AWS Provider Version
4.67.0
Affected Resource(s)
Expected Behavior
aws_vpclattice_service_network_vpc_association
should not replace resources when passing an ARN for theservice_network_identifier
.According to the resource documentation passing an ARN is mandatory when using a different AWS account, thus this should never cause a problem.
Actual Behavior
Terraform will replace the
aws_vpclattice_service_network_vpc_association
every single time, due to the desired value (ARN) mismatching the stored value, despite them referring to the same service network.Example with all sensitive values removed:
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
I have not tested this example, but this should suffice to replicate the issue:
Steps to Reproduce
aws_vpclattice_service_network_vpc_association
that refers to a service network by ARNterraform apply
terraform plan
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: