Skip to content

Support prevent_destroy feature for cloud resources #347

Open
@zzxwill

Description

@zzxwill

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions