Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(lambda-layer-proxyagent): autobump mechanism #18788

Merged
merged 7 commits into from
Feb 17, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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 packages/@aws-cdk/lambda-layer-node-proxy-agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ declare const fn: lambda.Function;
fn.addLayers(new NodeProxyAgentLayer(this, 'NodeProxyAgentLayer'));
```

[`proxy-agent`](https://www.npmjs.com/package/proxy-agent) will be installed under `/opt/nodejs/node_modules`.
[`proxy-agent`](https://www.npmjs.com/package/proxy-agent) will be installed under `/nodejs/node_modules`.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# base lambda image
FROM public.ecr.aws/lambda/nodejs:latest

ARG PROXY_AGENT_VERSION=5.0.0

USER root
RUN mkdir -p /opt
WORKDIR /tmp
Expand All @@ -19,7 +17,8 @@ RUN yum update -y \
#

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

#
# create the bundle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -euo pipefail

cd $(dirname $0)

echo ">> Building AWS Lambda layer inside a docker image..."
echo ">> Building AWS Lambda layer inside a docker image for Proxy Agent..."

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

Expand Down
Loading