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

Support prevent_destroy feature for cloud resources #347

Open
zzxwill opened this issue Nov 7, 2022 · 1 comment
Open

Support prevent_destroy feature for cloud resources #347

zzxwill opened this issue Nov 7, 2022 · 1 comment

Comments

@zzxwill
Copy link
Collaborator

zzxwill commented Nov 7, 2022

A few users kept asking whether we can support preventing cloud resources from being deleted. We asked them to use the delete protection feature if the cloud provides the option like https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/ess_scaling_group#group_deletion_protection.

Now Terraform officially provides prevent_destroy in lifecycle with a resource since v1.3 https://developer.hashicorp.com/terraform/tutorials/state/resource-lifecycle#prevent-resource-deletion. We might also need to support it.

@chivalryq
Copy link
Member

Good idea! Let's hold the issue and see how many people need it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants