Hi Team,
I’m using terraform+AWS playground and trying to create an EKS cluster. But it fails with below error
Error: creating EKS Cluster (retail-dev-eksdemo1): operation error EKS: CreateCluster, https response error StatusCode: 403, RequestID: 953ed234-f34e-4fe3-a296-f636a6c638c0, api error AccessDeniedException: User: arn:aws:iam::339712982725:user/kk_labs_user_677697 is not authorized to perform: iam:PassRole on resource: arn:aws:iam::339712982725:role/retail-dev-eks-cluster-role because no identity-based policy allows the iam:PassRole action
│
│ with aws_eks_cluster.main,
│ on c7_eks_cluster.tf line 5, in resource “aws_eks_cluster” “main”:
│ 5: resource “aws_eks_cluster” “main” {
Unable to attach policies to the user. Can you help here?