Skip to main content

Installing Prowler CLI in AWS CloudShell

AWS CloudShell runs on Amazon Linux 2023 [1] [2], which ships Python 3.9 as the system interpreter. Prowler CLI requires Python 3.10 or later, so the system Python cannot install current releases. To install Prowler CLI in AWS CloudShell, use uv, which downloads a supported Python version without changing the system interpreter:
The dedicated prowler user keeps the installation out of the AWS CloudShell home directory, which is limited to 1 GB of storage. The installation is removed when the AWS CloudShell session ends, so repeat these steps in each new session. To upgrade Prowler CLI within the same session, run uv tool upgrade prowler.

Downloading Files from AWS CloudShell

To download results from AWS CloudShell:
  • Select Actions → Download File.
  • Specify the full file path of each file you wish to download. For example, downloading a CSV file would require providing its complete path, as in: /tmp/output/prowler-output-123456789012-20221220191331.csv

Cloning Prowler from GitHub

Due to the limited storage in AWS CloudShell’s home directory, installing uv dependencies for running Prowler from GitHub can be problematic. The following workaround ensures successful installation: