amazon web services - Getting AppHarbor and AWS RDS MySql to play nice -


i have app 2 workers (web , background) on appharbor connect mysql database hosted on amazon's rds.

i keep getting "unable connect of specified mysql hosts." exception.

the rds instance in us-east region , have added following appharbor cidr security group.

  • 50.17.211.192/28
  • 54.235.159.192/27

i have added own cidr security group , connect instance fine. when app running on appharbor fails.

my connection string (censored) is:

server=myinstancexxxx.cykjvptrw5xs.us-east-1.rds.amazonaws.com;database=mydatabase;uid=xxxxxx;pwd=xxxxx;

i have tried including port 3306 on server endpoint made no difference.

am missing on getting 2 play nice 1 another?

by default appharbor use amazon's internal dns service resolving hostnames. because of amazon rds instances in same region appharbor resolve private ip addresses rather public ones listed in knowledge base article, setting rules based on public ips not work of time.

in case amazon's dns service becomes unavailable we'll fail on external dns service. means you'll still have configure external ips highest availability external dns service resolve public ips. way can ensure application resilient towards dns failures.

you can set security group based access rules rds security group. we've updated this knowledge base article section amazon rds can find information necessary set up.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -