-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
"enable_dns_hostnames = false" on aws_default_vpc resource doesn't work #14911
Comments
Oddly, if you run a second apply, then it detects it as an update in-place And then the second apply seems to successfully update the setting on the VPC Regardless, this still looks like a bug and should be addressed so that the setting gets implemented on the first apply, as defined in the terraform and shown in the plan. |
I am running it with "enable_dns_hostnames = true" but still it fails during destroy. I tried to destroy multiple times.
|
The cause is the fact that the default value for |
@ewbankkit you mean this is the bug from AWS vpc resource. What will be the terraform provide it will only take its default value is 'false' only. |
Fixed with #22253 |
This functionality has been released in v4.0.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. |
When setting
enable_dns_hostnames = false
onaws_default_vpc
resource, the Terraform applies successfully with no warnings and no errors, but the setting does not actually get turned off on the target resource.Example code:
Example Terraform output:
Specifically, notice that the plan shows the desired setting:
+ enable_dns_hostnames = false
However, after the run, this setting is still enabled on the VPC, and if I look at the Terraform state, it shows as true in the state file.
The text was updated successfully, but these errors were encountered: