Question: Difference between pluralith plan and terraform plan?
Hi there, just started using the CLI on linux and had a question that I couldn't find an answer to in the documentation:
I'm unclear on the behavior of pluralith plan. It appears that it runs both a plan and then prompts for a subsequent apply. This differs from the Terraform behavior for CLI actions sharing the same names. IE, terraform plan does not also call terraform apply, it requires me to explicitly call apply if that is my intention.
So, does the prompted apply after a plan in Pluralith's context mean the same as terraform apply?
Thanks in advance
Hi @jamesearl
Yeah, the apply prompted after a plan is a regular terraform apply. Our train of thought was since we always have to generate an execution plan anyway (no matter if the user runs pluralith plan or pluralith apply) we might as well always give the option to directly apply.
You are, however, correct. That is a break of pattern with regards to the way terraform is run and it can be quite confusing. We'll be removing the apply prompt on pluralith plan to avoid that in the future.