This project demonstrates how to deploy AWS cloud infrastructure using Python and the Boto3 SDK. The infrastructure includes a VPC, internet gateway, public subnet, public route table, and EC2 instances.
Before running the scripts, ensure you have the following prerequisites in place:
-
AWS Account: You need an AWS account with appropriate permissions to create VPC resources and EC2 instances.
-
Python 3: Make sure you have Python 3.x installed on your local machine.
-
Boto3: Install the Boto3 library by running
pip install boto3
.
The project consists of the following files:
-
create_infrastructure.py
: Python script for creating the AWS infrastructure. -
README.md
: This documentation file.
Follow these steps to deploy the cloud infrastructure:
-
Clone the repository:
git clone https://github.com/mohammadfarooqi/wecloudlearn-project1.git cd wecloudlearn-project1
-
Modify the script
create_aws_infra.py
to customize your infrastructure settings (e.g., instance types, security groups, etc.). -
Run the script to create the infrastructure:
python create_aws_infra.py
-
Review the console output for information about the created resources.
To clean up the resources created by the script, follow these steps:
-
Open the AWS Management Console.
-
Navigate to the AWS resources created by the script (VPC, EC2 instances, etc.).
-
Delete the resources manually.
- The scripts use the
boto3
library to interact with AWS services. Make sure your AWS credentials and region are properly configured.