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

[BUG] Validate after_unknown attribute with terraform plan #420

@martingaleano

Description

@martingaleano

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions