>> How to Install Python and Boto3
1. What is VPC in AWS
- A VPC (Virtual Private Cloud) in AWS is a virtual network infrastructure that allows you to create a private and isolated virtual network in the AWS cloud.
- With a VPC, you can launch Amazon Elastic Compute Cloud (EC2) instances, create subnets, configure route tables, and apply security measures to control access to your resources.
- A VPC enables you to create your own private cloud within the AWS infrastructure, giving you complete control over your network configuration. Some of the key features and benefits of using VPCs in AWS include security, flexibility, scalability, availability, and cost-effectiveness.
2. Create VPC using the Boto3 library in Python
- Full sources code in Github >> aws-python-boto3
# File 001_BuildVpc.py
- createClientSession()
- createVpc()
- deleteVpc()
+ To create VPC run:
+ To delete VPC comment #createVpc(), uncomment deleteVpc() and run:
References:
https://aws.amazon.com/sdk-for-python/
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2/client/create_vpc.html
Thank you!

No comments:
Post a Comment