I have a RDS postgreSQL intsnce in my AWS. In my RDS PostgreSQL instance public accessibilty is 'NO' and i have my own VPC and private subnet. I choose that private subnet and VPC for my instance. I created a lambda function to connect the same RDS instance using the endpoint and checked. It was successfully connected.
Now, I want to access the RDS instance and create some table on this RDS postgreSQL instance. How could I access this RDS Instance and how to create tables on the same?
I installed AWS CLI in my system. I used below command to connect with AWS CLI.
psql -h endpoint -p 5432 -U username Databasename
But i am getting an error like "connection time out". But opened the port 5432 for the same security group.
Is there any way to connect using AWS CLI? I have an EC2 instance also.
Is there anyone to help me? This would be great if you can help me in this. Waiting for your favorable replay..