When you create a new amazon rds instance, you are offered to choose true/false for the "publicly accessible" option, Is there a way to change this for an existing instance?
EDIT: Yes, it is now possible to change the "Publicly Accessible" property from "No" to "Yes". (And vice-versa) Hooray!
Old answer left here for historic purposes: No.
It would be nice though, eh? As a workaround your best option is the following:
Evidence:
I stumbled across this looking for the same answer. Sadly it looks like 10 months later the answer is still "no" - you can't change an existing DB to be publicly available.
However - you can come close... Even though it isn't publicly available, it is available to EC2 instances you launch in that same VPC. And you can set up a SSH tunnel from your computer through an EC2 instance to that DB - effectively giving you access to the instance without having to relaunch it from a snapshot.
You didn't specify your computer's OS, so I'm conveniently going to assume linux...
First, launch an EC2 instance, give it access to your RDS instance via security groups, make sure you can log in to that EC2 instance, and make sure you can access the RDS DB from that EC2 instance. If any of that fails, the rest of this won't work.
Next, setup a tunnel:
ssh -v -N -L 1234:rds.endpoint:3306 [email protected]
Where rds.endpoint is the URL for your RDS instance, your.ec2.host is the host name for your EC2 instance, and yourec2username is your username on the EC2 host.
You can then connect to the RDS instance with
mysql -p -u dbuser -h 127.0.0.1 -P 1234 dbname --password=dbpassword
Hope that helps the next person that stumbles across this...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With