-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Preventing accidental deletes #26511
Comments
Hi @steeling, This would likely fall under the proposal to make deletion events more manageable, which we're tracking here: #24658 In general, we would not recommend using Thanks! |
Thanks for the reply @jbardin! Quick question, the docs here mention that specifying a plan file is ignored when using remote state... https://www.terraform.io/docs/commands/apply.html#state-path, what is the guidance in this case? Does this specifically mean when using the "remote" field, or does this also apply to azurerm backends, or s3 buckets? |
I'm not sure where you are seeing that. The linked docs do mention that the |
I see now, I was conflating the state file with the plan file.. thanks for the clarification here! If I may ask one more semi-related question: Is there a way to do a refresh of the state file, without updating the remote-state? ie: a Something like
|
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. |
Hi there,
Looking to remove some potential "foot guns". I had created a k8s cluster with
azurerm_kubernetes_cluster
, and found I can't pass the creds to other providers in the same module .If I move a resource from one module to another, or move some files and forget a file (thereby omitting terraform resource definitions), terraform deletes the resource.The issue is that running this under automation often comes with
-auto-approve
. How can we prevent people from shooting themselves in the foot?How about adding a
--no-delete
flag toterraform apply
.The text was updated successfully, but these errors were encountered: