A remove command for AWS resources
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.
// Add gif
- List resources via
awsls
with the attributes you want to filter on (here:-a tags
) - Use standard tools, such as grep, to filter the resources to delete
- 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
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 users can install by:
brew install jckuester/tap/awls
For more information on Homebrew taps please see the tap documentation.
You are using this tool at your own risk! I will not take responsibility if you delete any critical resources in your production environments.