Name

file.current — Returns the name of the file currently being evaluated.

Synopsis

file.current

Description

Returns the name of the file currently being evaluated. For instance, if a file foobar.hcl is being sourceed, and there is a call to file.current in it, it will return the name of the file, foobar.hcl.