mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-23 20:42:02 +00:00
54 lines
944 B
Plaintext
54 lines
944 B
Plaintext
---
|
|
title: 'Getting Started with MongoDB Atlas'
|
|
---
|
|
|
|
## Prowler CLI
|
|
|
|
### Authentication Methods
|
|
|
|
#### Command-Line Arguments
|
|
|
|
|
|
```bash
|
|
prowler mongodbatlas --atlas-public-key <public_key> --atlas-private-key <private_key>
|
|
```
|
|
|
|
#### Environment Variables
|
|
|
|
```bash
|
|
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:
|
|
|
|
```bash
|
|
prowler mongodbatlas --atlas-public-key <key> --atlas-private-key <secret>
|
|
```
|
|
|
|
Alternatively, set API keys as environment variables:
|
|
|
|
```bash
|
|
export ATLAS_PUBLIC_KEY=<key>
|
|
export ATLAS_PRIVATE_KEY=<secret>
|
|
```
|
|
|
|
Then run Prowler with the following command:
|
|
|
|
```bash
|
|
prowler mongodbatlas
|
|
```
|
|
|
|
### Scanning a Specific Project
|
|
|
|
To scan a specific project, add the following argument to the command above:
|
|
|
|
```bash
|
|
prowler mongodbatlas --atlas-project-id <project-id>
|
|
```
|