AWS DMS CDC task with Mongodb as source fails

0

Data migration tasks fails even after making all the changes in mongo db. Have created a role and user in the database I am using (non-root user account). But the changestream seems to be not working correctly.

Encountered an error while initializing change stream: 'not authorized on admin to execute command .....

The endpoint connection is successful. Please let me know what I am missing.

1개 답변
1

this could be due to missing permission to initialize change stream. More specifically this is for source mongodb 4.x onwards please refer to section which tells how to create a role with that permission and also how to assign the same to dms user. https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MongoDB.html#:~:text=Permissions%20needed%20when%20using%20MongoDB%20as%20a%20source%20for%20AWS%20DMS

AWS
답변함 2년 전
  • Hi team, Why is it a admin DB? Seems I never specified db before, how to modify the db name?

    Encountered an error while initializing change stream: 'not authorized on admin to execute command {....$db: "admin".....' [1020401] (change_streams_capture.c:356)

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

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

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

관련 콘텐츠