Issue when creating DMS endpoint to connect with MSK using Mutual TLS authentication
I have setup DMS to connect to MySQL database as the source and Kafka as target.
I tested the source and target flow without TLS authentication works fine.Now I want to setup DMS with Kafka endpoint using TLS authentication.
I tried out this link to check if I am able to connect using TLS authentication to Kafka cluster using the certificates generated, which worked. I used this with Glue as well and the connectivity works.
Now for DMS, I followed the steps provided here ( Section: Using SSL authentication ). But when I test the endpoint I get the error: Test failed due to KMS key Exception : No permission to access Key 'arn:aws:kms:ap-southeast-2:xxxxxxxxxxxx:key/xxxxxxxxxxxxx'
. The KMS key here is the default key that DMS creates when we launch a replication instance.
I tried using a CMK for DMS and created the endpoint using this KMS key. But it did not work. In this case, the endpoint errored out saying it could not connect to Kafka.
Not really sure what the issue is. Has anyone come across this issue?
Hi, It's seems that your DMS instance is assuming an IAM Role with some missing authorization to access your KMS key. Did you already try to update your IAM role and allow access to your Key ARN ? Hope it helps.
Relevant questions
DMS - Elasticsearch as target - Failed to connect to database.
asked 10 months agoDMS - When to switch the application to the new target database
Accepted Answerasked 4 months agoSupport for RDS Oracle as source while using DMS SCN for CDC
Accepted Answerasked 4 years agoIssue when creating DMS endpoint to connect with MSK using Mutual TLS authentication
asked 5 months agoDMS - How to retain non-ASCII values when running DMS task from MySQL source to Redshift target
asked a month agoDo source filters speed up DMS from AWS RDS to S3?
asked 5 months agoCan DMS do mapping that is not simply 1-1 from source to target?
Accepted Answerasked 3 days agoDMS supports Super type for Redshift target with MongoDB source
asked a month agoError using Aurora Postgres version 11.8 as DMS source endpoint
asked 2 years agoValidationSettings are not supported for 's3' endpoint
asked 3 months ago