Posts

Automating Disaster Recovery Using Terraform & CI/CD on AWS

Introduction Hey everyone! 👋 I recently worked on a project where I automated disaster recovery (DR) on AWS using Terraform and CI/CD pipelines . Initially, I had no idea how to set up a proper DR solution, but after diving deep into AWS services and Terraform, I was able to create a fully automated system that recovers from failures without manual intervention . I thought it would be a great idea to document the entire process in this blog so that others (especially students like me) can learn how to build a similar system. If you're new to Terraform, AWS, or CI/CD, don't worry—I’ll explain everything in simple terms . 📌 What will you learn? How to automate disaster recovery on AWS Setting up EC2, RDS, S3, CloudWatch , and more Using Terraform to manage infrastructure as code Implementing CI/CD pipelines for automatic deployment How to test the DR system and make sure it actually works 🔗 GitHub Repository : Disaster Recovery CI/CD Why Do We Need Disaster...

Building a Development Environment on AWS Using Terraform

Image
 Project Objective The objective of this project is to set up a fully automated development environment on AWS, accessible directly from VS Code. By using Terraform, I configured AWS infrastructure components such as a Virtual Private Cloud (VPC), subnets, security groups, and an EC2 instance. Additionally, I set up VS Code to automatically retrieve the instance IP and configure SSH access dynamically, allowing us to seamlessly manage the environment within the IDE. This blog documents the project, following the same steps demonstrated in this YouTube tutorial for an in-depth reference.

Automating Frontend Deployment with GitHub Actions: A CI/CD Pipeline for AWS S3

Image
As I continue my journey through the Cloud Resume Challenge , I’ve completed the first two phases where I deployed my portfolio website using AWS services like S3 and CloudFront and integrated a dynamic view counter with Lambda and DynamoDB . In this phase, I’ve implemented Continuous Integration/Continuous Deployment (CI/CD) using GitHub Actions to automate the deployment of my website every time I push updates to the repository. This ensures that my website is always live with the latest changes without manual intervention.

Tracking Website Views Using AWS Lambda and DynamoDB

Image
In this phase of my portfolio website project ( AWS Cloud Resume Challenge ), I added a view counter to track the number of visitors to the site. To achieve this, I used AWS Lambda , DynamoDB , and JavaScript . The Lambda function increments and fetches the current view count stored in DynamoDB every time a user visits the website, and this count is displayed on the site using JavaScript. In this blog, I’ll guide you through the following steps: Creating a DynamoDB table to store the view count. Developing an AWS Lambda function that increments and fetches the view count. Using the Lambda Function URL to call the Lambda function directly from the website via JavaScript. By the end of this blog, you’ll have a working setup to track and display view counts on your website. Project Overview AWS DynamoDB : Stores the view count. AWS Lambda : Increments and fetches the view count from DynamoDB. JavaScript : Calls the Lambda function URL and displays the view count on the website. Prerequis...

Deploying My Portfolio Website on AWS: A Complete Guide Using S3 and CloudFront

Image
In this blog post, I’ll walk you through the process of deploying a portfolio website on AWS, leveraging a private S3 bucket and CloudFront distribution to securely deliver content over the web. This setup ensures that your website is not only fast and reliable but also secure, with controlled access to your S3 bucket. By the end of this guide, you’ll have a clear understanding of how to host a static website on AWS, how to secure your S3 bucket, and how to distribute content globally using CloudFront. I’ll also share screenshots at each step to make the process easier to follow. Project Overview The goal of this project was to deploy a portfolio website on AWS using the following services: Amazon S3: For secure and scalable storage of the website’s files. Amazon CloudFront: For content delivery, ensuring the website is fast and available globally. Prerequisites Before you begin, make sure you have the following: AWS Account: You’ll need an active AWS account to access the AWS Manage...