deleterious

command module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

README

deleterious

Helps you clean up AWS resources. This is handy when retention policies on CloudFormation stacks leave lots of orphaned AWS resources around costing money.

installation

go get github.com/kindlyops/deleterious
deleterious help

Example of deleting DynamoDB tables

Once deleterious gives you a list of things to delete, and you have manually confirmed they are ok to delete, you can make a little loop to delete the objects. Here is an example with dynamoDB tables

#!/bin/bash

# tables that need to be deleted
declare -a tables=("foo-MonkeyTable-1FDTVGZJOT25Y"
"foo-BananaTable-1HFLQZL7CVQ7L"
)

for i in "${tables[@]}"; do
	echo "deleting table: $i"
	aws dynamodb delete-table --table-name "$i"
done

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