Skip to content

Expose variables from terraform plan #7396

@nurdann

Description

@nurdann

Describe the feature

Terraform plan provides variables key which currently cannot read from BaseResourceCheck.scan_resource_conf

Examples

{
  "format_version": "1.0",
  "terraform_version": "1.0.0",
  "variables": {
    "account": {
      "value": "dev"
    }
   },
   ...
}

Additional context

Would it be possible to read variables that are in the plan file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    contribution requestedThis is a great feature idea, but we will need a contribution to get it added to Checkov.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions