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

aws-eks: Create cluster fails on 2.92.0 with ProxyAgent is not a constructor #26828

Closed
shapirov103 opened this issue Aug 21, 2023 · 2 comments
Closed
Labels
@aws-cdk/aws-eks Related to Amazon Elastic Kubernetes Service bug This issue is a bug. duplicate This issue is a duplicate.

Comments

@shapirov103
Copy link

shapirov103 commented Aug 21, 2023

Describe the bug

Creatiing cluster with 2.92.0 fails in the custom resource with ProxyAgent is not a constructor.

blueprint-construct-dev \|  90/245 \| 3:35:17 PM \| CREATE_FAILED        \| Custom::AWSCDK-EKS-Cluster            \| blueprint-construct-dev/Resource/Resource/Default (blueprintconstructdevE0DAE201) Received response status [FAILED] from custom resource. Message returned: ProxyAgent is not a constructor
--
1019 |  
1020 | Logs: /aws/lambda/blueprint-construct-dev-aws-OnEventHandler42BEBAE0-faAQVwewHMDZ
1021 |  
1022 | at Object.<anonymous> (/var/task/index.js:1:417)
1023 | at Module._compile (node:internal/modules/cjs/loader:1256:14)
1024 | at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
1025 | at Module.load (node:internal/modules/cjs/loader:1119:32)
1026 | at Module._load (node:internal/modules/cjs/loader:960:12)
1027 | at Module.require (node:internal/modules/cjs/loader:1143:19)
1028 | at require (node:internal/modules/cjs/helpers:110:18)
1029 | at _tryRequireFile (file:///var/runtime/index.mjs:912:37)
1030 | at _tryRequire (file:///var/runtime/index.mjs:962:25)
1031 | at _loadUserApp (file:///var/runtime/index.mjs:991:22) (RequestId: 22f81db7-d9e5-45ba-a7dc-ea354d98ccea)

Same code works fine with 2.88.0. Reproduced with EKS Blueprints here.

Expected Behavior

Expected cluster creation to succeed.

Current Behavior

Fails with the above message.

Reproduction Steps

Reproduced with EKS Blueprints. Checkout this branch.

Update package.json aws-cdk and aws-cdk-lib to use cdk 2.92.

Deploy with cdk deploy blueprint-construct-dev.

Possible Solution

No response

Additional Information/Context

Potentially due to node upgrade on custom resources.

CDK CLI Version

2.92

Framework Version

No response

Node.js Version

18

OS

macos ventura 13

Language

Typescript

Language Version

No response

Other information

No response

@shapirov103 shapirov103 added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Aug 21, 2023
@github-actions github-actions bot added the @aws-cdk/aws-eks Related to Amazon Elastic Kubernetes Service label Aug 21, 2023
@shapirov103 shapirov103 changed the title aws-eks: Create cluster fails on 2.92.0 aws-eks: Create cluster fails on 2.92.0 with ProxyAgent is not a constructor Aug 21, 2023
@peterwoodworth
Copy link
Contributor

It will be out in the next release
#26771
#26787

@peterwoodworth peterwoodworth added duplicate This issue is a duplicate. and removed needs-triage This issue or PR still needs to be triaged. labels Aug 21, 2023
@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-eks Related to Amazon Elastic Kubernetes Service bug This issue is a bug. duplicate This issue is a duplicate.
Projects
None yet
Development

No branches or pull requests

2 participants