mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-18 10:01:56 +00:00
9ca1899ebf
Co-authored-by: Daniel Barranquero <danielbo2001@gmail.com> Co-authored-by: Andoni Alonso <14891798+andoniaf@users.noreply.github.com>
33 lines
938 B
Markdown
33 lines
938 B
Markdown
# Sending Reports to an AWS S3 Bucket
|
||
|
||
To save reports directly in an S3 bucket, use: `-B`/`--output-bucket`.
|
||
|
||
```sh
|
||
prowler aws -B my-bucket
|
||
```
|
||
|
||
### Custom Folder and Filename
|
||
|
||
For a custom folder and/or filename, specify: `-o`/`--output-directory` and/or `-F`/`--output-filename`.
|
||
|
||
```sh
|
||
prowler aws \
|
||
-B my-bucket \
|
||
--output-directory test-folder \
|
||
--output-filename output-filename
|
||
```
|
||
|
||
### Custom Output Formats
|
||
|
||
By default, Prowler sends HTML, JSON, and CSV output formats. To specify a single output format, use the `-M`/`--output-modes` flag.
|
||
|
||
```sh
|
||
prowler aws -M csv -B my-bucket
|
||
```
|
||
|
||
???+ note
|
||
If you prefer using the initial credentials instead of the assumed role credentials for uploading reports, use `-D`/`--output-bucket-no-assume` instead of `-B`/`--output-bucket`.
|
||
|
||
???+ warning
|
||
Ensure the credentials used have write permissions for the `s3:PutObject` where reports will be uploaded.
|