
lab: terraform final production grade
1. Lab order Follow this exact order: Phase A — Build repo locally Create folders Paste Terraform files Bootstrap backend locally: S3 bucket for state DynamoDB lock table Update backend config files Test dev locally Phase B — Prepare GitHub + AWS trust Create GitHub repo Push code Configure AWS OIDC provider Create IAM role for GitHub Actions Add GitHub secret and variable 🔵 STEP 1 — Create GitHub Repository Go to: 👉 GitHub Click: New repository Fill: Repository name : terraform-platform Visibility : Public or Private (your choice) Click: ✅ Create repository 🔵 STEP 2 — Push your code On your Mac (inside project folder): git init git add . git commit -m "initial terraform platform" git branch -M main git remote add origin https://github.com/YOUR_USERNAME/terraform-platform.git git push -u origin main Now your repo is live. 🔴 STEP 3 — Configure AWS OIDC Provider (VERY IMPORTANT) This allows GitHub → AWS without access keys. Go to: 👉 AWS Management Console 👉 IAM → Identity providers Click
Continue reading on Dev.to Tutorial
Opens in a new tab



