MongoDB Kafka source connector

Hi Team,
Im trying to connect MongoDB with AWS Managed kafka using the source connector (downloaded from Confluent Hub), but while creating AWS connector im getting the error message “The connector configuration is invalid, Message: Request failed.”

configurations file in connector:

name=mongo-source
connector.class=com.mongodb.kafka.connect.MongoSourceConnector
tasks.max=1
# Connection and source configuration
connection.uri=<Connection.uri>
database=<database.name>
collection=<coll.name>
topic.prefix=Topic1

There is a blog post that discusses some of the considerations including network configuration that might be the issue.