Localstack + tflocal for Dev

Localstack mocks AWS locally; tflocal is the Terraform wrapper.

Idea

tflocal runs Terraform against Localstack rather than real AWS. The dev loop pays no cloud cost; iteration is seconds not minutes; PR-time validation catches errors before they reach the real AWS apply.

Limits

The mock has gaps. Some AWS services are not covered; some behaviours are simplified. Final validation still needs real AWS in staging because production fidelity is not guaranteed.

Integrate

The CI integration is where tflocal pays off. Pre-flight tests catch Terraform errors before the real-AWS apply window opens.