Manage AWS DMS endpoint credentials with AWS Secrets Manager for target endpoint as Amazon Documentdb.

0

When configuring AWS DMS endpoints for Amazon DocumentDB (with MongoDB compatibility) using AWS secrets manager, test connection fails with authentication error. While providing the connection details manually for target documentdb during endpoint creation it works perfectly fine. We made sure secrets manager is created perfectly for Amazon DocumentDB (with MongoDB compatibility) with all the required information.

Test connection error using AWS secrets manager:

During investigating the above error in Amazon Documentdb audit log we found it doesn't use correct user details. Instead of taking correct username it shows user as "SECRETS_MANAGER_SECRET_VALUE_STUB". Error from audit log is as below:

"param": { "user": "SECRETS_MANAGER_SECRET_VALUE_STUB", "mechanism": "SCRAM-SHA-1", "success": false, "message": "User does not exist", "error": 18 } }

Seems like a bug in DMS endpoint creation for Amazon Documentdb (with MongoDB compatibility) using AWS Secrets Manager

Note: Our setup works perfectly for AWS RDS postgres databases. However it creates an issue for Amazon Documentdb only.

1개 답변
0

Hi, I did the following steps and got it working correctly. Don't think there is a bug.
1> Create a document db cluster.
2> Created a secret with the option "Credentials for Amazon DocumentDB database".
3> Created a DMS replication instance in the same vpc and az where the document db cluster is created.
4> Created an DMS endpoint and ran a test connection using the Replication instance.
5> The test was successful.
Pls refer to the following video https://www.youtube.com/watch?v=6daFZWPKtWA

AWS
Joyanta
답변함 8달 전
  • Hi, I did the same steps as mentioned above, same error still persists. Not sure why DMS endpoint is not picking the correct username from secrets manager. All the permission is in place. Could it be related to documentdb version. I am currently using version 4.0.0

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인