DocumentDB - IAM Authentication?

0

Does DocumentDB support not only user/password but also IAM authentication? I see here: https://docs.aws.amazon.com/documentdb/latest/developerguide/security_iam_service-with-iam.html#security_iam_service-with-iam-id-based-policies But I'm looking for an example with IAM.

Thanks!

已提問 2 個月前檢視次數 191 次
4 個答案
1
已接受的答案

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

profile picture
專家
已回答 2 個月前
profile picture
專家
已審閱 1 個月前
1

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.

profile picture
專家
已回答 2 個月前
profile picture
專家
已審閱 2 個月前
profile picture
專家
已審閱 2 個月前
1

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.

profile picture
專家
已回答 2 個月前
profile picture
專家
已審閱 2 個月前
profile picture
專家
已審閱 2 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南