Blog Details

How to delete everything from your AWS account – 100 days of Cloud: Day 36

+1
0
+1
1
+1
0
+1
0
+1
0

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

Image tweet
Image cover

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


Delete Everything in an AWS Account

Prerequisites

  • Make sure you remove account from the organisations.
  • Get you 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.
TopicLink
Clone repoLink
ReleasesLink

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 
  • 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
  • lets copy this to /usr/bin
sudo cp aws-nuke /usr/bin
  • verify the package
aws-nuke

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

Image 2

Now lets enter the magic command

aws-nuke aws

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

confirm by typing nuke

Image 5

✅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