VidyasagarMSC / cos-object-cleanup

Terraform scripts to delete non-empty COS bucket using MINIO client.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Delete non-empty Object Storage bucket using MINIO and Terraform

Terraform scripts to recursively delete all the objects of a Cloud Object Storage (COS) bucket using MINIO client.

Deploy COS

  1. Clone this repository
    git clone https://github.com/VidyasagarMSC/cos-object-cleanup.git
  2. Create terraform.tfvars file from the template and update the file with your details
    cp terraform.tfvars.template terraform.tfvars
  3. Run both terraform commands
    terraform init
    terraform apply

Destroy

terraform destroy

About

Terraform scripts to delete non-empty COS bucket using MINIO client.

License:Apache License 2.0


Languages

Language:HCL 90.2%Language:Shell 9.8%