Problem while doing live migration

I am trying to migrate data from the AWS instance to the Atlas cluster using the live migration feature. But after validating the setting atlas throws an error “live Migration encountered an error: could not initialize source connection: could not connect to server: server selection error: server selection timeout, current topology:”. I have already created a replica set and whitelist the IPs in the security group. Can anyone please help regarding the issue?