Connect to RDS from Docker Swarm
Unable to Connect RDS
I created Swarm on AWS based on this page: https://docs.docker.com/docker-for-aws/. Then I created RDS. Everything is ok, but I can’t access my RDS. RDS config is Publicly accessible: Yes and Inbound is 0.0.0.0/0 . So I can telnet from my local computer to RDS. But when I ssh to Swarm Manager EC2, can’t telnet to RDS. My Swarm config Outbound is 0.0.0.0/0. So I don’t understand what problem is. Could anyone help me to figure out this? Thank you so much!
Steps to reproduce the behavior
- Created Swarm on AWS based on https://docs.docker.com/docker-for-aws/ (Outbound Node + Manager on Swarm 0.0.0.0/0)
- Created RDS (Publicly accessible: Yes, Inbound: 0.0.0.0/0)
- Can telnet to RDS from other EC2, Local computer
- SSH to Swarm manager, and unable to access RDS(telnet)