Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Terraform Plan Status does not fail workflow after Terraform 1.4 release #1081

Closed
audunsolemdal opened this issue Mar 18, 2023 · 3 comments
Closed

Comments

@audunsolemdal
Copy link

Previosuly the github action would fail if the terraform plan failed. After these changes it seems like some rewrites are needed, although it is not obvious what the fix would be

The Terraform plan renderer has been completely rewritten to aid with future Terraform Cloud integration. Users should not see any material change in the plan output between 1.3 and 1.4. If you notice any significant differences, or if Terraform fails to plan successfully due to rendering problems, please open a bug report issue.

Step which now fails

- name: Terraform Plan Status
  if: steps.plan.outcome == 'failure'
  run: exit 1

New output from plan step if tfplan fails:

Planning failed. Terraform encountered an error while generating this plan.
@judithpatudith
Copy link
Contributor

Thanks for the report! We're looking into it!

@audunsolemdal
Copy link
Author

@judithpatudith any status update on this?

@alanszlosek
Copy link
Contributor

Hi @audunsolemdal , we're no longer using this repo since we recently updated the tutorial and the GitHub Actions workflows it uses. Find the new one here: https://github.com/hashicorp-education/learn-terraform-github-actions

The tutorial and workflows have changed quite a bit, so hopefully the changes fix the issues you were having.

Which reminds me, I need to update this repo's readme to point folks to the new one. :-)

Thanks for reporting.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants