-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
35 lines (32 loc) · 905 Bytes
/
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
28
29
30
31
32
33
34
35
version: 0.2
proxy:
logs: yes
phases:
install:
runtime-versions:
python: 3.9
pre_build:
commands:
- pip3.9 install --target ./package pip install requests-aws4auth opensearch-py
- cd package
- zip -r ../LF1_deployment.zip .
- cd ..
- rm -r package
- pip3.9 install --target ./package pip install requests-aws4auth opensearch-py inflection
- cd package
- zip -r ../LF2_deployment.zip .
- cd ..
- mv LF1.py lambda_function.py
- zip LF1_deployment.zip lambda_function.py
- mv lambda_function.py LF1.py
- mv LF2.py lambda_function.py
- zip LF2_deployment.zip lambda_function.py
- mv lambda_function.py LF2.py
- mv buildspec.yml buildspec_orig.yml
- mv deploy.yml buildspec.yml
artifacts:
files:
- LF1_deployment.zip
- LF2_deployment.zip
- buildspec.yml
name: lambdas