Update references.mdx

This commit is contained in:
Alisdair McDiarmid 2022-08-17 09:02:37 -04:00 committed by GitHub
parent d7377ca141
commit 81b50892ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,11 +127,12 @@ The following values are available:
the data in `path.module` during each call. This can lead to race conditions and
unexpected results.
- `path.root` is the filesystem path of the root module of the configuration.
* `path.cwd` is the filesystem path of the current working directory. This is
an absolute path which includes details about the filesystem structure,
and is useful in some advanced cases where Terraform is run from a directory
other than the root module directory. We recommend using `path.root` or
`path.module` over `path.cwd` where possible.
- `path.cwd` is the filesystem path of the original working directory from where you
ran Terraform before applying any `-chdir` argument. This path is an absolute path
that includes details about the filesystem structure. It is also useful in some
advanced cases where Terraform is run from a directory other than the root module
directory. We recommend using `path.root` or `path.module` over `path.cwd` where
possible.
- `terraform.workspace` is the name of the currently selected
[workspace](/language/state/workspaces).