aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2024-08-29 17:46:33 +0100
committerAlex Schofield <git@ajschof.me>2024-08-29 17:46:33 +0100
commit62417b57133cc1c6df3efd89c247706a93e3f182 (patch)
tree3f20c9bb15c2ec2a0a426de8f1f0ee3f471eeaee /scripts
parentabcf3df1913507517f8e2401eb9a79033b755287 (diff)
downloadde-project-bentley-62417b57133cc1c6df3efd89c247706a93e3f182.tar.gz
de-project-bentley-62417b57133cc1c6df3efd89c247706a93e3f182.zip
infra(tf): restore make_layer_zip & add layer_01/layer_02 creation in same script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/make_layer_zip.sh17
-rwxr-xr-xscripts/make_layer_zip_01.sh8
-rwxr-xr-xscripts/make_layer_zip_02.sh9
3 files changed, 17 insertions, 17 deletions
diff --git a/scripts/make_layer_zip.sh b/scripts/make_layer_zip.sh
new file mode 100755
index 0000000..7f64873
--- /dev/null
+++ b/scripts/make_layer_zip.sh
@@ -0,0 +1,17 @@
+# 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_lambda_02.txt -t python/lib/python3.11/site-packages
+rm layer_02.zip
+zip -r layer_02.zip python
+rm -r python/
diff --git a/scripts/make_layer_zip_01.sh b/scripts/make_layer_zip_01.sh
deleted file mode 100755
index c2d4534..0000000
--- a/scripts/make_layer_zip_01.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-# Description: Make the zip file for the layer for the extract lambda function
-
-cd "$(dirname "$0")/.."
-mkdir -p python_01/lib/python3.11/site-packages
-pip3 install --upgrade -r requirements_lambda_01.txt -t python_01/lib/python3.11/site-packages
-rm layer_01.zip
-zip -r layer_01.zip python_01
-rm -r python_01/
diff --git a/scripts/make_layer_zip_02.sh b/scripts/make_layer_zip_02.sh
deleted file mode 100755
index c788acf..0000000
--- a/scripts/make_layer_zip_02.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-# Description: Make the zip file for the layer for the transform & load
-# lambda functions
-
-cd "$(dirname "$0")/.."
-mkdir -p python_02/lib/python3.11/site-packages
-pip3 install --upgrade -r requirements_lambda_02.txt -t python_02/lib/python3.11/site-packages
-rm layer_02.zip
-zip -r layer_02.zip python_02
-rm -r python_02/
git.ajschof.me — hosted by ajschofield — powered by cgit