terraform-plan-parser icon indicating copy to clipboard operation
terraform-plan-parser copied to clipboard

Parse terraform show output

Open scgodbold opened this issue 7 years ago • 1 comments

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

scgodbold avatar Dec 18 '18 20:12 scgodbold

+1 for this.

@scgodbold Thanks for the workaround

captn3m0 avatar Mar 31 '19 09:03 captn3m0