Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toddm92/vpc-delete
Remove AWS Default VPCs
https://github.com/toddm92/vpc-delete
Last synced: 3 months ago
JSON representation
Remove AWS Default VPCs
- Host: GitHub
- URL: https://github.com/toddm92/vpc-delete
- Owner: toddm92
- License: mit
- Created: 2016-01-10T08:11:24.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-11-09T14:59:32.000Z (about 2 years ago)
- Last Synced: 2024-06-28T05:38:40.071Z (5 months ago)
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 54
- Watchers: 3
- Forks: 46
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
### Remove AWS Default VPCs
This Python script attempts to delete the AWS default VPC in each region.
**Requirements:**
* Tested with:
* Python version: 3.7.0
* Boto3 version: 1.7.50
* Botocore version: 1.10.50
* Valid AWS API keys/profile**Setup:**
Update with your AWS profile / credentials.
```
main(profile = '')
```**Usage:**
```
python remove_vpc.py
```**Output:**
```
VPC vpc-0b43a362 has been deleted from the ap-south-1 region.
VPC vpc-b22dd5db has been deleted from the eu-west-3 region.
VPC vpc-74b7551d has been deleted from the eu-west-2 region.
VPC vpc-3f71855a has been deleted from the eu-west-1 region.
VPC vpc-d58e6cbc has been deleted from the ap-northeast-2 region.
VPC (default) was not found in the ap-northeast-1 region.
VPC vpc-4053e625 has been deleted from the sa-east-1 region.
VPC vpc-4c06ea25 has been deleted from the ca-central-1 region.
VPC vpc-7b80631e has been deleted from the ap-southeast-1 region.
VPC vpc-41db3924 has been deleted from the ap-southeast-2 region.
VPC vpc-47ea0b2e has been deleted from the eu-central-1 region.
VPC vpc-1c558e79 has existing resources in the us-east-1 region.
VPC (default) was not found in the us-east-2 region.
VPC (default) was not found in the us-west-1 region.
VPC vpc-1839c57d has existing resources in the us-west-2 region.
```**References:**
* https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html