AcademyWorld Builder: Infrastructure as CodeThe Blueprint (Foundations)

Module 1: The Blueprint

Welcome, Architect. You've mastered the cloud manually, but a true professional never clicks buttons. We write Code to build worlds.

Tactical Intel: What is Terraform?

Terraform is your World Builder. You write your architecture in a file, and Terraform makes it real.

Step 1: The Local Link

Normally, Terraform talks to the real Amazon API. But for this mission, we are working in a Shadow Environment. We need to tell Terraform to talk to our local simulator instead.

Mission: Create a file named main.tf and paste this "Override" block:

provider "aws" {
  region                      = "us-east-1"
  access_key                  = "test"
  secret_key                  = "test"
  skip_credentials_validation = true
  skip_requesting_account_id  = true

  endpoints {
    s3 = "http://ls-test-aws:4566"
  }
}

Step 2: Boot the Engine

Run terraform init. This downloads the "AWS Driver" so Terraform knows how to build Amazon resources.

booting...

Mission Control

Configure the Provider

Expected Command

grep 'endpoints' main.tf

Initialize Terraform