Good morning
We do have a Spring boot application deployed in a EKS cluster.
The application access a mongodb deployed in mongodb Atlass cluster. The connexion to the mongodb is currently done with userName/password.
I’m investigating on how to use AWS IAM role instead of userName/password.
From mongodb documentation, the setps should be:
- Assign the role to my eks pod
- manually assume the IAM role to connect to my cluster
But the steps are not really well described.
Does anyone have a well details steps to achieved this please?
- What kind of role should be created in AWS console?
- How to assign the role to my eks pod?
- From Java source code, how to manually assume the IAM role to connect to my my mongodb cluster from eks pod?
Thanks a lot