Skip to content

Commit

Permalink
Use lambci/node-custom-lambda runtime
Browse files Browse the repository at this point in the history
Since the standard Node 12 Lambda runtime doesn't work with Mapnik, use
a custom runtime from LambCI instead. They publish layers that you can
just add by ARN.
  • Loading branch information
KlaasH committed Dec 2, 2020
1 parent 9ce2ae8 commit 05dac41
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
#### Changed
- Add filter to Neighborhood List
- Remove filters for created_by, modified_by and fips_code for matching an AnalysisJob to existing Neighborhood records
- Upgrade Tilegarden Lambda runtime to Node 12

#### Added
- S3 caching of Census data files
Expand Down
2 changes: 2 additions & 0 deletions src/tilegarden/scripts/deploy
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

yarn claudia update --config claudia/claudia.json --no-optional-dependencies \
--runtime "provided" \
--layers "arn:aws:lambda:${LAMBDA_REGION}:553035198032:layer:nodejs12:36" \
${LAMBDA_TIMEOUT:+--timeout ${LAMBDA_TIMEOUT}} \
${LAMBDA_MEMORY:+--memory ${LAMBDA_MEMORY}} \
${LAMBDA_SECURITY_GROUPS:+--security-group-ids ${LAMBDA_SECURITY_GROUPS}} \
Expand Down
2 changes: 2 additions & 0 deletions src/tilegarden/scripts/deploy-new
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

yarn claudia create --config claudia/claudia.json --no-optional-dependencies \
--runtime "provided" \
--layers "arn:aws:lambda:${LAMBDA_REGION}:553035198032:layer:nodejs12:36" \
--api-module dist/api \
--name ${LAMBDA_FUNCTION_NAME} \
--region ${LAMBDA_REGION} \
Expand Down

0 comments on commit 05dac41

Please sign in to comment.