Skip to content

Commit

Permalink
Merge pull request #315 from dichen16/master
Browse files Browse the repository at this point in the history
Rename lambda_config.json to lambda_config.template
  • Loading branch information
dichn committed Jan 17, 2022
2 parents 3ca75bb + 0da2ae7 commit 4179bd7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/build-package
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export EXODUS_CONFIG_CACHE_TTL=${EXODUS_CONFIG_CACHE_TTL:-2}
pip install --require-hashes -r requirements.txt --target ./package
pip install --no-deps --target ./package .
cp ./configuration/exodus-lambda-deploy.yaml ./package
envsubst < ./configuration/lambda_config.json > ./package/lambda_config.json
envsubst < ./configuration/lambda_config.template > ./package/lambda_config.json
aws cloudformation package \
--template ./package/exodus-lambda-deploy.yaml \
--s3-bucket $PROJECT-pipeline-artifacts \
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def mock_conf_file():
test_env["ORIGIN_REQUEST_LOGGER_LEVEL"] = "DEBUG"
test_env["EXODUS_HEADERS_MAX_AGE"] = "600"

cmd = "envsubst < ./configuration/lambda_config.json > {temp_path}"
cmd = "envsubst < ./configuration/lambda_config.template > {temp_path}"
cmd = cmd.format(temp_path=temp_file.name)

subprocess.run(
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ commands=
pip install --no-deps --target ./package .

# Always using hardcoded config for now.
sh -c 'envsubst < configuration/lambda_config.template > configuration/lambda_config.json'
cp configuration/lambda_config.json package

sh -c 'cd package && zip -r ../package.zip .'
Expand Down

0 comments on commit 4179bd7

Please sign in to comment.