clear-lambda-storage
clear-lambda-storage copied to clipboard
Does not run
16:26 $ pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: boto3 in /home/tchiverton/.local/lib/python3.10/site-packages (from -r requirements.txt (line 1)) (1.24.88)
Requirement already satisfied: jmespath<2.0.0,>=0.7.1 in /home/tchiverton/.local/lib/python3.10/site-packages (from boto3->-r requirements.txt (line 1)) (0.10.0)
Requirement already satisfied: botocore<1.28.0,>=1.27.88 in /home/tchiverton/.local/lib/python3.10/site-packages (from boto3->-r requirements.txt (line 1)) (1.27.96)
Requirement already satisfied: s3transfer<0.7.0,>=0.6.0 in /home/tchiverton/.local/lib/python3.10/site-packages (from boto3->-r requirements.txt (line 1)) (0.6.0)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /usr/lib/python3/dist-packages (from botocore<1.28.0,>=1.27.88->boto3->-r requirements.txt (line 1)) (2.8.1)
Requirement already satisfied: urllib3<1.27,>=1.25.4 in /usr/lib/python3/dist-packages (from botocore<1.28.0,>=1.27.88->boto3->-r requirements.txt (line 1)) (1.26.5)
~/workspace/clear-lambda-storage [master|✔ ]
16:26 $ python clear_lambda_storage.py --profile-id serverless-dev --num-to-keep 10
File "clear_lambda_storage.py", line 68
yield lambda_function
SyntaxError: 'return' with argument inside generator
Ubuntu 22.04 LTS
I could not reproduce it. Maybe you can get to here: https://github.com/epsagon/clear-lambda-storage/blob/master/clear_lambda_storage.py#L62
And comment out this line, and try again?