Skip to content

Commit 36ef17b

Browse files
committed
draft
1 parent f78f372 commit 36ef17b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

scripts/build-package

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#!/bin/bash
2-
set -e
3-
2+
set -x
43
pip install --require-hashes -r requirements.txt --target ./package
54
pip install --no-deps --target ./package .
65
cp ./configuration/exodus-lambda-deploy.yaml ./package
76
scripts/mk-config > ./package/lambda_config.json
7+
ls -al .
8+
echo $EXODUS_LAMBDA_VERSION
89
aws cloudformation package \
910
--template ./package/exodus-lambda-deploy.yaml \
1011
--s3-bucket $PROJECT-pipeline-artifacts \

scripts/mk-config

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
set -e
2+
set -x
33

44
export ORIGIN_RESPONSE_LOGGER_LEVEL=${ORIGIN_RESPONSE_LOGGER_LEVEL:-WARNING}
55
export ORIGIN_REQUEST_LOGGER_LEVEL=${ORIGIN_REQUEST_LOGGER_LEVEL:-WARNING}
@@ -13,5 +13,7 @@ export EXODUS_TABLE=${EXODUS_TABLE:-$PROJECT-cdn-$ENV_TYPE}
1313
export EXODUS_CONFIG_TABLE=${EXODUS_CONFIG_TABLE:-$PROJECT-config-$ENV_TYPE}
1414
export EXODUS_SECRET_ARN=${EXODUS_SECRET_ARN}
1515
export EXODUS_KEY_ID=${EXODUS_KEY_ID}
16+
export EXODUS_LAMBDA_VERSION="${EXODUS_LAMBDA_VERSION:-$(date -u --iso=s) ${CODEBUILD_RESOLVED_SOURCE_VERSION}}"
1617

1718
envsubst < ./configuration/lambda_config.template
19+
echo $EXODUS_LAMBDA_VERSION

0 commit comments

Comments
 (0)