terraform-google-gke-gitlab icon indicating copy to clipboard operation
terraform-google-gke-gitlab copied to clipboard

Non-empty buckets cause deletion to fail

Open henrybell opened this issue 4 years ago • 1 comments

Currently a Terraform delete operation will fail once builds have been run because of non-empty GCS buckets (observed with the "artifacts" bucket). The force_destroy option, if applied to a bucket, will cause the bucket to be deleted along with the objects it contains, which will allow deletion of the resource:

https://www.terraform.io/docs/providers/google/r/storage_bucket.html#force_destroy

If this is considered unsafe then this functionality could be exposed with a top-level option (e.g. force_destroy_buckets or similar).

henrybell avatar Jul 08 '20 17:07 henrybell

I think we should add this as a variable.

morgante avatar Jul 21 '20 14:07 morgante