API Gateway VPC endpoint IDs are constantly updated because of order #12210
Labels
bug
Addresses a defect in current functionality.
service/apigateway
Issues and PRs that pertain to the apigateway service.
Milestone
When creating an API Gateway Private REST API with more than one
vpc_endpoint_ids
in theendpoint_configuration
block, the endpoints are consistently reordered in the state file. This results in all subsequentapply/plan
commands updating theaws_api_gateway_rest_api
resource.NOTE: If I destroy the original resource and manually reorder the
vpc_endpoint_ids
to match the order they were created in the state file, then subsequentapply/plan
commands report "No Changes" as expected. I tried this several times with consistent results, even with up to 7 endpoint ids. It seems that somewhere under the hood, Terraform is sorting the endpoint ids before running the operations, but it's unclear how they're being sorted--it's not alphabetical.Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: