I'm not able to connect to my database in RDS from local machine....
Here is my code:
Amazon.RDS.AmazonRDSClient client = new Amazon.RDS.AmazonRDSClient(myPublicKey, myPrivateKey);
Amazon.RDS.Model.DescribeDBInstancesRequest instanceRequest = new Amazon.RDS.Model.DescribeDBInstancesRequest();
Amazon.RDS.Model.DescribeDBInstancesResponse instanceResponse = new Amazon.RDS.Model.DescribeDBInstancesResponse();
instanceResponse = client.DescribeDBInstances(instanceRequest);
Amazon.RDS.Model.DBInstance instance = instanceResponse.DescribeDBInstancesResult.DBInstance[0];
The DBInstance
list is always empty i.e. the Count is 0. Whereas I know that I have RDS instances UP and running as I have created them using the management console.
Also, when I prepare the connection string using the endpoint which I got from the RDS management console, I'm able to create table and all.
I have provided access in the security group.
Am I missing something?