Open skakala opened 2 years ago
Hi,
AFAIK run_cmd
is evaluated when HCL is parsed so it is invoked in any case
Hi, thanks! - according to first example run_cmd is executed both at HCL parsing level, and then again at hook level, proper behaviour is at hook level. IMAO this should be marked as bug as well.
example 1: lets code 2 hooks in terraform block - separeta for plan and apply:
then run plan:
as You can see simple echo command was run 3 times (this was simplified example..)
The same is for extra_arguments
lets run terragrunt plan :
So run_cmd runs for "apply" command even if terragrunt plan only was invoked...