I'm trying to setup a IRSA(Iam Role for Service Account) in order to acces mongodb cluster from EKS cluster.The IRSA will then be attached to my EKS pod.(The goal is to setup passwordless authentication in mongodb atlas, and access mongodbfrom my EKS podusing IAM role)
As per the following documentation, a policy should be created an attached to the role.https://docs.aws.amazon.com/eks/latest/userguide/associate-service-account-role.html
The policy should define the permissions to the resource that my pod need to access. In my case, it is mongodb.
How can i specify in the policy that ressource to be access is mongodb?
Note: mongodb clusyer is setup in mongodb atlas and we are accessing through a VPC enpoint.
Thanks a lot.