AWS Emulator Catches Terraform Apply Failures That Plan Misses

Testing Terraform with AWS Emulator

AWS Emulator Catches Terraform Apply Failures That Plan Misses

Terraform plan can pass while apply fails on real AWS API constraints, like a DynamoDB table name that's too short. AWS's new Emulator runs a self-contained local or CI endpoint that mimics AWS APIs, so you can apply against it before touching production. I tested it locally and in a GitHub Actions pipeline; it caught a deliberately broken resource in about 1m25s. It still lacks IAM policy checks and returns 501 for some services.

The exact issue that arises only against actual API calls and not during a plan job. For scenarios exactly like this, the emulator is priceless.

More from this day

2026-11-22