To use IAM roles for service accounts in your cluster, you must create an IAM OIDC Identity Provider. This can be done using the AWS Console, AWS CLIs and eksctl
. For the sake of this workshop, we will use the last.
eksctl version
If your eksctl version is lower than 0.57.0, use Installing or Upgrading eksctl in the user guide
eksctl utils associate-iam-oidc-provider --cluster eksworkshop-eksctl --approve
If you go to the Identity Providers in IAM Console, you will see OIDC provider has created for your cluster