I have a cluster in AWS EKS and 1 node group which has 1 node, how to display node and pods using aws api? I have credentials for service account, how to use these credentials in an API and get list of available nodes and pods?
when I try to execute command kubectl get pods
it shows an error:
An error occurred (AccessDenied) when calling the AssumeRole operation: User: >arn:aws:iam:xxxx:user/xx is not authorized to perform: sts:AssumeRole on resource: >arn:aws:iam::xx:user/xx