CLI Commands

cnspec integrate aws

Onboard an AWS account into Mondoo Platform for continuous scanning.

Connect your AWS environment to Mondoo Platform. Before you run the command, create an AWS user with read-only access and an access key for Mondoo. Then provide the access key and secret key as environment variables:

export TF_VAR_aws_access_key=ACCESS_KEY
export TF_VAR_aws_secret_key=SECRET_KEY
cnspec integrate aws

Choose the space, the directory for the generated Terraform code, and the integration name:

cnspec integrate aws --space SPACE_ID --output OUTPUT_DIR --integration-name NAME

Options

  -h, --help   help for aws

Options inherited from parent commands

      --api-proxy string          Set the proxy for communications with Mondoo Platform API
      --auto-update               Enable automatic provider installation and update (default true)
      --config string             Set config file path (default $HOME/.config/mondoo/mondoo.yml)
      --integration-name string   Set the name of the integration
      --log-level string          Set the log level: error, warn, info, debug, trace (default "info")
      --logging-config string     Path to a logging configuration file (YAML or JSON) that selects the log writer, level, and writer-specific options
      --output string             Set the location to write automation code
      --space string              Set the space to create the integration
      --strict                    Default MQL strict mode for policies that do not declare one: every link in an MQL chain must resolve
  -v, --verbose                   Enable verbose output

SEE ALSO

  • cnspec integrate - Onboard integrations for continuous scanning into the Mondoo Platform

On this page