Skip to content

ciarand/sinkship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sinkship

A small utility to help manage the destruction of DigitalOcean droplets.

Got a little crazy with just how easy creating Droplets on DigitalOcean is? Added too many 0s to Terraform’s count parameter? Don’t worry, Sinkship can help.

Usage

Get the tool:

go get github.com/ciarand/sinkship

Create a personal access token (PAT) from your DigitalOcean control panel.

Note

Sinkship will read token information from the following locations, in order:

  • The CLI flag "-token"

  • The environmental variable "DO_TOKEN"

  • The file "token" in the current directory

Run the tool:

$ sinkship
INFO[0000] Found 20 droplets, preparing to delete
INFO[0001] [1] deleted coreos-minion (2788310)
INFO[0001] [2] deleted coreos-minion (2788316)
INFO[0002] [3] deleted coreos-minion (2788322)
INFO[0002] [4] deleted coreos-minion (2788314)
INFO[0002] [5] deleted coreos-minion (2788309)
INFO[0002] [6] deleted coreos-minion (2788320)
INFO[0002] [7] deleted coreos-minion (2788317)
INFO[0002] [8] deleted coreos-minion (2788318)
INFO[0002] [9] deleted coreos-minion (2788321)
INFO[0002] [10] deleted coreos-leader (2788326)
INFO[0002] [11] deleted coreos-minion (2788323)
INFO[0002] [12] deleted coreos-minion (2788315)
INFO[0002] [13] deleted coreos-minion (2788325)
INFO[0002] [14] deleted coreos-minion (2788307)
INFO[0002] [15] deleted coreos-minion (2788311)
INFO[0002] [16] deleted coreos-minion (2788312)
INFO[0002] [17] deleted coreos-minion (2788324)
INFO[0002] [18] deleted coreos-minion (2788313)
INFO[0002] [19] deleted coreos-minion (2788319)
INFO[0002] [20] deleted coreos-minion (2788308)

License

ISC license, see the LICENSE file.

About

Sinks your DigitalOcean droplets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages