Files
prowler/docs/tutorials/mongodbatlas/getting-started-mongodbatlas.md
T

929 B

Getting Started with MongoDB Atlas

Prowler CLI

Authentication Methods

Command-Line Arguments

prowler mongodbatlas --atlas-public-key <public_key> --atlas-private-key <private_key>

Environment Variables

export ATLAS_PUBLIC_KEY=<public_key>
export ATLAS_PRIVATE_KEY=<private_key>
prowler mongodbatlas

Scan All Projects and Clusters

After storing API keys, run Prowler with the following command:

prowler mongodbatlas --atlas-public-key <key> --atlas-private-key <secret>

Alternatively, set API keys as environment variables:

export ATLAS_PUBLIC_KEY=<key>
export ATLAS_PRIVATE_KEY=<secret>

Then run Prowler with the following command:

prowler mongodbatlas

Scanning a Specific Project

To scan a specific project, add the following argument to the command above:

prowler mongodbatlas --atlas-project-id <project-id>