Skip to content

Commit 9b7f40b

Browse files
mlaversGitHub Enterprise
authored andcommitted
Limit Compatible Runtimes (#2)
* Limit Compatible Runtimes This limits the compatible runtimes to the ones we plan to support. * Update the extension distribution URL * Removing older dotnetcore* runtimes, adding provided/ruby runtimes * Rename java8 runtime to java8.al2
1 parent e031f9a commit 9b7f40b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

extension/publish-layer.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
BUCKET_PREFIX=nr-layers
44

5-
EXTENSION_DIST_URL=https://github.com/newrelic/newrelic-lambda-extension/archive/v1.0.0.zip
5+
EXTENSION_DIST_DIR=extensions
6+
EXTENSION_DIST_URL=https://github.com/newrelic/newrelic-lambda-extension/releases/download/v0.0.2/newrelic-lambda-extension.zip
67
EXTENSION_DIST_ZIP=extension.zip
78

89
REGIONS=(
@@ -25,7 +26,7 @@ REGIONS=(
2526

2627
function build-layer {
2728
echo "Building New Relic Lambda Extension Layer"
28-
rm -rf $EXTENSION_DIST_ZIP
29+
rm -rf $EXTENSION_DIST_DIR $EXTENSION_DIST_ZIP
2930
curl $EXTENSION_DIST_URL -o $EXTENSION_DIST_ZIP
3031
echo "Build complete: ${EXTENSION_DIST_ZIP}"
3132
}
@@ -51,7 +52,7 @@ function publish-layer {
5152
--content "S3Bucket=${bucket_name},S3Key=${layer_s3key}" \
5253
--description "New Relic Lambda Extension Layer" \
5354
--license-info "Apache-2.0" \
54-
--compatible-runtimes dotnetcore1.0 dotnetcore2.0 dotnetcore2.1 dotnetcore3.1 nodejs nodejs8.10 nodejs10.x nodejs12.x go1.x java8 java11 provided python2.7 python3.6 python3.7 python3.8 ruby2.5 ruby2.7 \
55+
--compatible-runtimes "dotnetcore3.1 go1.x java8.al2 java11 provided provided.al2 ruby2.5 ruby2.7" \
5556
--region $region \
5657
--output text \
5758
--query Version)

nodejs/publish-layers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ NJS10X_DIST=$DIST_DIR/nodejs10x.zip
88
NJS12X_DIST=$DIST_DIR/nodejs12x.zip
99

1010
EXTENSION_DIST_DIR=extensions
11-
EXTENSION_DIST_URL=https://github.com/newrelic/newrelic-lambda-extension/archive/v1.0.0.zip
11+
EXTENSION_DIST_URL=https://github.com/newrelic/newrelic-lambda-extension/releases/download/v0.0.2/newrelic-lambda-extension.zip
1212
EXTENSION_DIST_ZIP=extension.zip
1313

1414
REGIONS=(

python/publish-layers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ PY37_DIST=dist/python37.zip
99
PY38_DIST=dist/python38.zip
1010

1111
EXTENSION_DIST_DIR=extensions
12-
EXTENSION_DIST_URL=https://github.com/newrelic/newrelic-lambda-extension/archive/v1.0.0.zip
12+
EXTENSION_DIST_URL=https://github.com/newrelic/newrelic-lambda-extension/releases/download/v0.0.2/newrelic-lambda-extension.zip
1313
EXTENSION_DIST_ZIP=extension.zip
1414

1515
REGIONS=(

0 commit comments

Comments
 (0)