Skip to content
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

Terraform deletes resources twice, results in error #555

Closed
sparkprime opened this issue Nov 7, 2014 · 2 comments
Closed

Terraform deletes resources twice, results in error #555

sparkprime opened this issue Nov 7, 2014 · 2 comments

Comments

@sparkprime
Copy link
Contributor

First apply this

{
   "provider": {
      "google": {
         "account_file": "service_account_key.json",
         "project": "abiding-truth-647",
         "region": "us-central1"
      }
   },
   "resource": {
      "google_compute_address": {
         "testaddr": {
            "name": "test6"
         }
      }
   }
}

Then change the name of the address as so, and reapply

{
   "provider": {
      "google": {
         "account_file": "service_account_key.json",
         "project": "abiding-truth-647",
         "region": "us-central1"
      }
   },
   "resource": {
      "google_compute_address": {
         "testaddr": {
            "name": "test7"
         }
      }
   }
}

resourceComputeAddressDelete is called twice on test6, the second time the op returns a 404 (resource does not exist) and interrupts the apply command.

I think this must be a bug outside of the provider?

thanks

@sethvargo
Copy link
Contributor

Related to #542?

@armon
Copy link
Member

armon commented Nov 19, 2014

Fixed by #578

@armon armon closed this as completed Nov 19, 2014
@ghost ghost locked and limited conversation to collaborators May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants