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
If I create a Google Compute Instance with Terraform, then remove the instance via the Google Cloud console, a terraform destroy fails with a no longer exists error (likely a 404) and won't continue. Other Terraform providers seem to handle this case by handling the 404 as a successful destroy and continuing on.
Tested with Terraform v0.6.6.
Terraform config:
resource "google_compute_instance" "main" {
name = "main"
machine_type = "n1-standard-1"
zone = "us-central1-f"
disk {
image = "ubuntu-1404-trusty-v20151113"
}
network_interface {
network = "default"
access_config {
// Ephemeral IP
}
}
}
This has already been brought up in #3742, and is being addressed in #3913. However, @apparentlymart made the case that the typical behavior is to allow terraform show to resolve this by calling Read(..) on the deleted resources, marking them as no longer existing. What do you think, @clstokes?
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Apr 29, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If I create a Google Compute Instance with Terraform, then remove the instance via the Google Cloud console, a
terraform destroy
fails with a no longer exists error (likely a 404) and won't continue. Other Terraform providers seem to handle this case by handling the 404 as a successful destroy and continuing on.Tested with Terraform v0.6.6.
Terraform config:
Abridged Terraform output...
The text was updated successfully, but these errors were encountered: