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

feat(publish_layer): specified all compatible archs #390

Merged
merged 2 commits into from
Oct 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 --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.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