AWS DevOps Infrastructure Assignment

A comprehensive project demonstrating AWS infrastructure setup, scripting, CI/CD implementation, and Infrastructure as Code using Terraform.

View on GitHub Contact Me

Assignment Tasks

Task 1: AWS Infrastructure

Setting up core AWS services and configurations:

  • Created S3 bucket with static website hosting
  • Launched and configured EC2 instance with web server
  • Configured security groups with IP restrictions
  • Implemented Lambda function for S3 event logging

Task 2: Scripting

Python scripts utilizing AWS SDK (boto3):

  • Script to list S3 buckets and count objects
  • Script to analyze CSV data based on grade thresholds
  • Comprehensive documentation of AWS SDK usage

Task 3: CI/CD Implementation

Continuous Integration and Deployment pipeline:

  • GitHub repository setup with proper structure
  • GitHub Actions workflow for automated testing
  • Automated Terraform validation
  • Lambda package building and deployment

Task 4: Infrastructure as Code

Terraform scripts for AWS infrastructure automation:

  • EC2 instance with security group configuration
  • S3 bucket with static website hosting
  • Lambda function with CloudWatch integration
  • IAM roles and policies for proper access

Technologies Used

AWS
Python
Terraform
GitHub
CI/CD
EC2
S3
Lambda

Implementation Results

S3 Static Website

Successfully created an S3 bucket configured for static website hosting with proper public access permissions. This very page is being served from the S3 bucket.

EC2 Web Server

Deployed an Amazon Linux EC2 instance running Apache web server with a custom HTML page. The server is secured with properly configured security groups.

Python Scripts

Developed Python scripts that interact with AWS services using boto3 SDK, including listing buckets, counting objects, and analyzing CSV data with proper error handling.

Lambda Functions

Created an event-driven Lambda function that responds to S3 object creation events and logs details to CloudWatch, demonstrating serverless architecture.

CI/CD Pipeline

Implemented a GitHub Actions workflow that automatically tests Python code, validates Terraform configurations, and prepares Lambda deployment packages.

Infrastructure as Code

Developed Terraform scripts that automate the creation of all required AWS resources, enabling consistent, repeatable infrastructure deployment.

AWS Cost Analysis

Detailed annual cost breakdown for AWS services used in this project:

Service Configuration Annual Cost With Free Tier
EC2 Instance t2.micro, Amazon Linux $101.62 $0 (first year)
S3 Bucket 1GB storage, 10GB transfer/month $16.46 $0 (first year)
Lambda Function 100K invocations/month $2.80 $0 (perpetual)
CloudWatch Logs 5GB ingestion & storage/month $31.80 $0 (perpetual)
Total $152.68 $0 (first year)

Contact Information

Feel free to reach out for any questions or opportunities:

Email

lokanathpanda128@gmail.com

Phone

+91 8144496407

Location

Bhubaneswar, India