-
Hey team, thank you very much for working on this project - a big fan of your work! I wonder if you could help me with this issue. I am trying to setup Multiple Terraform Plan reports and pass state files between jobs in GitLab. I didn't manage to get this far as I got stuck on passing artefacts between the build and the deploy stages. So far my CI appears as follows, I am uncertain about how to pass the path to plan files to the
I dabbled with the use of eval but not sure where to go with it.
I know I could probably work around it by generating separate CI parent-child pipelines per stack, but was hoping I can achieve the same with a single Terramate command. Hope this question makes sense. Are there any examples you could point me to? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey @macalac Is there any problem with doing:
? The |
Beta Was this translation helpful? Give feedback.
-
Hey @i4ki and thanks for your time looking into this. I didn't ask the right question I think because I didn't understand the problem :) Apologies. I have a working pipeline and fixed my issue with passing artefacts by using globs
Now I am trying to save the
Can I redirect output per stack, rather than in the root directory? |
Beta Was this translation helpful? Give feedback.
Hi @macalac,
To answer your last question, whether it is possible to create an output per stack, you can do something like this:
I think the reason why it creates as single json plan from
terraform show
is because your shell is piping everything from yourterramate run
command intofile.plan.json
.I hope this gets you closer to your goal.