Skip to content

Smilin01/aws-infra-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

AWS Infrastructure Automation

This project automates the provisioning of AWS infrastructure using Python and Boto3. It creates a VPC, Internet Gateway, Subnet, Route Table, and launches an EC2 instance.

Features

  • VPC Creation: Creates a Virtual Private Cloud with CIDR 10.0.0.0/16.
  • Internet Access: Sets up an Internet Gateway and Route Table for public access.
  • Subnet: Provisions a public subnet (10.0.1.0/24) in us-east-1.
  • EC2 Instance: Launches a t2.micro Ubuntu instance with a public IP.
  • Security Group: Creates a security group allowing HTTP access.

Prerequisites

  • Python 3.x
  • AWS Account
  • AWS CLI configured with credentials (aws configure)
  • boto3 library installed

Installation

  1. Clone the repository:

    git clone https://github.com/Smilin01/aws-infra-automation.git
    cd aws-infra-automation
  2. Install dependencies:

    pip install -r requirements.txt

Usage

Run the script to provision the infrastructure:

python src/provision_vpc.py

The script will output the progress and finally display the Instance ID and Public IP of the created EC2 instance.

Configuration

  • Region: Defaults to us-east-1. Modify region_name in src/provision_vpc.py to change.
  • AMI ID: The script uses ami-0c7217cdde317cfec (Ubuntu 22.04 LTS). Ensure this AMI ID is valid for your selected region.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages