Skip to content

Commit

Permalink
Merge pull request #57 from developmentseed/develop
Browse files Browse the repository at this point in the history
Update deployment of lambda layers for 1.1.0
  • Loading branch information
matthewhanson authored Mar 22, 2019
2 parents 649b340 + 7066e4b commit 9a39c22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
# publish docker images
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
#git tag -d ${VERSION}
git tag -d ${VERSION}
git tag ${VERSION}
git push origin ${VERSION}
docker login -u $DOCKER_USER -p $DOCKER_PASS
Expand All @@ -51,11 +51,11 @@ jobs:
for region in us-east-1 us-west-2 eu-central-1
do
LVERSION="$(aws lambda publish-layer-version --region ${region} \
--layer-name geolambda-dev --license-info 'MIT' \
--layer-name geolambda --license-info 'MIT' \
--description 'Native geospatial libaries for all runtimes' \
--zip-file fileb://lambda-deploy.zip | jq '.Version')"
aws lambda add-layer-version-permission --region ${region} \
--layer-name geolambda-dev --action lambda:GetLayerVersion \
--layer-name geolambda --action lambda:GetLayerVersion \
--statement-id public --version-number ${LVERSION} --principal '*'
done
Expand Down

0 comments on commit 9a39c22

Please sign in to comment.