-
Notifications
You must be signed in to change notification settings - Fork 556
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 destroy
with enabled protection mode causes VM to shutdown
#1043
Comments
@maksimsamt The protection is about the protection flag in proxmox. That you can't delete it with it enabled is a known issue Telmate/proxmox-api-go#330 |
Thanks, got it.
Isn't this expected behavior? This is exactly the behavior I expect... But what about this?
|
terraform destroy
with enabled protection mode causes VM to shutdown. Is protection
argument redundant?terraform destroy
with enabled protection mode causes VM to shutdown
This issue is stale because it has been open for 60 days with no activity. Please update the provider to the latest version and, in the issue persist, provide full configuration and debug logs |
still actual:
|
This issue is stale because it has been open for 60 days with no activity. Please update the provider to the latest version and, in the issue persist, provide full configuration and debug logs |
System details:
As per documentation:
Setting this value to
true
and runningterraform destroy
gives the following result:Everything looks fine, but this action causes VM to shutdown.
I expected that in protection mode VM state would remain untouched, for example, keeps running.
The second thing, is
protection
argument redundant? (resolved, not redundant, answer #1043 (comment))Cause that protection from destroy can be achieved using Terraform built-in lifecycle meta-argument, for example:
In this case gives such result:
The text was updated successfully, but these errors were encountered: