Automating a Serverless CRUD REST API with Node.js

In this guide, I walk you through building and automating the deployment of a serverless CRUD REST API using Node.js, AWS Lambda, API Gateway, DynamoDB, Serverless Framework, and GitHub Actions CI/CD. I’ll build a Coffee Shop API to to manage orders, inventory, and customer requests, deploying it automatically whenever code changes are pushed. Prerequisites Before […]

How I troubleshoot when EC2 instance terminates unexpectedly

It’s a common issue in AWS environment. Your instance goes from the pending state to the terminated state without you doing anything. Below are my 5 tips to troubleshoot this issue. 1. Check CloudTrail Logs for Termination Events Go to AWS CloudTrail and filter for TerminateInstances API calls. Search for who or what initiated the […]

How I Troubleshoot AWS when SNS Notifications Are Not Being Sent?

Have you set up AWS SNS but noticed that notifications aren’t being delivered? I’ve been there. Here’s how I would troubleshoot it: 1️⃣ Check Subscription Status -Login to AWS Console → Go to SNS → Topics → Subscriptions and verify if the endpoint (email, Lambda, SQS, etc.) is confirmed.– If it’s in a “PendingConfirmation” state, […]

How I Troubleshoot “Access Denied” Errors on an S3 Bucket?

You run into “Access Denied” when trying to get objects from your S3 bucket. Now, you need help to figure out what’s going wrong and get it fixed. Below are my 5 top tips to troubleshoot this issue: 1️⃣ Review the Bucket Policy Go to the S3 console, open your bucket, and check the bucket […]

How to Troubleshoot When S3 Event Notifications Don’t Trigger Lambda

Set up an S3 event to trigger your Lambda function, but nothing happens? I’ve run into that too. I put together a quick guide to help you troubleshoot the issue. It walks you through everything from checking S3 event config to verifying Lambda permissions. 1️⃣ Double-check Your S3 Event Notification Go to your bucket → […]

How to Troubleshoot API Gateway 403 Forbidden Errors

Nothing’s more frustrating than setting up an API Gateway, only to get hit with a 403 Forbidden error. I’ve been there too. Here’s how I troubleshoot it:   1️⃣ Check Resource Policies Go to API Gateway → Permissions Ensure the resource policy allows access to the intended users or services.   2️⃣ Verify IAM Roles […]

How To Protect Sensitive Input Variables with Terraform

When configuring infrastructure, you often need to use sensitive data such as usernames, passwords, API tokens, or Personally Identifiable Information (PII). It’s crucial to prevent accidental exposure of this information in CLI output, logs, or version control. Terraform offers built-in features to help safeguard sensitive data. Overview In this tutorial, you’ll learn how to use […]

Difference between AWS Lambda and Amazon API Gateway

AWS Lambda and API Gateway are two powerful tools that serve very different purposes, but work hand-in-hand to create seamless serverless applications. Let’s break it down with an analogy to make things clearer  AWS Lambda:   Imagine having a chef in a restaurant. The chef only starts cooking when an order is placed, and once the […]

Creating EKS Cluster using Terraform Modules

In this short lab, I will show you how to create an EKS Cluster properly using Terraform. Usually, I’d create a `main.tf` file and put all the resources needed to set up your EKS cluster in one place. But this time, I’ll be using Terraform modules instead. Modules make things a lot easier to manage. […]

Cost Management for AWS CI/CD Infrastructure using Python and Lambda

In this tutorial, I will show you how to streamline CI/CD Cost Management with Python Scripts and AWS Lambda. Scenario Consider your DevOps team using a development lab for application testing, where AWS EC2 instances in the lab run continuously. Your management raises concerns about the escalating costs, as these instances operate 24/7 even when […]