Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
feat(layer): add support for python3.9 in Lambda layers (#408)
Browse files Browse the repository at this point in the history
* feat(layer): add support for python3.9 in Lambda layers

* test(travis): add 3.9

Co-authored-by: ronnathaniel <rnathaniel7@gmail.com>
  • Loading branch information
ranrib and ronnathaniel committed May 18, 2022
1 parent a71d6d9 commit 4b4ddb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ python:
- "3.6"
- "3.7"
- "3.8"
- "3.9"

# for semantic-release
before_install:
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish_layer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ for region in "${regions[@]}"
do
echo ${region}
aws s3 cp epsagon-python-layer.zip s3://epsagon-layers-${region}/
LAYER_VERSION=$(aws lambda publish-layer-version --layer-name epsagon-python-layer --description "Epsagon Python layer that includes pre-installed packages to get up and running with monitoring and distributed tracing" --content S3Bucket=epsagon-layers-${region},S3Key=epsagon-python-layer.zip --compatible-runtimes python3.8 python3.7 python3.6 python2.7 --compatible-architectures "arm64" "x86_64" --license-info MIT --region ${region} | jq '.Version')
LAYER_VERSION=$(aws lambda publish-layer-version --layer-name epsagon-python-layer --description "Epsagon Python layer that includes pre-installed packages to get up and running with monitoring and distributed tracing" --content S3Bucket=epsagon-layers-${region},S3Key=epsagon-python-layer.zip --compatible-runtimes python3.9 python3.8 python3.7 python3.6 python2.7 --compatible-architectures "arm64" "x86_64" --license-info MIT --region ${region} | jq '.Version')
aws lambda add-layer-version-permission --layer-name epsagon-python-layer --version-number ${LAYER_VERSION} --statement-id sid1 --action lambda:GetLayerVersion --principal \* --region ${region}
done

Expand Down

0 comments on commit 4b4ddb7

Please sign in to comment.