You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
If an issue is assigned to a user, that user is claiming responsibility for the issue.
Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.
At first, when the resource has non-empty access_config and I try to deploy with null or empty access_config it cannot find any difference in the configuration and doesn't remove the nat_ip assigned to it.
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed.
Expected Behavior
When we deploy a resource with null access_config, the compute instance shouldn't have public IP enabled.
When we deploy with non-empty access_config on the existing resource, it should have nat_ip assigned.
When we deploy with null access_config on this existing resource, it should identify the difference in configuration and public IP assigned to the resource should be removed.
Actual Behavior
It doesn't identify difference in configuration when I deploy null access_config on existing resource with non-empty access_config. Therefore, it doesn't update the public IP assigned to this resource.
Steps to reproduce
terraform apply with access_config's default value = [].
terraform apply with access_config's non-empty value.
terraform apply with access_config's default value = [].
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered:
After replicating this scenario a couple of times no bug was detected. If you only need to stop using the nat_ip you just need to adapt your terraform configuration by removing the 'nat_ip' argument from your variable and from the access_config block of code like this:
Community Note
Terraform Version
Terraform v1.8.2
on linux_amd64
Affected Resource(s)
google_compute_instance_from_template
Terraform Configuration
Debug Output
At first, when the resource has non-empty access_config and I try to deploy with null or empty access_config it cannot find any difference in the configuration and doesn't remove the nat_ip assigned to it.
Expected Behavior
Actual Behavior
Steps to reproduce
terraform apply
with access_config's default value = [].terraform apply
with access_config's non-empty value.terraform apply
with access_config's default value = [].Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: