You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cluster fail to deploy with error from the customer resource responsible for managing the lifecycle of the cluster. The error is as follow:
09:44:24 | CREATE_FAILED | Custom::AWSCDK-EKS-Cluster | Cluster9EE0221C
Received response status [FAILED] from custom resource. Message returned: ProxyAgent is not a constructor
If I remove the kubectl layer and rely on the the one part of CDK which is kubectl 1.20, the cluster successfully deploy.
Expected Behavior
Cluster deploy without issues.
Current Behavior
Cluster fail to deploy with the following error:
09:44:24 | CREATE_FAILED | Custom::AWSCDK-EKS-Cluster | Cluster9EE0221C
Received response status [FAILED] from custom resource. Message returned: ProxyAgent is not a constructor
import { AwsAuth, CapacityType, CfnAddon, Cluster, KubernetesVersion } from 'aws-cdk-lib/aws-eks';
import { KubectlV27Layer } from '@aws-cdk/lambda-layer-kubectl-v27';
const kubectl = new KubectlV27Layer(this, 'KubectlLayer');
const eksCluster = new Cluster(this, "Cluster", {
vpc: vpc,
clusterName: 'cluster',
version: KubernetesVersion.V1_27,
kubectlLayer: kubectl,
});
This will fail with the above errors
Possible Solution
It might be related to the notice, for the upgrade to node 18.
I tried to deploy with the following dependencies and it works without issues. The only difference is using k8s 1.26 instead of 1.27 because the version is not available in cdk 2.81
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.
Describe the bug
Cluster fail to deploy with error from the customer resource responsible for managing the lifecycle of the cluster. The error is as follow:
If I remove the kubectl layer and rely on the the one part of CDK which is kubectl 1.20, the cluster successfully deploy.
Expected Behavior
Cluster deploy without issues.
Current Behavior
Cluster fail to deploy with the following error:
Reproduction Steps
code is in this repo
Package.json
This will fail with the above errors
Possible Solution
It might be related to the notice, for the upgrade to node 18.
I tried to deploy with the following dependencies and it works without issues. The only difference is using k8s 1.26 instead of 1.27 because the version is not available in cdk 2.81
Additional Information/Context
No response
CDK CLI Version
2.92.0
Framework Version
2.84.0
Node.js Version
Node.js v18.12.1.
OS
macOS
Language
Typescript
Language Version
TypeScript 4.9.4
Other information
No response
The text was updated successfully, but these errors were encountered: