# OIDC 있는지 체크
CLUSTER_NAME=<CLUSTER_NAME>
oidc_id=$(aws eks describe-cluster --name $cluster_name --query "cluster.identity.oidc.issuer" --output text | cut -d '/' -f 5)
echo $oidc_id
aws iam list-open-id-connect-providers | grep $oidc_id | cut -d "/" -f4
# 출력되지 않다면 생성
eksctl utils associate-iam-oidc-provider --cluster $CLUSTER_NAME --region ap-northeast-2 --approve
Shell
복사

