Testing Terraform with AWS Emulator

meysamazad 72 points 10 comments November 22, 2026
notes.hatedabamboo.me · View on Hacker News

Discussion Highlights (3 comments)

0xbadcafebee

The problem with testing with Terraform or any other tool is that the emulator won't accurately reflect real-world behavior. The real world services have a bunch of logic and code of them which isn't all replicated in the emulator. The only thing the emulator does is replicate the API. It's a bit like trying to build a model of a house by building the model to look like the outside of the house. Gives you an idea what it looks like, but working within that model is not going to be the same as working within the actual house.

whinvik

Nice. Now for GCP to also release such a tool

itintheory

> These mock calls can't know for a fact that you already have a resource in AWS called "my-bucket-asdasdasd" Doesn't seem like the AWS Emulator would know that either, unless it's connecting to real AWS... Also, bucket names are global, so it doesn't matter what you have, it's what anyone has.

Semantic search powered by Rivestack pgvector
3,874 stories · 35,194 chunks indexed