File tree Expand file tree Collapse file tree 7 files changed +25
-29
lines changed
Expand file tree Collapse file tree 7 files changed +25
-29
lines changed Original file line number Diff line number Diff line change @@ -2,3 +2,4 @@ node_modules/
22stage /
33tmp /
44* .zip
5+ deployment * .txt
Original file line number Diff line number Diff line change 1- FROM node:14.0 .0-stretch-slim@sha256:e0601687209fbfa4008d23b6e49a61c0f856e4dab8e686945ff5e616178ce586
1+ FROM node:14.1 .0-stretch-slim@sha256:b71737516643fa2c1df6d5a76ab5d4e7e959b3c40e494ff2b9587be2af9efd55
22
33RUN apt-get update && apt-get install -y p7zip-full curl xz-utils && apt-get clean all
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ It's easy to use this project and build Node.js runtime that will target any ver
66
77## Current versions
88
9- * Node.js - ** 14.0 .0**
10- * aws-sdk - ** 2.666 .0**
9+ * Node.js - ** 14.1 .0**
10+ * aws-sdk - ** 2.667 .0**
1111
1212## Goals
1313
@@ -40,7 +40,7 @@ Deploy the runtime layer using the following command:
4040``` bash
4141aws lambda publish-layer-version \
4242 --layer-name node-14-runtime \
43- --description " nodejs-14.0 .0 aws-cli-2.666 .0" \
43+ --description " nodejs-14.1 .0 aws-cli-2.667 .0" \
4444 --compatible-runtimes provided \
4545 --license-info Apache-2.0 \
4646 --zip-file fileb://stage/layer.zip
@@ -50,7 +50,7 @@ The output will look like this:
5050``` json
5151{
5252 "LayerVersionArn" : " arn:aws:lambda:us-east-2:356111732087:layer:node-14-runtime:1" ,
53- "Description" : " nodejs-14.0 .0 aws-cli-2.666 .0" ,
53+ "Description" : " nodejs-14.1 .0 aws-cli-2.667 .0" ,
5454 "CreatedDate" : " 2018-12-02T22:32:00.572+0000" ,
5555 "LayerArn" : " arn:aws:lambda:us-east-2:356111732087:layer:node-14-runtime" ,
5656 "Content" : {
Original file line number Diff line number Diff line change 22
33set -ex
44
5- export NODE_VERSION=14.0 .0
6- export SHA256=a2aaaa621074e1b56bb751bda53ce726319fac617587443371c0a7742481e5b6
5+ export NODE_VERSION=14.1 .0
6+ export SHA256=959fab0c8ae0830f1ab987699cd2941cab97169991630a2e0c99db7c144f9e42
77
88DIR=" $( cd " $( dirname " $0 " ) " && pwd ) "
99
Original file line number Diff line number Diff line change 1- #! /bin/sh
1+ #! /bin/bash
22
33set -xe
44
@@ -8,28 +8,14 @@ cd "${DIR}/.."
88
99# https://docs.aws.amazon.com/general/latest/gr/lambda-service.html
1010REGIONS="
11- af-south-1
12- ap-east-1
13- ap-northeast-1
14- ap-northeast-2
15- ap-south-1
16- ap-southeast-1
17- ap-southeast-2
18- ca-central-1
19- eu-central-1
20- eu-north-1
21- eu-south-1
22- eu-west-1
23- eu-west-2
24- eu-west-3
25- me-south-1
2611sa-east-1
2712us-east-1
2813us-east-2
2914us-west-1
3015us-west-2
3116"
3217
18+ TMP=" deployment-$( date +%s) .txt"
3319for R in $REGIONS ; do
3420 echo " Deploying in ${R} "
3521 docker run -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY --rm \
@@ -39,8 +25,17 @@ for R in $REGIONS ; do
3925 lambda publish-layer-version \
4026 --region " ${R} " \
4127 --layer-name node-14-runtime \
42- --description " nodejs-14.0 .0 aws-cli-2.666 .0" \
28+ --description " nodejs-14.1 .0 aws-cli-2.667 .0" \
4329 --compatible-runtimes provided \
4430 --license-info Apache-2.0 \
4531 --zip-file fileb://stage/layer.zip
32+ done | tee " $TMP "
33+
34+ set +x
35+ # Markdown release notes
36+ echo " |Region|Layer arn|"
37+ echo " |--|--|"
38+ cat " $TMP " | grep LayerVersionArn | cut -d ' "' -f4 | while read L; do
39+ R=$( echo $L | cut -d: -f4)
40+ echo " |$R |\` $L \` |"
4641done
Original file line number Diff line number Diff line change 1313 "express" : " ^4.17.1"
1414 },
1515 "dependencies" : {
16- "aws-sdk" : " 2.666 .0"
16+ "aws-sdk" : " 2.667 .0"
1717 }
1818}
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ array-flatten@1.1.1:
1515 resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2"
1616 integrity sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=
1717
18- aws-sdk@2.666 .0 :
19- version "2.666 .0"
20- resolved "https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.666 .0.tgz#4cd4f6bea920e3ef3192bf113aa9c606a307a709 "
21- integrity sha512-m4m4eHs/F7SRW0OnvxRWyrAyqcQE7kyVnfwyrhA7P0w92FOmmu+tw6JKI5LZNVBsaj2VBAfPn72V6nWzP3IIlw ==
18+ aws-sdk@2.667 .0 :
19+ version "2.667 .0"
20+ resolved "https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.667 .0.tgz#9d45b5fe90038bfba88a892112251d87af19b2f5 "
21+ integrity sha512-CDeMyqblfGlj/xUSp1/G1b9Tb4LDTid5CYrBW9FyBqMg6JIiXkaEN3b4oK2VjS18Xv1eth5LJAbYNMxjfHfKjw ==
2222 dependencies :
2323 buffer "4.9.1"
2424 events "1.1.1"
You can’t perform that action at this time.
0 commit comments