Skip to content

This project was created during my learning to enhance understanding and gain hands-on experience.

Notifications You must be signed in to change notification settings

anni2017/AWS_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

☁️ AWS CloudFormation Project β€” S3 & EC2 Automation πŸ“Œ Overview

This project demonstrates the automation of AWS infrastructure using CloudFormation, provisioning both Amazon S3 and Amazon EC2 in a single, reusable template. It highlights Infrastructure as Code (IaC) principles, allowing reliable, repeatable, and scalable deployment without manual intervention.

🎯 Project Objective

To create robust, reusable CloudFormation templates for automatically deploying AWS resources, ensuring:

βœ… Consistency across deployments βœ… Reduced manual setup time βœ… Easy lifecycle management (create, update, delete)

πŸ“ Repository Structure

Templates

  • templates/temp.yaml β†’ Simple S3
  • templates/s2+ec2.yaml β†’ EC2 + S3
  • docs/Presentation1.pdf β†’ Steps followed

βš™οΈ Templates Breakdown 🟒 temp.yaml β€” Simple S3 Template

Deploys a single S3 bucket with a custom name. Ideal for beginners to understand CloudFormation basics: syntax, parameters, and resource declaration.

πŸ”΅ s2+ec2.yaml β€” EC2 + S3 Combined Template

Deploys EC2 instance + S3 bucket together.

Parameters included:

Instance Type (e.g., t2.micro) Key Pair Name for SSH access Bucket Name Configures security groups and IAM roles (if required). Demonstrates resource dependency management: ensures EC2 can interact with S3 securely.

🧾 Steps Followed (Reference: Presentation1.pdf)

Designed Templates β€” Created temp.yaml and s2+ec2.yaml with required resources and parameters. Validated Templates β€” Checked for syntax and logical errors in AWS CloudFormation Console. Created Stacks β€” Uploaded templates β†’ Entered stack name and parameters β†’ Created stack. Verified Resources β€” Confirmed S3 buckets and EC2 instances were deployed successfully. Tested Functionality β€” Checked EC2 β†’ S3 connectivity (if applicable). Deleted Stack β€” Cleaned up resources automatically to avoid costs.

πŸ› οΈ How to Deploy

Via AWS Management Console:

Open CloudFormation β†’ Create Stack β†’ With new resources (standard). Upload temp.yaml or s2+ec2.yaml. Fill in parameters: Key Pair, Instance Type, Bucket Name. Click Create Stack β†’ Wait for CREATE_COMPLETE. Verify resources in EC2 and S3. Delete stack when done to remove all resources.

🌟 Key Learnings

Mastered Infrastructure as Code (IaC) concepts. Gained experience in CloudFormation template structure β€” Parameters, Resources, Outputs. Learned stack lifecycle management β€” creation, update, deletion. Practiced handling resource dependencies and automation best practices.

πŸš€ Future Enhancements

Add UserData scripts to EC2 for automatic software deployment. Attach IAM Role to EC2 for secure S3 access. Integrate CloudWatch for monitoring and SNS notifications for stack events. Expand templates for multi-region deployment or multi-AZ setups.

πŸ‘©β€πŸ’» Author Anjali Chopariya.

About

This project was created during my learning to enhance understanding and gain hands-on experience.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published