Skip to content
forked from jckuester/awsrm

A remove command for AWS resources

License

Notifications You must be signed in to change notification settings

ashellunts/awsrm

Repository files navigation

awsrm

A remove command for AWS resources

Release Software License Travis

This command line tool follows the Unix Philosophy and does only one thing, but (hopefully) does it well:

Deleting over 250 AWS resources across multiple accounts and regions via unified API.

Like other Unix-like tools, awsrm reveals its real power when combining it via pipes with other tools, such as awsls for listing resources or grep for filtering resources.

Example

Delete multiple resources at once

// Add gif

Delete across multiple accounts and regions

  1. List resources via awsls with the attributes you want to filter on (here: -a tags)
  2. Use standard tools, such as grep, to filter the resources to delete
  3. Pipe result into awsrm (nothing is deleted until you confirm)

The following example deletes all AWS instances with tag Name=foo in the AWS accounts associated with profile myaccount1 and myaccount2 in both regions us-west-2 and us-east-1:

awsls -p myaccount1 -r us-west-2 instance -a tags | grep Name=foo | awsrm

Installation

Binary Releases

You can download a specific version on the releases page or use the following way to install to ./bin/:

curl -sSfL https://raw.githubusercontent.com/jckuester/awrm/master/install.sh | sh -s v0.1.0

Homebrew

Homebrew users can install by:

brew install jckuester/tap/awls

For more information on Homebrew taps please see the tap documentation.

Disclaimer

You are using this tool at your own risk! I will not take responsibility if you delete any critical resources in your production environments.

About

A remove command for AWS resources

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 73.2%
  • Shell 19.6%
  • HCL 5.3%
  • Makefile 1.9%