[Bug]: resource/aws_vpc_endpoint_service
arg supported_regions
is not idempotent
#40667
Labels
bug
Addresses a defect in current functionality.
needs-triage
Waiting for first response or review from a maintainer.
service/elbv2
Issues and PRs that pertain to the elbv2 service.
service/vpc
Issues and PRs that pertain to the vpc service.
Terraform Core Version
1.10.3
AWS Provider Version
5.82.2
Affected Resource(s)
Expected Behavior
Consecutive
terraform apply
should be idempotent if the underlying resources were not tampered with outside of the terraform statefiles view.Actual Behavior
Terraform applied a
aws_vpc_endpoint_service
with thesupported_regions
arg containing regions outside the current provider region. Terraform apply is successful and the statefile only shows the regions supplied tosupported_regions
. Consecutive apply's fail until the user adds the current provider region to the list of supported_regions or deletes the vpc endpoint service resource.Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Run consecutive
terraform apply
commands with the provided terraform config file.Debug Output
No response
Panic Output
No response
Important Factoids
It appears AWS implicitly adds the current region to the list of supported regions and will not allow it to be removed. This causes the terraform statefile and AWS state to be out of sync.
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: