Skip to content

aws-eks: albController and FargateCluster compatibility with AuthenticationMode.API mode #30888

@Hazzard17h

Description

@Hazzard17h

Describe the bug

Setting EKS Cluster authenticationMode: AuthenticationMode.API cause "Error: ConfigMap not supported in the AuthenticationMode" if using albController or fargate profiles (for FargateCluster).

Expected Behavior

Use the new AccessEntry mechanism when authenticationMode: AuthenticationMode.API, for all resources managed by Cluster that need EKS API access.

Current Behavior

Error: ConfigMap not supported in the AuthenticationMode

Reproduction Steps

new Cluster(this, 'cluster', {
  version: KubernetesVersion.V1_27,
  authenticationMode: AuthenticationMode.API,
  albController: { version: AlbControllerVersion.V2_6_2 }
});

or

new FargateCluster(this, 'cluster', {
  version: KubernetesVersion.V1_27,
  authenticationMode: AuthenticationMode.API
});

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.148.0 (build e5740c0)

Framework Version

2.148.0

Node.js Version

v20.15.1

OS

Ubuntu 20.04

Language

TypeScript

Language Version

TypeScript 5.5.3

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-eksRelated to Amazon Elastic Kubernetes Serviceeffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions