It seems like this could be useful for automation as the stored plan objects are needed to ensure a consistent state is applied. Failure is caused by the lack of leading and trailing character sequences that are only emitted at the time the plan is first ran.
For now I have worked around this by doing:
echo "\nTerraform will perform the following actions:\n $(terraform show -no-color tfplan) \nPlan:" | parse-terraform-plan
It seems like this could be useful for automation as the stored plan objects are needed to ensure a consistent state is applied. Failure is caused by the lack of leading and trailing character sequences that are only emitted at the time the plan is first ran.
For now I have worked around this by doing: