github.com/hugorut/terraform@v1.1.3/website/docs/language/functions/abspath.mdx (about) 1 --- 2 page_title: abspath - Functions - Configuration Language 3 description: The abspath function converts the argument to an absolute filesystem path. 4 --- 5 6 # `abspath` Function 7 8 `abspath` takes a string containing a filesystem path and converts it 9 to an absolute path. That is, if the path is not absolute, it will be joined 10 with the current working directory. 11 12 Referring directly to filesystem paths in resource arguments may cause 13 spurious diffs if the same configuration is applied from multiple systems or on 14 different host operating systems. We recommend using filesystem paths only 15 for transient values, such as the argument to [`file`](/language/functions/file) (where 16 only the contents are then stored) or in `connection` and `provisioner` blocks. 17 18 ## Examples 19 20 ``` 21 > abspath(path.root) 22 /home/user/some/terraform/root 23 ```