aws-quickstart / cdk-eks-blueprints

AWS Quick Start Team
Apache License 2.0
447 stars 198 forks source link

[Karpenter] Deploy fail when more than 2 eks #587

Closed namjug-kim closed 1 year ago

namjug-kim commented 1 year ago

Describe the bug

If deploy more than 2 eks cluster with carpenter addon, an "Export with name KarpenterInstanceProfileName is already exported by stack {cdk-eks-blueprints-id}" error occurs.

Expected Behavior

Deployment Successful

Current Behavior

cloudformation stop with error "Export with name KarpenterInstanceProfileName is already exported by stack {cdk-eks-blueprints-id}"

Reproduction Steps

const clusterA = blueprints.EksBlueprint.builder()
    .addOns(new blueprints.addons.KarpenterAddOn())
    .build(app, `cluster-a`);

const clusterB = blueprints.EksBlueprint.builder()
    .addOns(new blueprints.addons.KarpenterAddOn())
    .build(app, `cluster-b`);

deploy multiple cluster with karpenterAddOn

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.61.1 (build d319d9c)

EKS Blueprints Version

1.5.4

Node.js Version

v19.4.0

Environment details (OS name and version, etc.)

mac m1

Other information

No response

youngjeong46 commented 1 year ago

@namjug-kim Thank you for submitting the issue yesterday. I have an open PR to address the issue at hand.

youngjeong46 commented 1 year ago

@namjug-kim The latest npm release (1.6.0) should have this incorporated. Please test and re-open the issue if you still see it linger. Closing it for now.