Posts

AWS with Terraform (Day 27)

Image
Automating AWS Infrastructure Using Terraform and GitHub Actions Infrastructure automation is where DevOps truly becomes real. Writing Terraform code is only half the story—the real value comes when infrastructure changes are version-controlled, reviewed, scanned, approved, and applied automatically . On Day 27 of my DevOps journey, I implemented a production-grade CI/CD pipeline to automate AWS infrastructure using Terraform and GitHub Actions , following best practices used in real-world teams. This blog walks through the architecture, workflow design, safety controls, and lessons learned . Why Automate Terraform with CI/CD? Running Terraform manually from a laptop works for learning, but it quickly breaks down in team and production environments: Local state files are risky and hard to share Credentials scattered across machines No standardized reviews or approvals No security or policy checks before apply No clear audit trail By integrating Terraform with G...

AWS with Terraform (Day 26)

Image
HCP Terraform Explained: Projects, Workspaces, and a Hands-On Demo Running Terraform from a laptop works well when you’re learning or managing a small setup. But as soon as you move into team environments or production systems , problems appear quickly—local state files, shared credentials, manual runs, and limited visibility. On Day 26 of my DevOps journey, I focused on HashiCorp Cloud Platform Terraform (Terraform Cloud) and how it solves these problems by adding centralized state, secure workflows, collaboration, and governance —without changing how Terraform itself works. This post explains what Terraform Cloud is, how its hierarchy works, and how to use it in real projects . What Is HashiCorp Cloud Platform Terraform Terraform Cloud is a managed, web-based service for running Terraform. It acts as a centralized orchestration layer on top of Terraform CLI and code. Terraform stays Terraform—you still write HCL, run plans, and apply changes. What Terraform Cloud adds is: ...

AWS with Terraform (Day 25)

Image
Terraform Import in AWS: Bringing Existing Resources Under Terraform Control In an ideal world, every AWS resource would be created by Terraform from day one. In reality, most environments contain legacy resources —VPCs, EC2 instances, security groups, IAM roles—created manually, by the console, or by older automation. On Day 25 of my DevOps journey, I focused on a critical real-world skill: bringing existing AWS resources under Terraform management using Terraform import . This is an essential capability for DevOps engineers working on migrations, brownfield environments, or recovering from lost Terraform state. Why Terraform Import Matters Terraform works best when it owns the full lifecycle of the infrastructure it manages. Import allows you to: Migrate manually created or legacy resources into Infrastructure as Code Recover when terraform.tfstate is lost or corrupted Onboard existing infrastructure into a new Terraform repository Standardize environments witho...

AWS with Terraform (Day 24)

Image
Highly Available and Scalable Architecture on AWS with Terraform A Production-Minded Two-Tier Design As a DevOps engineer, one of the most important skills is designing systems that don’t fail when things go wrong . High availability, fault tolerance, and scalability are not optional—they are baseline expectations in modern cloud environments. On Day 24 of my hands-on DevOps journey, I built and automated a highly available and scalable web application architecture on AWS using Terraform . The focus was not just “making it work,” but making it production-ready , secure, and resilient. This blog breaks down the architecture, traffic flow, Terraform structure, scaling strategy, and operational lessons from this project. Project Overview The goal of this project was to host a containerized web application on AWS with: High availability across multiple Availability Zones Backend instances fully private (no public IPs) Automated scaling based on demand Secure and contr...

AWS with Terraform (Day 23)

Image
End-to-End Observability on AWS Using Terraform A Real-World Serverless Project (Day 23 Completed) As a DevOps engineer, I’ve learned that building applications is only half the job . The real challenge begins when those applications are running in production. If you can’t observe your system—logs, metrics, alerts, failures—you’re flying blind. On Day 23  of my hands-on DevOps journey, I completed an end-to-end observability stack on AWS using Terraform for a real-world serverless image-processing application . This project focuses on building production-grade monitoring, logging, dashboards, alarms, and notifications , all fully automated and reproducible . This blog walks through what I built, why I built it, and how it works in practice . Project Overview: Serverless Image Processing Pipeline At the core of this project is a simple but realistic serverless workflow: A user uploads an image to an S3 upload bucket An AWS Lambda function is triggered The functio...