Terraform File Template

To read a json file into terraform you can use template files. In the past I had done this with a data block and file command but that is no longer the recommended way. The template files command has two args the path to the file and a hashmap with variables in it.

To read in a json file that does not need to be parameterized it looks like this. template_file("file.json", {})