This message was deleted.
# general
s
This message was deleted.
l
There's a
forceDestroy
input.
Or you could import all your bucket objects and delete those, too 🙂
b
forceDestroy still doesn't work, it's imposed on the S3 API
you'll have to delete all the bucket objects manually
l
How come Terraform provides the option? I assumed they looked after it for you...
b
it does? perhaps I'm mistaken then
b
Force destroy will do what you want: https://www.pulumi.com/docs/reference/pkg/aws/s3/bucket/#forcedestroy_nodejs If you don't want to accidentally delete the bucket and contents, it's worth adding
protect
as well
Copy code
const bucket = new aws.s3.Bucket("pk-destroy-test", {
    forceDestroy: true
}, 
{
    protect: true
});
474 Views