I'm trying to access AWS RDS instance from my local PC.
I followed trouble-shooting procedure from :
I checked Public accessibility is YES
and switched to public subnet, but still cannot access RDS instance.
Can anyone help ?
My strategy for local development has usually been:
Have RDS instance in a private VPC.
Have an EC2 instance (cheapest one you can find) on the private VPC but also public SSH access.
Create an SSH tunnel through the EC2 instance to the RDS instance.
Configure your dev environment to connect to the SSH tunnel.
This is usually much easier to configure (and more secure to boot)
RDS has a security group attached, You need to white list your public ip in the security group, so that you can access the database from your pc.
connectivity and Security
tab, you can find the option called VPC security groups
inbound rules
tabEdit
type
column, for e.g mysqlSource
column , select My IP
my home
Note: Many internet service providers allocates dynamic ip addresses instead of static ip address, which means your ip address may change frequently. Hence you need to add your new ip address to the security group when this happens.