migrate docs to mdx

This commit is contained in:
Dylan Staley
2021-11-22 15:47:36 -08:00
parent f63b6198ca
commit 3cb12b5a52
321 changed files with 4223 additions and 4602 deletions

View File

@@ -0,0 +1,24 @@
---
page_title: abspath - Functions - Configuration Language
description: The abspath function converts the argument to an absolute filesystem path.
sidebar_title: abspath
---
# `abspath` Function
`abspath` takes a string containing a filesystem path and converts it
to an absolute path. That is, if the path is not absolute, it will be joined
with the current working directory.
Referring directly to filesystem paths in resource arguments may cause
spurious diffs if the same configuration is applied from multiple systems or on
different host operating systems. We recommend using filesystem paths only
for transient values, such as the argument to [`file`](/language/functions/file) (where
only the contents are then stored) or in `connection` and `provisioner` blocks.
## Examples
```
> abspath(path.root)
/home/user/some/terraform/root
```