From 81b50892ed45b9959d94ec706bce4a1452450631 Mon Sep 17 00:00:00 2001 From: Alisdair McDiarmid Date: Wed, 17 Aug 2022 09:02:37 -0400 Subject: [PATCH] Update references.mdx --- website/docs/language/expressions/references.mdx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/website/docs/language/expressions/references.mdx b/website/docs/language/expressions/references.mdx index 13dad69c85..75b3bc41bb 100644 --- a/website/docs/language/expressions/references.mdx +++ b/website/docs/language/expressions/references.mdx @@ -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).