Giter VIP home page Giter VIP logo

aws_delete_all's Introduction

AWS Delete All Script

Introduction

This script is designed to clean up various resources within specific AWS regions in parallel using Python threading. This script uses boto3, the AWS SDK for Python, and checks the version of boto3 currently installed on your system against the latest available version.

Before deleting any resources, it will create threads for each AWS region, and perform the deletion of resources in each region concurrently.

AWS CLI Setup

Before you can use boto3, you need to set up authentication credentials for your AWS account using the AWS CLI.

You can install AWS CLI using pip:

pip install awscli
aws configure

AWS Access Key ID and AWS Secret Access Key: You can find these on your AWS account. If you don't have one, you can generate it from the AWS Management Console.

Default region name: The region to which AWS CLI directs its requests. You can set any region you want. For example, us-west-2.

Default output format: The output format for AWS CLI. You can set json.

Dependencies

pip install boto3 requests loguru

Usage

To use this script, simply run it.

python main.py

WARNING: Be very cautious when using this script as it deletes resources.

Resources Deleted This script deletes the following AWS resources in every AWS region:

  • Sagemaker Notebook Instances
  • EC2 Elastic IP Addresses
  • ECS Clusters
  • ECS Tasks
  • ECR Repositories
  • EC2 Instances
  • Kinesis Firehose Delivery Streams
  • Kinesis Data Streams
  • Redshift Clusters
  • Redshift Subnet Groups
  • Peering Connections
  • Load Balancers
  • Target Groups
  • Lambda Functions
  • Lambda Layers
  • EFS Systems
  • DB Instances
  • RDS Systems
  • RDS Subnet Groups
  • RDS Option Groups
  • RDS Parameter Groups
  • DB Cluster Parameter Groups
  • DB Cluster Snapshots
  • DB Instance Automated Backups
  • API Gateway Endpoints
  • Route Tables
  • Network Interfaces
  • Subnets
  • Security Groups
  • Internet Gateways
  • VPCs
  • S3 buckets
  • IAM Roles
  • ECS Namespaces

License This project is licensed under the MIT License. See the LICENSE file for details.

aws_delete_all's People

Contributors

sinanartun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.