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

[BUG] Validate after_unknown attribute with terraform plan #420

Open
martingaleano opened this issue Mar 25, 2024 · 0 comments
Open

[BUG] Validate after_unknown attribute with terraform plan #420

martingaleano opened this issue Mar 25, 2024 · 0 comments

Comments

@martingaleano
Copy link

martingaleano commented Mar 25, 2024

Describe the bug
When I run the validation, conftest returns a Failure result because it's not validating with after_unknown attribute in JSON terraform plan.
If I move manually some attribute inside that block to planned_values block, it works successfully. I don't know why conftest/OPA is not including after_unknown block

How you're running Regula

I'm running this command

docker run --rm -v $(pwd):/project openpolicyagent/conftest test tfplan33.json --output table

using the policies located in this repository.
Operating System
Ubuntu 22

Steps to reproduce
A minimal set of steps that we can use to reproduce the issue. You can exclude this section if you already covered it in the "How you're running Regula" section above.

IaC Configuration
The common tf plan, the result of:

terraform plan -out=tfplan
terraform show -json ./tfplan > tfplan33.json

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

No branches or pull requests

1 participant