File tree Expand file tree Collapse file tree 5 files changed +24
-19
lines changed
Expand file tree Collapse file tree 5 files changed +24
-19
lines changed Original file line number Diff line number Diff line change @@ -426,13 +426,13 @@ if [ "${bootstrap}" == "true" ]; then
426426 tf_var_params+=" -var bucket_name=${bucket} " ;
427427fi ;
428428
429- # Run pre-plan .sh / pre-apply.sh / pre-output.sh etc
430- echo " Looking for pre- ${action} .sh"
429+ # Run pre.sh
430+ echo " Looking for pre.sh"
431431ls
432- if [ -f " pre- ${action} .sh" ]; then
433- echo " Running pre- ${action} .sh"
434- source pre- ${action} .sh " ${region} " " ${environment} " " ${action} " \
435- || error_and_die " Component pre- ${action} .sh script execution failed with exit code ${?} " ;
432+ if [ -f " pre.sh" ]; then
433+ echo " Running pre.sh"
434+ source pre.sh " ${region} " " ${environment} " " ${action} " \
435+ || error_and_die " Component pre.sh script execution failed with exit code ${?} " ;
436436fi ;
437437
438438# Pull down secret TFVAR file from S3
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ REGION=$1
2+ ENVIRONMENT=$2
3+ ACTION=$3
4+
5+ echo Running pre.sh
6+ echo " REGION=$REGION "
7+ echo " ENVIRONMENT=$ENVIRONMENT "
8+ echo " ACTION=$ACTION "
9+
10+ if [ " $ACTION " == " apply" ]; then
11+ if [ -z " $SKIP_SANDBOX_INSTALL " ]; then npm ci; fi
12+
13+ npm run generate-dependencies --workspaces --if-present
14+
15+ npm run lambda-build --workspaces --if-present
16+
17+ $( git rev-parse --show-toplevel) /lambdas/layers/pdfjs/build.sh
18+ fi
You can’t perform that action at this time.
0 commit comments