File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -eu
4
+
5
+ # Script to build/upgrade lambda layers zip
6
+
7
+ CURRENT_DIR=" $( pwd) "
8
+ TEMP_DIR=" $( mktemp -d) "
9
+
10
+ mkdir " ${TEMP_DIR} /python"
11
+
12
+ echo " Building requests layer..."
13
+ cd " ${TEMP_DIR} /python"
14
+ python3 -m pip install --platform manylinux2014_x86_64 --implementation cp --only-binary=:all: --target . requests
15
+ cd ..
16
+ zip -r " ${CURRENT_DIR} /requests.zip" python
17
+ rm -rf python/*
18
+
19
+ echo " Building pytz layer..."
20
+ cd " ${TEMP_DIR} /python"
21
+ python3 -m pip install --platform manylinux2014_x86_64 --implementation cp --only-binary=:all: --target . pytz
22
+ cd ..
23
+ zip -r " ${CURRENT_DIR} /pytz.zip" python
24
+ rm -rf python/*
25
+
26
+ echo " Building cryptography layer..."
27
+ cd " ${TEMP_DIR} /python"
28
+ python3 -m pip install --platform manylinux2014_x86_64 --implementation cp --only-binary=:all: --target . cryptography
29
+ cd ..
30
+ zip -r " ${CURRENT_DIR} /cryptography.zip" python
31
+ rm -rf python/*
32
+
33
+ cd " ${CURRENT_DIR} "
34
+ rm -rf " ${TEMP_DIR} "
You can’t perform that action at this time.
0 commit comments