Open cdelgehier opened 1 year ago
Hi, I was thinking that collection of plans can be done through hooks, but it will require some scripting to search and collect plan files
Hi,
Thank you for the answer.
Honestly I don't understand the idea for the hooks?
You want to make a hook to zip all ./app1 ?
Archive it on the jenkins master then terragrunt run-all apply tgplan
?
If so, why make a hook? Eventually a sh
in the pipeline can do it.
I have looked at the code, but I am not sure that terragrunt run-all apply tgplan
applies specifically this plan. In any case, the console output does not show it.
Any update on this question. I'm struggling to run-all apply
Trying to solve the same problem.
In CI we need to run plan firstly and if it passes apply ready binary files from previous operation.
As per my understanding it is not supported yet.
Also using run-all
with -out
in case of multiple submodules simply override previous leaving just latest.
So far I've came is to generate individual binaries with the following hook:
terraform {
extra_arguments "generate_plan_binary" {
commands = ["plan"]
arguments = ["--out=${get_terragrunt_dir()}/${basename(get_terragrunt_dir())}.plan.bin"]
}
}
How to apply them intelligently remains open for me.
Short
After preparing a plan with
terragrunt run-all plan -out tgplan
, I would like apply exactly the plan generated previously withterragrunt run-all apply tgplan
.Detailed
I prepare a pipeline generates a plan and waits for the validation of some key users to apply this plan. Previously I did a similar thing with terraform:
Expected