https://github.com/vidyasagarmsc/cos-object-cleanup
Terraform scripts to delete non-empty COS bucket using MINIO client.
https://github.com/vidyasagarmsc/cos-object-cleanup
cleanup cos cos-bucket minio-client s3 terraform
Last synced: 3 months ago
JSON representation
Terraform scripts to delete non-empty COS bucket using MINIO client.
- Host: GitHub
- URL: https://github.com/vidyasagarmsc/cos-object-cleanup
- Owner: VidyasagarMSC
- License: apache-2.0
- Created: 2020-11-09T14:50:09.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-09T17:29:14.000Z (over 4 years ago)
- Last Synced: 2025-01-17T19:42:10.239Z (4 months ago)
- Topics: cleanup, cos, cos-bucket, minio-client, s3, terraform
- Language: HCL
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
README
# 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
```sh
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
```sh
cp terraform.tfvars.template terraform.tfvars
```
3. Run both `terraform` commands
```sh
terraform init
terraform apply
```
### Destroy```sh
terraform destroy
```