Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 477 Bytes

configure-oidc-connector.md

File metadata and controls

19 lines (13 loc) · 477 Bytes

commands to configure IAM OIDC provider

export cluster_name=demo-cluster
oidc_id=$(aws eks describe-cluster --name $cluster_name --query "cluster.identity.oidc.issuer" --output text | cut -d '/' -f 5) 

Check if there is an IAM OIDC provider configured already

  • aws iam list-open-id-connect-providers | grep $oidc_id | cut -d "/" -f4\n

If not, run the below command

eksctl utils associate-iam-oidc-provider --cluster $cluster_name --approve