DEV Community

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

Posted on • Edited on

10 4

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


Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, we’ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (0)

Best Practices for Running  Container WordPress on AWS (ECS, EFS, RDS, ELB) using CDK cover image

Best Practices for Running Container WordPress on AWS (ECS, EFS, RDS, ELB) using CDK

This post discusses the process of migrating a growing WordPress eShop business to AWS using AWS CDK for an easily scalable, high availability architecture. The detailed structure encompasses several pillars: Compute, Storage, Database, Cache, CDN, DNS, Security, and Backup.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay