Cannot create EKS Cluster in AWS Playground -- SEE THE CONFIG AND ERROR MESSAGE INLINE

trying to create eks cluster with this config.yaml but it gives error and rollsback cluster creation

apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig

metadata:
name: sgf-eks-cluster
region: us-east-1 # Change this to your preferred region

managedNodeGroups:

  • name: ng-1
    instanceType: t3.medium
    minSize: 2
    maxSize: 3
    desiredCapacity: 3
    privateNetworking: true
    availabilityZones: [“us-east-1a”] # Specify the AZ for your nodes

addons:

  • name: vpc-cni
  • name: coredns
  • name: kube-proxy
  • name: aws-ebs-csi-driver

---- SEE THE ERROR MESSAGE BELOW—
2024-09-18 23:34:28 [:heavy_multiplication_x:] AWS::EKS::Cluster/ControlPlane: CREATE_FAILED – “Resource handler returned message: "User: arn:aws:iam::654654309110:user/kk_labs_user_739369 is not authorized to perform: iam:PassRole on resource: arn:aws:iam::654654309110:role/eksctl-sgf-eks-cluster-cluster-ServiceRole-QqvBuZ2heBPo (Service: Eks, Status Code: 403, Request ID: 94cb67c3-3e21-4759-a283-60c6ae292b1d)" (RequestToken: 65208ea8-966d-74f8-8c28-c1423b66edcd, HandlerErrorCode: AccessDenied)”

the first step here is to fix the posting of your YAML so I can try this at my end: please use the </> button on the edit widget to create a code block:

Like this:
  * Because indentation won't get preserved otherwise
  * Because quote marks and other characters get garbled, as they are in your YAML.

I’m not completely sure that using the eks tool is supported, although the most likely problem is the YAML is requesting things that we don’t support in the playground for creating an EKS cluster. If the YAML is requesting something that isn’t in the console interface (see our guide here) then the YAML will fail. For example, I don’t think we support "managed node groups. But look at the guide, look at your YAML, and make sure the feature set matches.