From 2437fe270c99bfc2e3558ee03b0dffabe9c3f3e6 Mon Sep 17 00:00:00 2001 From: Pepe Fagoaga Date: Wed, 13 Dec 2023 17:19:30 +0100 Subject: [PATCH] docs(cloudshell): Add workaround to clone from github (#3190) --- docs/tutorials/aws/cloudshell.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/docs/tutorials/aws/cloudshell.md b/docs/tutorials/aws/cloudshell.md index bd4b77cf..97dbe70c 100644 --- a/docs/tutorials/aws/cloudshell.md +++ b/docs/tutorials/aws/cloudshell.md @@ -11,7 +11,7 @@ cd Python-3.9.16/ ./configure --enable-optimizations sudo make altinstall python3.9 --version -cd +cd ``` - Once Python 3.9 is available we can install Prowler from pip: ``` @@ -20,7 +20,20 @@ pip3.9 install prowler - Now enjoy Prowler: ``` prowler -v -prowler +prowler ``` -- To download the results from AWS CloudShell, select Actions -> Download File and add the full path of each file. For the CSV file it will be something like `/home/cloudshell-user/output/prowler-output-123456789012-20221220191331.csv` \ No newline at end of file +- To download the results from AWS CloudShell, select Actions -> Download File and add the full path of each file. For the CSV file it will be something like `/home/cloudshell-user/output/prowler-output-123456789012-20221220191331.csv` + +## Clone the Prowler Github Repository in CloudShell + +The limited storage that AWS CloudShell provides for the user's home directory causes issues when installing the poetry dependencies to run Prowler from GitHub. Here is a workaround: +```shell +git clone https://github.com/prowler-cloud/prowler.git +cd prowler +git checkout master +pip install poetry +mkdir /tmp/pypoetry +poetry config cache-dir /tmp/pypoetry +poetry shell +```