-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
google_project skip_delete = true argument remove project from tfstate but shouldn't #4138
Comments
Hi @kelu27! I think there's been some confusion here;
It sounds like you expected it to keep the project in the Terraform state file. You can use the Can you tell me more about why that's something you're looking for the ability to do? |
Co-authored-by: Cameron Thornton <[email protected]> Co-authored-by: angie pinilla <[email protected]> Co-authored-by: angie pinilla <[email protected]> Signed-off-by: Modular Magician <[email protected]>
Co-authored-by: Cameron Thornton <[email protected]> Co-authored-by: angie pinilla <[email protected]> Co-authored-by: angie pinilla <[email protected]> Signed-off-by: Modular Magician <[email protected]> Co-authored-by: angie pinilla <[email protected]>
closing based on no response |
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.12.5
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
After destroying a project with the
skip_delete = true
argument, I wanted it to be kept in the state file like this:Actual Behavior
The project is deleted in the terraform.tfstate file, but it's not deleted in Gcloud thanks to
skip_delete = true
argument.I can't add new resources with terraform because the project is already created but the tfstate file is updated as if the project is deleted.
I need to re-import it manually if I want to bypass this behavior.
I suppose that the google_project part of the tfstate file don't need to be updated with the command
terraform destroy
and theskip_delete = true
argument in the google_project resource.Steps to Reproduce
terraform apply
terraform destroy
Important Factoids
References
The text was updated successfully, but these errors were encountered: