@Oscar Bautista
You don't need to create a special "local" CouchDB account inside Cloudant for replication.
In IBM Cloudant, authentication is handled through service credentials, not traditional CouchDB admin users.
Here's what you should do:
First, go to your Cloudant instance in IBM Cloud → Service Credentials → create a New Credential.
This will generate a username, password, and url. That's the account you'll use for replication.
Then create a replication document like this:
{
"source": "http://remote_user:remote_pass@remote-host:5984/dbname",
"target": "https://cloudant_user:cloudant_pass@your-account.cloudantnosqldb.appdomain.cloud/dbname",
"create_target": true
}
Post it to:
POST https://your-account.cloudantnosqldb.appdomain.cloud/_replicator
That's it.
Best practice: create dedicated service credentials with access only to the required database (avoid using admin-level credentials). Cloudant uses IAM under the hood, so no separate database-level user creation is needed.
------------------------------
Venkata Thej deep Jakkaraju
------------------------------