Process Flow - File functions (file, templatefile)
Start Terraform config
Call file() function
Read file content as string
Call templatefile() function
Read template file
Replace placeholders with variables
Return final string
Use string in resource or output
Terraform reads a file as a string with file(), or reads a template file and replaces variables with templatefile(), then uses the result in configuration.