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-cdk-examples/typescript/eks/cluster unsupported Kubernetes version #936

Closed
jaysonmc opened this issue Oct 11, 2023 · 2 comments · Fixed by #995 or #996
Closed

aws-cdk-examples/typescript/eks/cluster unsupported Kubernetes version #936

jaysonmc opened this issue Oct 11, 2023 · 2 comments · Fixed by #995 or #996
Assignees
Labels
bug This issue is a bug. language/typescript Related to Typescript examples p1

Comments

@jaysonmc
Copy link
Contributor

jaysonmc commented Oct 11, 2023

Describe the bug

CDK deploy (after running npm build) returns the following error:

`
Received response status [FAILED] from custom resource. Message returned: unsupported Kubernetes version

Logs: /aws/lambda/MyEKSCluster-awscdkawseksCl-OnEventHandler42BEBAE0-8lTdzZtR8u8j

at deserializeAws_restJson1InvalidParameterExceptionResponse (/var/runtime/node_modules/@aws-sdk/client-eks/dist-cjs/proto
cols/Aws_restJson1.js:2490:23)
at deserializeAws_restJson1CreateClusterCommandError (/var/runtime/node_modules/@aws-sdk/client-eks/dist-cjs/protocols/Aws
_restJson1.js:1017:25)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /var/runtime/node_modules/@aws-sdk/middleware-serde/dist-cjs/deserializerMiddleware.js:7:24
at async /var/runtime/node_modules/@aws-sdk/middleware-signing/dist-cjs/middleware.js:13:20
at async StandardRetryStrategy.retry (/var/runtime/node_modules/@aws-sdk/middleware-retry/dist-cjs/StandardRetryStrategy.j
s:51:46)
at async /var/runtime/node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js:6:22
at async ClusterResourceHandler.onCreate (/var/task/cluster.js:1:1084) (RequestId: ba2de978-9fa2-4f55-aaa6-bd873cdc7c7e)
`

As an aside, this project is missing a readme.

Expected Behavior

CDK deploy to successfully execute

Current Behavior

CDK deploy fails with unsupported Kubernetes version

Reproduction Steps

git clone
cd aws-cdk-examples/typescript/eks/cluster
npm run build
cdk deploy

Possible Solution

I tried different version numbers (ex: /aws-cdk-examples/typescript/eks/cluster/index.ts line 21 changing version number to V1_27), but am getting the same error

Additional Information/Context

No response

CDK CLI Version

2.96.2 (build 3edd240) (cloud9 default)

Framework Version

No response

Node.js Version

v16.20.2

OS

Amazon Linux 2 (x86-64)

Language

Typescript

Language Version

~5.1.6

@jaysonmc jaysonmc added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Oct 11, 2023
@kaiz-io
Copy link
Contributor

kaiz-io commented Oct 12, 2023

I have a fix for this. I was just going through testing the build of all typescript examples and making sure they work with the latest cdk version. Just need to setup the PRs. Will do this one now

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