Skip to content

atmos terraform generate plan should create JSON file #1172

@cfsb-jrose

Description

@cfsb-jrose

Describe the Feature

As a platform engineer, I need to scan the terraform plan using checkov. To do this, the plan must first be saved in JSON format.

Expected Behavior

N/A

Use Case

Security scan of the terraform plan

Describe Ideal Solution

atmos terraform generate plan should do the following:

terraform plan -out tf.plan
terraform show -json tf.plan | jq > tf.json

Alternatives Considered

  • custom sub-commands
  • custom workflows

Additional Context

https://www.checkov.io/7.Scan%20Examples/Terraform%20Plan%20Scanning.html
https://developer.hashicorp.com/terraform/cli/commands/show
https://sweetops.slack.com/archives/C031919U8A0/p1743093319696019

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