Was trying to restrict IAM users with the rbac of AWS EKS cluster. Mistakenly updated the configmap "aws-auth" from kube-system namespace. This removed the complete access to the EKS cluster.
Missed to add the groups: in the configmap for the user.
Tried providing full admin access to the user/role that is lastly mentioned in the configmap, But no luck.
Any idea of recovering access to the cluster would be highly appreciable.
The config-map.yaml:
apiVersion: v1
kind: ConfigMap
metadata:
name: aws-auth
namespace: kube-system
data:
mapUsers: |
- userarn: arn:aws:iam::1234567:user/test-user
username: test-user