This is a utility to delete a S3 bucket because there is no direct AWS CLI command to delete a versioned S3 bucket
-
Assume that you have either:
-
exported your AWS credentials or
-
set your AWS credentials file
~/.aws/credentials
or -
configured aws vault
-
have Go installed, tested with version 1.11
- execute:
where
go run main.go --name <s3_bucket_name> --region <aws_region>
<s3_bucket_name>
is the bucket name to be deleted and<aws_region>
is the name of the AWS region where the S3 bucket is located