Hi@akhtar,
You may get this error if your Kubectl is not configured properly for Amazon EKS or the IAM user or role credentials that you are using do not map to a Kubernetes RBAC user with sufficient permissions in your Amazon EKS cluster. If you assumed a role to create the Amazon EKS cluster, you must ensure that Kubectl is configured to the same role. Use the following command to update your kubeconfig file to use an IAM role.
$ aws --region region-code eks update-kubeconfig --name cluster_name --role-arn arn:aws:iam::aws_account_id:role/role_name
I hope this will solve your error.