NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
▲Testing Terraform with AWS Emulator (notes.hatedabamboo.me)
0xbadcafebee 1 hours 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.
QGQBGdeZREunxLe 7 minutes 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.

ozarkerD 1 hours 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.
whinvik 38 minutes ago [-]
Nice. Now for GCP to also release such a tool
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 19:37:57 GMT+0000 (Coordinated Universal Time) with Vercel.