aws-nuke command not found

In this troubleshooting guide we learn how to fix aws-nuke command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

aws-nuke: command not found

or when using sudo you get the following error message

sudo: aws-nuke: command not found

Solutions to aws-nuke: command not found

How To Fix aws-nuke: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu aws-nuke is provided by aws-nuke package.

aws-nuke is:

Remove all resources from an AWS account.

Be aware that aws-nuke is a very destructive tool, hence be very careful while using it. Otherwise can cause production data deletion.

As an advise try to not run this application on any AWS account, where cannot be afforded to lose all resources. By default aws-nuke only lists all resources to delete. It’s necessary to add –no-dry-run to actually delete resources.

This tool retries deleting all resources until all specified ones are deleted or until there are only resources with errors left. There are two ways to authenticate aws-nuke, static credentials and profiles.

To fix this problem, we can install more using the command below.

sudo apt-get -y install aws-nuke

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install aws-nuke.

sudo apt -y install aws-nuke

Or if you have aptitude installed you can use the following command.

sudo aptitude install aws-nuke

Summary

In this tutorial we learn how to fix aws-nuke command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.