DEV Community

Cover image for Let's Nuke - AWS Account
Anuvindh for AWS Community Builders

Posted on • Updated on

Let's Nuke - AWS Account

DAY 36 - Let’s Nuke AWS - Day Thirty-Six

Image tweet

100 days of Cloud on GitHub - Read On iCTPro.co.nz - Read on Dev.to


A step-by-step tutorial to Delete Everything from an AWS Account

Prerequisites

  • Make sure you remove the account from the organisations.

  • Get your access keys for CLI , check out this link to see How to

  • Now Goto repository, clink on releases, select your appropriate file, and right-click copy.

Topic Link
Clone repo Link
Releases Link

Image 6

I am using Linux so selecting cloud-nuke_linux_amd64,

Setup the nuke plant

  • Now on your system create a folder called nuke, then cd into it

Image 1

wget https://github.com/gruntwork-io/cloud-nuke/releases/download/v0.16.2/cloud-nuke_linux_amd64 
Enter fullscreen mode Exit fullscreen mode
  • Check the folder once copied the file us ls
  • lets rename the folder to aws-nuke mv cloud-nuke_linux_amd64 aws-nuke

Image 3

  • Change folder permissions
sudo chmod 777 aws-nuke
Enter fullscreen mode Exit fullscreen mode
  • lets copy this to /usr/bin
sudo cp aws-nuke /usr/bin
Enter fullscreen mode Exit fullscreen mode
  • verify the package
aws-nuke
Enter fullscreen mode Exit fullscreen mode

You will be able to similar result as shown in the screenshot

Image 2

Now lets enter the magic command

aws-nuke aws
Enter fullscreen mode Exit fullscreen mode

Image nuke

We are not done yet,

let's nuke kaboooooom...

It will preview all the services gonna be destroyed

you will be prompted to confirm....

nuke
Enter fullscreen mode Exit fullscreen mode

confirm by typing nuke

Image 5

Image kaboom


✅Connect with me on Twitter
🤝🏽Connect with me on Linkedin
🧑🏼‍🤝‍🧑🏻 Read more post on dev.to or iCTPro.co.nz
💻 Connect with me on GitHub


Top comments (0)