fix(aws-eks): Support for http proxy in EKS onEvent lambda#16609
fix(aws-eks): Support for http proxy in EKS onEvent lambda#16609mergify[bot] merged 8 commits intomasterfrom
Conversation
Fix for tests is on the way. Deploying and validating integration test changes takes a while with EKS. |
otaviomacedo
left a comment
There was a problem hiding this comment.
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_PROXYorhttp_proxy.e.g.
However the JS SDK requires further configuration to enable proxy support.
This PR:
package.jsonwith the dependency 'proxy-agent' to thecluster-resource-handler/lambda bundleNodeJSFunctionto install lambda dependencies and bundle.HTTP_PROXYorhttp_proxyvalues. If present then configures the aws-sdk to use that proxy (usingproxy-agent).Note: I placed the
proxy-agentin thedevDependenciesofpackage.json. If the dependency is placed in thedependenciessection then the CDK builder throws an error:NPM Package cluster-resources-handler inside jsii package '@aws-cdk/aws-eks', can only have devDependenciesFixes: SIM D29159517, #12469
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license