Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform plan before apply #17090

Open
devopsmatt opened this issue Jan 16, 2025 · 0 comments
Open

Terraform plan before apply #17090

devopsmatt opened this issue Jan 16, 2025 · 0 comments
Assignees
Labels
DevSecOps Team Aq DevSecOps work label reportstream terraform Pull requests that update Terraform code

Comments

@devopsmatt
Copy link
Collaborator

The TF GHA currently uses terraform-stats to produce drift output.
We want to see the terraform plan output before terraform apply is run.

To get there, we want to add a step that runs terraform plan -out=tf.plan here

Then modify the step that runs terraform apply to use the tf.plan plan file.

Bonus, optional - the plan is sent to Slack's notifications channel

DoD: PR with updated github actions in the repo.

@devopsmatt devopsmatt added DevSecOps Team Aq DevSecOps work label reportstream terraform Pull requests that update Terraform code labels Jan 16, 2025
@bethbeza bethbeza self-assigned this Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DevSecOps Team Aq DevSecOps work label reportstream terraform Pull requests that update Terraform code
Projects
None yet
Development

No branches or pull requests

2 participants