简体   繁体   中英

Unable to connect to AWS RDS restored instance

I have created a RDS instance with PostgreSQL database connected in PGAdmin tool and also connected the instance with the help of psql from local system

psql --host=XXX.XXX.us-east-1.rds.XX.com --port=5433 --username=myusername --password --dbname=MyDB

I have performed several DB operation and then i have deleted the instance and saved the final snapshot of my instance before deleting.

And then i have restore the final snapshot and started the instance again and now am unable to connect to this instance

What goes wrong when restoring the RDS snapshot...?

When you delete an instance, all properties associated with it are deleted or detached. This is not the same as stopping an ec2 instance. you need to fully recreate the RDS instance identically to the previous instance. you may not be Assigned the same IP address, endpoint name. security groups, routing associations, VPC and zone placement all need consideration. It is best to use a script or cloud formation to do this as its nearly impossible to replicate the configuration exactly by memory. IP and DNS may need to be changed on your client app. A common mistake is to neglect to set public Access who's is off by default, but often enabled for development while learning the subtleties of private sub nets, security groups,route tables etc.

检查VPC配置,还原时可能选择了创建新的VPC安全组,该组默认拒绝大多数IP。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM