Reputation: 590
I was googling all the way round to find out a solution for this: Is there a way to create a read repica of an RDS instance using RDS API?
I am creating an application in java which needs to create a read replica of an instance which I mention. Any idea how to do this? Any help would be really appreciated.
Upvotes: 0
Views: 334
Reputation: 36073
To create a read-replica of an RDS instance, you can use the CreateDBInstanceReadReplica
API method:
http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstanceReadReplica.html
Here is the documentation for the AWS SDK for Java:
http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/index.html
You would use com.amazonaws.services.rds.AmazonRDS.createDBInstanceReadReplica
Upvotes: 1