Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> You can feed JSON to Terraform however this falls over if you need dependencies for output values

This is what I've started doing with Jsonnet for generation, and also exactly why I've stopped doing it.



I'm not sure I follow exactly what you're missing. `${aws_instance.example.x}` as a string value creates the same dependency as it would via HCL when used with JSON.


Same here, I don't see how outputs is being treated any differently by Terraform than any other .tf file written in HCL. I'm not saying it's not possible, but I haven't experienced a failure more there yet.


Thanks for the hint, now I'm not sure what went wrong when I tried something like this. I should read up on this more.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: