cloudformation_s3bucket_cleanup

command module
v0.0.0-...-8c83383 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2016 License: MIT Imports: 11 Imported by: 0

README

cloudformation_s3bucket_cleanup

Build Status cloudformation_s3bucket_cleanup is tool used for cleaning up retired S3 buckets used by AWS to provision CloudFormation stacks

Usage

compile for your platform using go build

$ go get github.com/PermissionData/cloudformation_s3bucket_cleanup

set up aws credentials in ~/.aws/credentials

$ cat ~/.aws/credentials
[default]
aws_access_key_id = <aws_access_key_id>
aws_secret_access_key = <aws_secret_access_key>

run tool

$ cloudformation_s3bucket_cleanup --aws-region us-east-1 --bucketfilter exhibitors3bucket

The default value for aws-region is us-east-1; the default value for bucketfilter is exhibitors3bucket. If you want these exact parameters you don't need to use the CLI args.

The bucketfilter is the substring that gets appended on every s3bucket created by AWS when provisioning a CloudFormation stack.

The tool only deletes buckets for stacks that are not in the CREATE_COMPLETE state

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL