aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/make_layer_zip.sh
diff options
context:
space:
mode:
authorAlex <git@ajschof.me>2024-09-03 16:04:29 +0100
committerGitHub <noreply@github.com>2024-09-03 16:04:29 +0100
commit3b8e89968e3d3d3527ea76b4517b0d7278512530 (patch)
tree260ccf35513de95dad1efd32dab9c131ed654e2a /scripts/make_layer_zip.sh
parent0ea5d83634c1739107664d158068878c49c5a146 (diff)
parent904c75c88b9eb2a5f28b5fc737d253f70196a17b (diff)
downloadde-project-bentley-3b8e89968e3d3d3527ea76b4517b0d7278512530.tar.gz
de-project-bentley-3b8e89968e3d3d3527ea76b4517b0d7278512530.zip
Merge pull request #115 from ajschofield/a-a/fix-tf-again
pr: merge a-a/fix-tf-again into development
Diffstat (limited to 'scripts/make_layer_zip.sh')
-rwxr-xr-xscripts/make_layer_zip.sh17
1 files changed, 13 insertions, 4 deletions
diff --git a/scripts/make_layer_zip.sh b/scripts/make_layer_zip.sh
index eabe301..7f64873 100755
--- a/scripts/make_layer_zip.sh
+++ b/scripts/make_layer_zip.sh
@@ -1,8 +1,17 @@
-# Description: Make the zip file for the layer
+# Description: Make the zip file for the layer for the extract lambda function
cd "$(dirname "$0")/.."
+
+# Layer 01
+mkdir -p python/lib/python3.11/site-packages
+pip3 install --upgrade -r requirements_lambda_01.txt -t python/lib/python3.11/site-packages
+rm layer_01.zip
+zip -r layer_01.zip python
+rm -r python/
+
+# Layer 02
mkdir -p python/lib/python3.11/site-packages
-pip3 install --upgrade -r requirements.txt -t python/lib/python3.11/site-packages
-rm layer.zip
-zip -r layer.zip python
+pip3 install --upgrade -r requirements_lambda_02.txt -t python/lib/python3.11/site-packages
+rm layer_02.zip
+zip -r layer_02.zip python
rm -r python/
git.ajschof.me — hosted by ajschofield — powered by cgit