03. Reading History & Undoing Mistakes

So, you’ve been working away, adding files, & committing them locally. Everything is going great. But inevitably, things go wrong. You log in one morning, look at the script you updated late last night, & realize it completely broke the…

04. Branching, Merging & Conflicts

Up to now, our Git workflow has been a straight single line. You make a change, you commit it, & the history moves forward. That works perfectly if you’re the only person working & you never make a mistake or…

05. Remote Repo and Github

Up until now, every commit, branch, & revert we’ve done has stayed entirely inside your local laptop. See, if your hard drive crashes right now, your entire project history goes with it. The problem here is that we can’t just…

TFLAB28-Importing Existing Resources into Terraform

Importing Existing Resources into Terraform 🔧 Terraform Core ⭐ Intermediate import block terraform import -generate-config-out Scenario Your team created S3 buckets via the AWS console before adopting Terraform. Now you want to bring them under Terraform management without deleting and…

TFLAB08-Data Sources: Reading Existing Infrastructure

Data Sources: Reading Existing Infrastructure 🔧 Terraform Core ⭐ Beginner data aws_caller_identity aws_region aws_vpc Filters Read-Only Scenario Your configuration needs to reference infrastructure that already exists — the current AWS account ID, the current region, the default VPC ID. You…