pulumi-eks icon indicating copy to clipboard operation
pulumi-eks copied to clipboard

Support ClusterAccessConfig on EKS Cluster

Open blakeromano opened this issue 1 year ago • 2 comments
trafficstars

Hello!

  • Vote on this issue by adding a 👍 reaction
  • If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details

Want to be able to setup ClusterAccessConfig to adopt the new authentication method with users into K8s to move off the config map model.

Affected area/feature

EKS authentication/Cluster Features

blakeromano avatar Jan 27 '24 05:01 blakeromano

Thanks for filing this request @blakeromano. If you have any other documentation links or details on the context/use case motivating your move off of the config map model that might be useful to who ever pick up this work.

AWS provider resource and example for AccessConfig aws.eks.Cluster | Pulumi Registry CF property reference AWS::EKS::Cluster AccessConfig - AWS CloudFormation

mjeffryes avatar Jan 30 '24 23:01 mjeffryes

Workaround using transformations:

const cluster = new eks.Cluster("cluster", {
    ...
}, {
    transformations: [args => {
        if (args.type === "aws:eks/cluster:Cluster") {
            args.props["accessConfig"] = {
                authenticationMode: "API_AND_CONFIG_MAP"
            };
        }
        return undefined;
    }]
});

TarekAS avatar Jan 31 '24 19:01 TarekAS

This was released in version v2.6.0

flostadler avatar Jun 04 '24 14:06 flostadler