Skip to content

Commit

Permalink
update description of the remotestate function
Browse files Browse the repository at this point in the history
  • Loading branch information
anastyakulyk committed Sep 25, 2024
1 parent a36a6a3 commit 8bb6a4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/stack-templates-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ Rendered stack template:

Pass data across units and stacks, can be used in pre/post hooks.

!!! Important

The function can take input only from Terraform-based units, i.e. Tfmodule, Kubernetes, Helm, and Printer.

**Argument**: string, path to remote state consisting of 3 parts separated by a dot: `"stack_name.unit_name.output_name"`. Since the name of the stack is unknown inside the stack template, you can use "this" instead:`"this.unit_name.output_name"`.

The `remoteState` function is integrated with the `yaml` syntax and can be used in following cases:
Expand Down

0 comments on commit 8bb6a4c

Please sign in to comment.