Skip to content

Fix plan output parsing for Terraform 1.14+#1661

Merged
james00012 merged 1 commit intomainfrom
fix/terraform-1.14-plan-parsing
Feb 2, 2026
Merged

Fix plan output parsing for Terraform 1.14+#1661
james00012 merged 1 commit intomainfrom
fix/terraform-1.14-plan-parsing

Conversation

@james00012
Copy link
Copy Markdown
Contributor

Summary

  • Fix GetResourceCount failing to parse Terraform 1.14+ plan output
  • Remove trailing \. requirement from planWithChangesRegexp regex

Background

Terraform 1.14 introduced Actions, which can append . Actions: N to invoke. to the plan summary line. The previous regex required a period immediately after "destroy", causing parsing to fail.

Fixes #1660

Test plan

  • Existing TestGetResourceCountEColor and TestGetResourceCountENoColor tests pass
  • Verified regex matches both old and new output formats

Remove trailing period requirement from planWithChangesRegexp to support
Terraform 1.14's new Actions feature which appends additional text after
the destroy count.

Fixes #1660
@james00012 james00012 merged commit 9196c66 into main Feb 2, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't parse Terraform output - terraform version

2 participants