+1
+1
1
+1
+1
+1
DAY 36 – Let’s Nuke AWS – Day Thirty-Six
![Image tweet](https://res.cloudinary.com/practicaldev/image/fetch/s--WdLtPC3a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/49arpnjjyf762k9w8vuz.png)
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.
![](https://res.cloudinary.com/practicaldev/image/fetch/s--6Ik8-XkN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xwce2akjyerf41s7crdp.gif)
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
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
- 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
Now lets enter the magic command
aws-nuke aws
![](https://res.cloudinary.com/practicaldev/image/fetch/s--E-fFqocT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2t9l4avl3wztdqtbdehj.gif)
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
![](https://res.cloudinary.com/practicaldev/image/fetch/s---cUF6Ek9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v4hrij1smv51jmm32w8s.gif)
✅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