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.
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
Terraform Version
Additional information
No response