CSPM scanner

Last updated: Oct 28, 2026


For the common configuration file keys of all the scanners, read Use a configuration file.

Specific configuration file keys

The CSPM scanner has this key. Use it to do a cloud security posture management analysis of AWS environments.

cspm

This key has this configuration option:

  • aws_credentials (mandatory): A list of AWS role configurations to analyze. Each entry supports these fields:

    • role (mandatory): The AWS role ARN that the scan assumes.
    • external_id (optional): The external ID that is necessary to assume the role, when the trust policy of the IAM role has an external ID condition.

    The two fields support the ${VAR_NAME} syntax. Read the example.

Configuration file example

namespace: my_app
language: EN
output:
  file_path: /fluid-attacks-results.sarif
  format: SARIF
checks:
  - F005
cspm:
  aws_credentials:
    - role: arn:aws:iam::123456789012:role/MyRole
      external_id: my-external-id

Configuration file example with envars

namespace: my_app
language: EN
output:
  file_path: /fluid-attacks-results.sarif
  format: SARIF
checks:
  - F005
cspm:
  aws_credentials:
    - role: arn:aws:iam::123456789012:role/MyRole
      external_id: ${CSPM_AWS_EXTERNAL_ID}

On this page