---
title: "Discussion on \"Building a Three Tier AWS Architecture with Terraform From Scratch\" | Hashnode"
description: "Discussion on \"Building a Three Tier AWS Architecture with Terraform From Scratch\". I wanted to stop consuming Terraform modules and start writing them. The best way I know how to learn something is to build something real, break it, fix it, and understand why it works. So I sat down and built a full three tier AWS architecture from scratch, no copy paste, no AI, just me, the Terraform docs, and a lot of errors.\n\nHere is what I ended up with and what I learned along the way."
url: "https://hashnode.com/posts/building-a-three-tier-aws-architecture-with-terraform-from-scratch/6a0e124e8b03460221ae87f7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Building a Three Tier AWS Architecture with Terraform From Scratch](https://blog.lalitbagga.com/building-a-three-tier-aws-architecture-with-terraform-from-scratch?utm_source=hashnode&utm_medium=feed)

I wanted to stop consuming Terraform modules and start writing them. The best way I know how to learn something is to build something real, break it, fix it, and understand why it works. So I sat down and built a full three tier AWS architecture from scratch, no copy paste, no AI, just me, the Terraform docs, and a lot of errors. Here is what I ended up with and what I learned along the way.

May 20 · 10 min read · blog.lalitbagga.com  
Read the article

-   [#aws](https://hashnode.com/tag/aws)
-   [#terraform](https://hashnode.com/tag/terraform)
-   [#serverless](https://hashnode.com/tag/serverless)
-   [#devops](https://hashnode.com/tag/devops)
-   [#infrastructure-as-code](https://hashnode.com/tag/infrastructure-as-code)

## Written by

[Lalit Bagga](https://hashnode.com/@lbagga)

@lbagga

  
[View profile](https://hashnode.com/@lbagga)

Software Engineer at Bayer transitioning into Cloud and DevOps engineering, with 8+ years of software development experience across mobile and web. Currently working hands-on with AWS infrastructure, Terraform, and Kubernetes in a production environment. ⚙️ Technical Foundation AWS Certified Solutions Architect Associate and Cloud Practitioner, currently pursuing HashiCorp Terraform Associate, with hands-on focus on: - Infrastructure as Code (Terraform, Helm) - CI/CD pipelines (GitHub Actions, OIDC-based AWS authentication) - Container orchestration (AWS EKS, Kubernetes) - Serverless architecture (Lambda, S3, SNS, SQS, API Gateway) At Bayer I work alongside senior infrastructure engineers on production AWS EKS deployments, writing Terraform for real infrastructure, and building automated pipelines. Open to connecting with cloud professionals and exploring Cloud Engineer, DevOps Engineer, and Platform Engineer opportunities in Ottawa and remote. 🤝

## Responses 2

Markdown supported · ⌘↵ to post

[Bhavin Sheth](https://hashnode.com/@allinonetools)

[May 21](https://hashnode.com/posts/building-a-three-tier-aws-architecture-with-terraform-from-scratch/6a0e124e8b03460221ae87f7/comment/6a0e897f8b03460221e7600f)

Really liked that you showed the mistakes too — that’s the part most tutorials skip. Building flat first and modularizing later is such an underrated way to actually understand Terraform.
