File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ awslocal sns subscribe \
1414 --protocol email \
1515 --notification-endpoint my-email@example.com
1616
17+ (cd lambdas/presign; rm -f lambda.zip; zip lambda.zip handler.py)
1718awslocal lambda create-function \
1819 --function-name presign \
1920 --runtime python3.11 \
@@ -29,6 +30,7 @@ awslocal lambda create-function-url-config \
2930 --function-name presign \
3031 --auth-type NONE
3132
33+ (cd lambdas/list; rm -f lambda.zip; zip lambda.zip handler.py)
3234awslocal lambda create-function \
3335 --function-name list \
3436 --runtime python3.11 \
@@ -44,7 +46,15 @@ awslocal lambda create-function-url-config \
4446 --function-name list \
4547 --auth-type NONE
4648
47-
49+ (
50+ cd lambdas/resize
51+ rm -rf package lambda.zip
52+ mkdir package
53+ pip install -r requirements.txt -t package --platform manylinux2014_x86_64 --only-binary=:all:
54+ zip lambda.zip handler.py
55+ cd package
56+ zip -r ../lambda.zip * ;
57+ )
4858awslocal lambda create-function \
4959 --function-name resize \
5060 --runtime python3.11 \
You can’t perform that action at this time.
0 commit comments