Skip to content

Commit

Permalink
fix(eks): update README to include example of attaching provider to c…
Browse files Browse the repository at this point in the history
…luster.
  • Loading branch information
Advill committed Sep 20, 2023
1 parent e0e47f5 commit 0b2eeca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/aws-cdk-lib/aws-eks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1116,6 +1116,9 @@ const cluster = eks.Cluster.fromClusterAttributes(this, 'MyCluster', {
kubectlRoleArn: 'arn:aws:iam::123456:role/service-role/k8sservicerole',
});

// you can also associate a provider created outside the CDK with an existing cluster
const provider3 = cluster.associateOpenIdConnectProvider('arn:aws:iam::123456:oidc-provider/oidc.eks.eu-west-1.amazonaws.com/id/AB123456ABC')

const serviceAccount = cluster.addServiceAccount('MyServiceAccount');

const bucket = new s3.Bucket(this, 'Bucket');
Expand Down

0 comments on commit 0b2eeca

Please sign in to comment.