-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
aws_vpc_endpoint get recreated on each apply on AWS PrivateLink unsuported regions. #3777
Comments
We may need a |
@rebelthor does this configuration work with v1.11.0 of the AWS provider? |
@bflad : This reproduces on the AWS provider version v1.11.0:
Thank you! |
With the latest code in |
@rebelthor Could you please try and reproduce with version 1.12.0 of the AWS provider? |
@ewbankkit : I confirm the 1.12.0 version of the AWS provider fixes this issue. Thank you! |
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Problem summary
Creating a VPC Endpoint in regions that don't support AWS PrivateLink results in resource recreation on each subsequent apply due to missing AWS parameter VpcEndpointType:Gateway in the AWS API reply. While the resource is recreated as expected, this is causing unnecessary resource recreation on each apply operation.
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Terraform Output
Expected Behavior
We would expect terraform and the AWS provider to ignore this difference and assume the Gateway Type where this is not explicitly returned.
Actual Behavior
The resource gets modified on every apply.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
several times on a AWS PrivateLink non-suported region. Example region: Paris: (eu-west-3)The current list of supported regions are: US East (N. Virginia), US East (Ohio), US West (Oregon), US West (N. California), EU (London), EU (Ireland), EU (Frankfurt), Canada (Central), Asia Pacific (Mumbai), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo) and South America (São Paulo)
Any other region (including China and GovCloud) would show this behavior.
Important Factoids
Response from CLI on supported region:
Response from unsupported region:
This has been confirmed with the AWS support as can be seen from the following quote:
The text was updated successfully, but these errors were encountered: