Skip to content

Commit

Permalink
Merge pull request #5214 from hashicorp/phinze/doc-file-path-info
Browse files Browse the repository at this point in the history
website: clarify `file()` base location
  • Loading branch information
phinze committed Feb 19, 2016
2 parents c284f43 + a7b8a54 commit 92dc20b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion website/source/docs/configuration/interpolation.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ The supported built-in functions are:

* `file(path)` - Reads the contents of a file into the string. Variables
in this file are _not_ interpolated. The contents of the file are
read as-is.
read as-is. The `path` is interpreted relative to the working directory.
[Path variables](#path-variables) can be used to reference paths relative
to other base locations. For example, when using `file()` from inside a
module, you generally want to make the path relative to the module base,
like this: `file("${path.module}/file")`.

* `format(format, args...)` - Formats a string according to the given
format. The syntax for the format is standard `sprintf` syntax.
Expand Down

0 comments on commit 92dc20b

Please sign in to comment.