Can anyone help with the AWS DMS target endpoint setup for OpenSearch, we are trying CDC option from a database into OpenSearch

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
OpenSearch 2.7

Describe the issue:
AWS DMS target endpoint unable to assume AWS role and connect to OpenSearch domain

Configuration:
We did the AWS role mapping for the OpenSearch local user with proper cluster and index permissions.
AWS roles, and policies are created as well.

Relevant Logs or Screenshots:
The IAM Role arn:aws:iam::xxxx:role/custom-opensearch-role1 is not configured properly.AccessDenied

Hi @sundarkannan

How have you deployed OpenSearch?

Have you used the Amazon OpenSearch Service, or have you deployed OpenSearch using one of the following methods:
Installing OpenSearch - OpenSearch documentation ?

Hi Thanks for the response.
Yes I have working OpenSearch and I am able to connect from AWS DMS Target endpoint with OpenSearch now. The resolution was to use non master internal user.