Skip to content

Commit b5ae377

Browse files
authored
chore(lambda-layer-proxyagent): autobump mechanism (#18788)
Add an autobump mechanism similar to the one in #18780. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 6df26e7 commit b5ae377

File tree

6 files changed

+998
-5
lines changed

6 files changed

+998
-5
lines changed

packages/@aws-cdk/lambda-layer-node-proxy-agent/.no-packagejson-validator

Whitespace-only changes.

packages/@aws-cdk/lambda-layer-node-proxy-agent/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ declare const fn: lambda.Function;
2323
fn.addLayers(new NodeProxyAgentLayer(this, 'NodeProxyAgentLayer'));
2424
```
2525

26-
[`proxy-agent`](https://www.npmjs.com/package/proxy-agent) will be installed under `/opt/nodejs/node_modules`.
26+
[`proxy-agent`](https://www.npmjs.com/package/proxy-agent) will be installed under `/nodejs/node_modules`.

packages/@aws-cdk/lambda-layer-node-proxy-agent/layer/Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# base lambda image
22
FROM public.ecr.aws/lambda/nodejs:latest
33

4-
ARG PROXY_AGENT_VERSION=5.0.0
5-
64
USER root
75
RUN mkdir -p /opt
86
WORKDIR /tmp
@@ -19,7 +17,8 @@ RUN yum update -y \
1917
#
2018

2119
RUN mkdir -p /opt/nodejs
22-
RUN cd /opt/nodejs && npm install proxy-agent@${PROXY_AGENT_VERSION}
20+
COPY package*.json /opt/nodejs/
21+
RUN cd /opt/nodejs && npm ci && rm package*.json
2322

2423
#
2524
# create the bundle

packages/@aws-cdk/lambda-layer-node-proxy-agent/layer/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -euo pipefail
33

44
cd $(dirname $0)
55

6-
echo ">> Building AWS Lambda layer inside a docker image..."
6+
echo ">> Building AWS Lambda layer inside a docker image for Proxy Agent..."
77

88
TAG='aws-lambda-node-proxy-agent'
99

0 commit comments

Comments
 (0)