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

[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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant