mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Update wording for 'path.cwd' to be explicit about implications
This commit is contained in:
parent
2f1a8bbbd8
commit
52d54b0a64
@ -121,10 +121,11 @@ to mark the reference as for a data resource.
|
||||
* `path.module` is the filesystem path of the module where the expression
|
||||
is placed.
|
||||
* `path.root` is the filesystem path of the root module of the configuration.
|
||||
* `path.cwd` is the filesystem path of the current working directory. In
|
||||
normal use of Terraform this is the same as `path.root`, but some advanced
|
||||
uses of Terraform run it from a directory other than the root module
|
||||
directory, causing these paths to be different.
|
||||
* `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.
|
||||
* `terraform.workspace` is the name of the currently selected
|
||||
[workspace](/language/state/workspaces).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user