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 to troubleshoot if CloudWatch Logs not showing up

Set up CloudWatch logging, but nothing’s coming through? I’ve been there. I put together a quick guide to help you troubleshoot the issue, from checking log groups and IAM permissions to testing with the AWS CLI. Step 1: Check if the Log Group and Log Stream Exist Go to CloudWatch → Logs → Log groups. Find […]
How To Troubleshoot AWS When You Can’t SSH into an Amazon EC2 Instance

This is one of the most common issues in AWS. Here’s how I would troubleshoot it: 1️⃣ Verify the security group allows SSH (port 22) – Check the security group attached to your EC2 instance.– Ensure there’s an inbound rule allowing traffic on port 22 from your IP address. 2️⃣ Check if the instance has […]
How To Troubleshoot AWS Lambda Timeout Errors?

Lambda timeouts are a common issue that can break your serverless workflows. Here’s how I would troubleshoot it: 1️⃣ Check the function’s timeout settings: – Navigate to Lambda → Function → Configuration → General settings.– The default timeout is 3 seconds, but you can increase it up to 15 minutes if needed. 2️⃣ Increase the […]
How To Troubleshoot CloudFormation Stack Creation Failures?

AWS CloudFormation stack failures can be frustrating. They always seem to happen at the worst moment. Here is how I troubleshoot them: 1️⃣ Check Stack Events for Errors – Navigate to AWS CloudFormation → Stacks → Select Your Stack → Events.– Look for specific error messages that indicate what went wrong. 2️⃣ Validate the Template […]
How to Troubleshoot if AWS S3 bucket versioning not working?

Ever enabled S3 versioning but noticed it’s not working as expected? I’ve been there. Here how I would troubleshoot it: 1️⃣ Ensure Versioning is Enabled – Go to S3 → Select your bucket → Properties → Check if versioning is enabled.– If it’s disabled, turn it on and test again. 2️⃣ Check Permissions – Go […]
How to Troubleshoot Terraform

When working with Terraform, you might run into four types of issues: language, state, core, and provider errors. Understanding these error types will allow you to troubleshoot terraform issues and keep your infrastructure running smoothly. Here’s what each one means and how they can affect your workflow: – Language Errors: Terraform uses HashiCorp Configuration Language […]
How To Troubleshoot AWS When You Can’t SSH into an Amazon EC2 Instance.

This is one of the most common issues in AWS. Here’s how I would troubleshoot it: 1️⃣ Verify the security group allows SSH (port 22) – Check the security group attached to your EC2 instance.– Ensure there’s an inbound rule allowing traffic on port 22 from your IP address. 2️⃣ Check if the instance has […]
How To Troubleshoot AWS Lambda Timeout Errors?

Wanna be good at AWS? Learn to build, but also learn to fix things when they break. Lambda timeouts are a common issue that can break your serverless workflows. Here’s how I would troubleshoot it: 1️⃣ Check the function’s timeout settings – Navigate to Lambda → Function → Configuration → General settings.– The default timeout […]