I have created a AWS MSK Cluster with both IAM and SCRAM authentication enabled. When trying to create a MongoDB sink connector that writes messages from kafka topics to MongoDB, the connector creation fails with a message saying
There is an issue with the connector
Code: UnknownError.Unknown
Message: The last operation failed. Retry the operation.
Here is the Trust relations in the Role i.e created
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "kafkaconnect.amazonaws.com"
},
"Action": "sts:AssumeRole",
"Condition": {
"StringEquals": {
"aws:SourceAccount": "1234567890"
},
"ArnLike": {
"aws:SourceArn": "arn:aws:kafkaconnect:us-west-2:1234567890:connector/*"
}
}
}
]
}
Permissions assigned to the role
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"kafka-cluster:*",
"kafkaconnect:*",
"kms:Decrypt",
"secretsmanager:GetSecretValue",
"s3:*",
"kafka:*",
"logs:*"
],
"Resource": "*"
}
]
}
Why is the connector creation failing and there's absolutely no logs created in CloudWatch