question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running checks against terraform state

See original GitHub issue

Is your feature request related to a problem? Please describe. For some features of terraform e.g. for_each, I would like to evaluate our custom checks against a terraform plan (in a pull request) and against the terraform state (after terraform apply and changes have been merged to our default branch). I can currently perform the custom checks against a terraform plan, but not a terraform state

Describe the solution you’d like Support terraform state (in json format), similar to how a Terraform plan is supported

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
schosterbarakcommented, May 5, 2021

Hmm. interesting. would you mind sharing an anonymized state (without sensitive data ) for testing purposes?

0reactions
stale[bot]commented, Jul 9, 2022

Closing issue due to inactivity. If you feel this is in error, please re-open, or reach out to the community via slack: https://slack.bridgecrew.io Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Run States and Stages - Terraform Cloud
Each run passes through several stages of action (pending, plan, cost estimation, policy check, apply, and completion), and Terraform Cloud shows the progress ......
Read more >
Managing Terraform State - Best Practices & Examples
Learn how to manage Terraform State. See best practices for storing, organizing, and isolating your state files.
Read more >
How to manage Terraform state - Gruntwork Blog
A Terraform backend determines how Terraform loads and stores state. The default backend, which you've been using this entire time, is the local...
Read more >
7 Terraform Security Best Practices - Cycode
Running pre-apply checks in an automated pipeline helps ensure that an apply action will not cause regressions in security; this is done by...
Read more >
The Ultimate Terraform Commands Cheat Sheet - A Cloud Guru
Another good way to check your work is to use the state command. If you use state and then the subcommand list ,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found