Skip to content
Source: hatedabamboo notes

🧪AWS Launches Emulator So You Can Test Terraform Against Mock Infrastructure First

Test your Terraform before it touches real AWS

TL;DR

AWS shipped Emulator, a self-contained binary or Docker container that mimics real AWS API endpoints. Run your Terraform plan against it first, then apply to production. Fewer surprises, faster CI, and no test bills.

AWS just dropped a tool that lets you rehearse your infrastructure changes before they hit production. It's called Emulator, and it impersonates real AWS API endpoints so you can run Terraform against it locally or in CI. The workflow goes from Plan then Apply to Plan, Apply against mock infrastructure, then Apply for real. If you've ever pushed a Terraform change, watched it fail halfway, and then spent an afternoon untangling half-created resources, this is for you. You can now catch those errors on your laptop. It also kills the annoying cycle of creating a branch just to fix a typo in a config. Run it locally, iterate, and only touch real AWS when the plan actually works. A few details to know. It ships as a package-manager install or a Docker image, and it stops and removes itself cleanly when you're done. State lives in memory, so every container restart wipes your resources. Telemetry is on by default, but you can disable it with EMULATOR_TELEMETRY=off. Heads up: it listens on 0.0.0.0 and accepts unsigned requests unless you start it with -a on, and it uses a self-signed HTTPS cert, so keep it off shared networks.

AWS Launches Emulator So You Can Test Terraform Against Mock Infrastructure First — hatedabamboo notes

Key Points

1

Emulator runs as a self-contained binary or Docker container and serves HTTPS on port 9297 with a self-signed certificate, which clients must be configured to skip verifying.

Keep reading — it's free

Enter your email to keep reading — plus the best of AI & tech, daily. Free, forever.

Also get
or

Already a member? Sign in

AWSTerraformEmulatorCI/CDInfrastructure as Code

Comments

Subscribe to join the conversation...

Be the first to comment