diff options
| author | Alex Schofield <git@ajschof.me> | 2024-08-29 17:46:33 +0100 |
|---|---|---|
| committer | Alex Schofield <git@ajschof.me> | 2024-08-29 17:46:33 +0100 |
| commit | 62417b57133cc1c6df3efd89c247706a93e3f182 (patch) | |
| tree | 3f20c9bb15c2ec2a0a426de8f1f0ee3f471eeaee /scripts/make_layer_zip.sh | |
| parent | abcf3df1913507517f8e2401eb9a79033b755287 (diff) | |
| download | de-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/make_layer_zip.sh')
| -rwxr-xr-x | scripts/make_layer_zip.sh | 17 |
1 files changed, 17 insertions, 0 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/ |
