-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
fix(lambda-layer-node-proxy-agent): Replace use of package.json with Dockerfile command npm install [package]@[version]
#17078
Conversation
Added |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Testing was successful. I was able to synth and deploy an EKS using monocdk and CDKv2. |
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
…Dockerfile command `npm install [package]@[version]` (aws#17078) ## Summary This PR fixes an issue where the package.json file used in `lambda-layer-node-proxy-agent` was not being bundled into monocdk / CDK v2. This is due to limitations of Ubergen. Ubergen only copies .ts files, README.md files and some special .json files. This PR: - Removes the package.json from `packages/@aws-cdk/lambda-layer-node-proxy-agent/layer` - Adds a step in the layer's Dockerfile to install a specific version of `proxy-agent` i.e. `npm install [package]@[version]`. This is so that we can do without the `package.json` file while still managing which version we bundle with the layer. Fixes: aws#17061 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Summary
This PR fixes an issue where the package.json file used in
lambda-layer-node-proxy-agent
was not being bundled into monocdk / CDK v2. This is due to limitations of Ubergen. Ubergen only copies .ts files, README.md files and some special .json files.This PR:
packages/@aws-cdk/lambda-layer-node-proxy-agent/layer
proxy-agent
i.e.npm install [package]@[version]
. This is so that we can do without thepackage.json
file while still managing which version we bundle with the layer.Fixes: #17061
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license