Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Iterate over all S3 buckets in your terraform files and add `force_destroy` to them [1], then apply and destroy.

There could probably be an automated tool for this that wouldn't be too complex.

[1] https://registry.terraform.io/providers/hashicorp/aws/latest...



Does that take care of deleting the files inside the bucket? That's an API call ($). Depending on the data that could be quite a bit.


Delete API calls are free, listing the objects in a bucket to know what to delete is not.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: