Add additional output variables to Terraform Plan step stating if changes required
Terraform plan step currently only outputs "TerraformPlanOutput", however this always has values and is not easy to run conditional steps upon.
When running terraform with the --detailed-exitcode (https://www.terraform.io/docs/commands/plan.html#detailed-exitcode), you're able to determine if there is a change required.
It'd be good to output this as an output variable.
Specifically, my use case is that if there are terraform changes required I want to require manual intervention (and send a slack message) for the plan to be approved. If no changes required then don't require intervention, don't run plan, dont send slack notification.

-
Anonymous commented
For future readers, this appears to be implemented.
I'm running OD 2019.12.4 and there is an output variable of "TerraformPlanDetailedExitCode", so you can then do a run condition on other steps like
#{if Octopus.Action[Plan Terraform].Output.TerraformPlanDetailedExitCode == "2"}true#{/if}
NOTE: The value is a string, hence "2"