github.com/muratcelep/terraform@v1.1.0-beta2-not-internal-4/website/docs/language/functions/abspath.html.md (about)

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