-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
27 lines (27 loc) · 1.06 KB
/
buildspec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
version: 0.2
phases:
install:
runtime-versions:
python: 3.11 #3.8
commands:
- echo "Installing dependencies..."
- echo "none tbh"
build:
commands:
- echo "Zipping deployment packages for lambdas..."\
#- cd lambdas/index-photos
- cd lambdas/index-photos
- zip -r9 deployment_index.zip * #lambdas/index-photos/*
- aws lambda update-function-code --function-name index-photos --zip-file fileb://deployment_index.zip
- echo "updated index-photos"
- cd ../..
#- ls
- cd lambdas/search-photos
- zip -r9 deployment_search.zip * #lambdas/search-photos/*
- aws lambda update-function-code --function-name search-photos --zip-file fileb://deployment_search.zip
- echo "updated search-photos"
#post_build:
# commands:
#- echo "Updating Lambda Functions..."
#- aws lambda update-function-code --function-name index-photos --zip-file fileb://deployment_index.zip
#- aws lambda update-function-code --function-name search-photos --zip-file fileb://deployment_search.zip