-
Notifications
You must be signed in to change notification settings - Fork 4k
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(aws-eks): Support for http proxy in EKS onEvent lambda #16609
Conversation
Fix for tests is on the way. Deploying and validating integration test changes takes a while with EKS. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, but the integration tests of aws-stepfunctions-tasks are failing:
@aws-cdk/aws-stepfunctions-tasks: Error: Some stacks have changed. To verify that they still deploy successfully, run: 'yarn integ eks/integ.call.js'
Done 👍🏻 |
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). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
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). |
A bug was introduced by this PR that broke the e.g. var contextify = fs.readFileSync('/var/task/contextify.js'); Error:
I created a revert of this PR and a fresh PR with the corrected fix. The updated fix:
|
Summary
Currently when a user wants to route all of the EKS lambda's SDK requests through a proxy then they are instructed to configure an env var named
HTTP_PROXY
orhttp_proxy
.e.g.
However the JS SDK requires further configuration to enable proxy support.
This PR:
package.json
with the dependency 'proxy-agent' to thecluster-resource-handler/
lambda bundleNodeJSFunction
to install lambda dependencies and bundle.HTTP_PROXY
orhttp_proxy
values. If present then configures the aws-sdk to use that proxy (usingproxy-agent
).Note: I placed the
proxy-agent
in thedevDependencies
ofpackage.json
. If the dependency is placed in thedependencies
section then the CDK builder throws an error:NPM Package cluster-resources-handler inside jsii package '@aws-cdk/aws-eks', can only have devDependencies
Fixes: SIM D29159517, #12469
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license