GithubHelp home page GithubHelp logo

adhig93 / delete_vpc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lianghong/delete_vpc

0.0 0.0 1.0 41 KB

Delete a VPC located on a AWS region with its all dependencies

License: Apache License 2.0

Shell 100.00%

delete_vpc's Introduction

delete_vpc

A shell script to delete AWS VPC with its dependencies (EC2 Instance, NAT Gateway, VPN Connection, VPN Gateway, VPC Peering, Endpoint, Egress Only Internet Gateway, Network ACL, Security Group, Elastic IP, Internet Gateway, Network Interface, Subnet and Route Table).

Modified on Jun 7, 2020: Solved the issue of Security Group deleting failed when Security Group attached to ENI.

Note:

  1. The script requires AWS CLI and does not depend on any other tools.
  2. Optional. To use a specific credential, add a profile in the environment variable AWS_PROFILE.
Usage      : ./delete_vpc.sh <region-id> <vpc-id>
For example: ./delete_vpc.sh us-east-1 vpc-xxxxxxxxxx
             AWS_PROFILE=xxxxx ./delete_vpc.sh eu-central-1 vpc-xxxxxxxxxx

if you want to know what's the VpcID in the specific region, please try
For example: ./delete_vpc.sh us-east-1

Notes (8/22/2021):
      Added support for ELBs (Automaticly delete listener,load-balancer and target_group)

delete_vpc's People

Contributors

cnluzhang avatar dj80hd avatar fijiwebdesign avatar johnsimcall avatar lianghong avatar

Forkers

sachin-jk

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.