Skip to content

Unable to create EKSCluster with Java SDK #1157

@38leinaD

Description

@38leinaD

Describe the bug

I am having trouble creating an EKS Cluster using the CDK with Java.
I now used the aws-cdk-examples and am getting the exact same error:

EksPrivateCluster: fail: Expected closing tag 'meta' (opened in line 7, col 1) instead of closing tag 'head'.:358:1 Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object. [12:42:19] Reading cached notices from /home/daniel/.cdk/cache/notices.json Failed to publish asset 8c06a7775210aa362ae87c34bb7f3fab5bd1261dcdc431975963ee6b55bdef88:current_account-current_region

cdk version:
2.1007.0 (build d3f6c3c)

Any suggestions how to troubleshoot this and if this is just an environment-specific problem for me, please let me know.

Expected Behavior

EKS cluster should be created without errors.

Current Behavior

EKS cluster creation failes.
Error is
EksPrivateCluster: fail: Expected closing tag 'meta' (opened in line 7, col 1) instead of closing tag 'head'.:358:1 Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object. [12:42:19] Reading cached notices from /home/daniel/.cdk/cache/notices.json Failed to publish asset 8c06a7775210aa362ae87c34bb7f3fab5bd1261dcdc431975963ee6b55bdef88:current_account-current_region

Reproduction Steps

cdk deploy on this: https://github.com/aws-samples/aws-cdk-examples/blob/main/java/eks/private-cluster/src/main/java/com/amazonaws/cdk/examples/EksPrivateClusterStack.java

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.1007.0 (build d3f6c3c)

Framework Version

See examples project: 2.175.1; but also newer versions

Node.js Version

v18.17.1

OS

Centos Linux

Language

Java

Language Version

Java openjdk version "17.0.7" 2023-04-18

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions