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.