Emulator
local_test.py
Starts the matching cloud emulator via Docker Compose, sets the correct environment variables, and runs terraform plan against the emulator to validate your infrastructure code without real cloud credentials or costs.
What it does
Checks if the emulator container is already running and starts it if not. Then sets the appropriate environment variables and runs terraform init + terraform plan pointed at the emulator endpoint.
CLI Usage
Emulators
Start an emulator manually before running the tool:
AWS Environment Variables (Set Automatically)
Pro tip
Use tflocal (LocalStack's Terraform wrapper) instead of plain terraform for more accurate AWS emulation. Install with pip install terraform-local.