- Newest
- Most votes
- Most comments
It's important to clarify that while IAM can be used to control access to Amazon DocumentDB resources and actions at the AWS level, it does not directly handle authentication inside the DocumentDB database itself. In other words, you can use IAM to control who can perform actions such as creating, deleting, or modifying DocumentDB clusters, but when it comes to connecting to a DocumentDB database instance and executing database operations, you still need to use traditional database authentication methods
I am not aware with an approach similar to RDS authentication via IAM role (https://repost.aws/knowledge-center/users-connect-rds-iam),so fir DocumentDB I think you ll have to use user/password for now.
Hi,
I would say that is not possible to authenticate using IAM.
According to the AWS documentation, in Amazon DocumentDB, users authenticate to a cluster in conjunction with a password.
On the other hand, the following AWS Knowledge Center page mentions that yoy might receive an "Authentication failed" error when you connect to your instance due to an incorrect password or incorrect username, but does not mention anything about IAM.
Finally, on the following StackOverflow question, they mention that there is no support at this time for IAM authentication for connections to DocumentDB.
Amazon DocumentDB recently introduced a new functionality and it now supports IAM database authentication. See the following resources for more info:
https://aws.amazon.com/about-aws/whats-new/2024/06/amazon-documentdb-iam-database-authentication
https://docs.aws.amazon.com/documentdb/latest/developerguide/iam-identity-auth.html
Have you tried this link - https://docs.aws.amazon.com/documentdb/latest/developerguide/security-iam.html
Relevant content
- asked 2 years ago
- asked 2 months ago
- asked 6 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago