CDK Associate OIDC identity provider #20277
-
Hello, eksctl example: ---
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
metadata:
name: my-cluster
region: your-region-code
identityProviders:
- name: my-provider
type: oidc
issuerUrl: https://example.com
clientId: kubernetes
usernameClaim: email
usernamePrefix: my-username-prefix
groupsClaim: my-claim
groupsPrefix: my-groups-prefix
requiredClaims:
string: string
tags:
env: dev |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, good afternoon!
|
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Hi, good afternoon!
I have found your question trying to find a solution for the same problem. I think that I have an approach that could work for you, the key is the usage of CfnIdentityProviderConfig class. It provides a way to configure the association between the oidc provider and the eks cluster.
I'm working with Python CDK, but it should work with JS or Go without problems