Chaining outputs without defining them at the bundle level #2230
Answered
by
carolynvs
tamirkamara
asked this question in
Q&A
-
Hi, Is there a way to use one step's outputs in a following one without defining those as bundle level outputs? Something similar to this: myaction:
- terraform:
description: "1 get some outputs"
arguments:
- "output"
vars:
...
backendConfig:
...
outputs:
- name: some_var
- exec:
description: "2 use outputs"
command: ./1.sh
arguments:
- "{{ bundle.actions.myaction[0].outputs.some_var }}" |
Beta Was this translation helpful? Give feedback.
Answered by
carolynvs
Jul 6, 2022
Replies: 1 comment
-
Yup! You don't need to declare bundle level outputs. The syntax is the same whether you are referencing a bundle level or step level output. So in the example above, use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tamirkamara
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yup! You don't need to declare bundle level outputs. The syntax is the same whether you are referencing a bundle level or step level output.
So in the example above, use
bundle.outputs.some_var
in the exec mixin's arguments.