-
Notifications
You must be signed in to change notification settings - Fork 168
Open
Description
Description
I have a module that creates a bunch of buckets.
I would like to protect these buckets from accidental removal.
Currently, I use lifecycle.prevent_destroy directly on the module resources. However, I plan to move out of tree (in some other repo) this terraform module.
hashicorp/terraform#18367 and hashicorp/terraform#30957 are not addressed as of today, which means I have no good way of keeping my protection and being able to switch it off in case of need.
I propose adding a force_destroy argument, as GCP and AWS have.
When this argument is saved as false, any deletion request will be rejected if some objects are present in the bucket.
Affected Resource(s) and/or Data Source(s)
- ovh_cloud_project_storage
Potential Terraform Configuration
resource "ovh_cloud_project_storage" "bucket" {
service_name = var.project_id
region_name = var.region
name = "bucket-name"
force_destroy = true
}
Metadata
Metadata
Assignees
Labels
No labels