terraform-example-foundation
terraform-example-foundation copied to clipboard
terraform plan truncated in github actions comments
TL;DR
The terraform plan generated in GitHub Actions is often truncated when the comment is posted to a PR. This is because the comment is posting the stdout for all environments not just the plan generated by terraform.
Expected behavior
Log the terraform plan as a separate text file for each environment and then use those files to create 1 comment per environment on the PR.
Observed behavior
One comment is created on the PR for all environments. This comment includes unnecessary logs related to the init which uses characters that could have been reserved for the plan.
Terraform Configuration
n/a
Terraform Version
n/a
Additional information
No response
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
Still open
Fixed in #1129