Posts

Showing posts from October, 2024

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...