-
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
vpc_endpoint creation should enable Private DNS only after endpoint creation #7148
Comments
@craiglink Terraform will wait until the VPC endpoint has |
@ewbankkit It makes more sense to me to break out this It's more than the service consumer's need to wait for the Due the lifecycle of AWS interface VPCE, an interface VPCE initially will be always in a Now this extra So for the whole flow to work in terraform with the proper dependency chain, there needs to be 3 discrete terraform resource: With the current VPCE resource design bundling 1) and 3) into one single TF resource, it's impossible to properly automate the whole flow via terraform (unless the service provider turn on VPCE auto-accept). |
A much more severe manifestation of this issue arises when attempting to use
The provider is attempting an action that the underlying API will always deny on a service that requires acceptance. There is no opportunity to use The only workaround appears to be to set This is definitely not viable. The provider almost certainly needs to wait for
|
Warning This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them. Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed. |
This functionality has been released in v5.51.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. 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. |
Community Note
Terraform Version
Terraform v0.11.11
provider.aws: version = "~> 1.55"
Affected Resource(s)
Terraform Configuration Files
Behavior
When the resource creates the vpc endpoint and enables private DNS, it creates short service outage because the DNS record becomes available before the endpoint is actually available. Because terraform is declarative, there is not a way to define a two-stage object creation, thus this behavior needs to be fixed in the provider or AWS SDK or service ( a feature request has been openned with AWS too )
To solve this via terraform, the provider could create the vpc endpoint without the Private DNS enable and then upon successful creation of the endpoint, modify it to enable Private DNS ( provided private_dns_enabled was set to true )
The text was updated successfully, but these errors were encountered: