Process Flow - Comments in HCL
Start reading HCL file
Encounter # or //?
Yes→Ignore rest of line
No
Encounter /*?
Yes→Ignore until */ found
No
Process code normally
End of file
Terraform reads the file line by line, ignoring text after # or // on a line, or between /* and */ for block comments, then processes the rest as code.