HN.zip

Testing Terraform with AWS Emulator

45 points by - 4 comments
[3 hidden]5 mins ago
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.
[3 hidden]5 mins ago
The problem with full e2e tests for Terraform is that they are 1. Extremely slow 2. Can be expensive.

LocalStack and hopefully the new AWS Emulator can give you a fairly high degree of confidence.

[3 hidden]5 mins ago
Agreed. We also have a fair amount of TF testing involving IAM to make sure we get permissions right which the emulator doesn’t emulate at all unfortunately.
[3 hidden]5 mins ago
Nice. Now for GCP to also release such a tool