Skip to content

Instantly share code, notes, and snippets.

View deepakabari's full-sized avatar
🎯
Focusing

Deep Akabari deepakabari

🎯
Focusing
View GitHub Profile

📘 Terraform: Infrastructure as Code (IaC) – A Comprehensive Guide


🧩 What is Terraform?

Terraform is an open-source Infrastructure as Code (IaC) tool developed by HashiCorp that allows you to define, provision, and manage cloud infrastructure using a declarative configuration language known as HCL (HashiCorp Configuration Language).

Instead of manually creating AWS resources (like EC2 instances, S3 buckets, Lambda functions, etc.) through the AWS console, Terraform allows you to write .tf files and version control your infrastructure just like application code.

AWS EC2 with Serverless Architecture - Full Concepts and Detailed Explanation

📘 Overview

This document provides a comprehensive guide to setting up an AWS EC2-based system integrated with serverless components using the Serverless Framework. It includes core concepts, best practices, architectural insights, and deployment strategies. It’s ideal for developers who want to manage traditional infrastructure while adopting modern serverless paradigms.


📦 Components Covered

📘 Cognito Custom Message Template via Lambda Trigger with EJS

This documentation is for customize AWS Cognito message templates (registration, forgot password, resend code, etc.) using a Lambda trigger and EJS templates for rich HTML formatting.


🧭 Overview

AWS Cognito lets you send customized messages (email/SMS) for:

  • ✨ Sign-Up Confirmation

🛠️ Fixing Git Commits with Wrong Author

"Oops! Wrong identity again? Let's fix that." 😅


🚨 Common Scenarios & Fixes


@deepakabari
deepakabari / squash-git-commits.md
Last active June 9, 2025 10:19
This guide provides a clean, step-by-step process to squash multiple commits into a single commit.

How to Squash Multiple Commits into a Single Commit Before Creating a Pull Request

✅ Step-by-Step Guide

🧬 Step 1: Count the Commits to Squash

Before squashing, you need to identify how many commits your branch has made on top of the base branch (e.g., main or dev).

You can inspect the list of commits using:

@deepakabari
deepakabari / Generating a Presigned URL using AWS S3.md
Last active March 11, 2025 10:04
Here is Documentation of Generating a Presigned URL using AWS S3