title: AWS RDS public access
body: <p>I am stumped with AWS configuration. My goal is to create a database that's accessible from inside and outside the network.</p>
  
  <p>Here is what I have. RDS instance runs postgresql. Connections from inside the VPC work correctly.</p>
  
  <p>The endpoint is set up to be publicly accessible - and when accessed from the outside, does in fact resolve. However, the connection hangs, indicating the traffic is blocked by somebody.</p>
  
  <p>Security group is good:<br>
  Inbound: Port 5432 from 0.0.0.0/0
  Outbound: all from 0.0.0.0/0</p>
  
  <p>Subnets. I assume that's where something is wrong, right?
  At first I had two private and two public subnets in the subnet group. To simplify, I removed the private ones without changing the outcome.</p>
  
  <p>So we have two public subnets:</p>
  
  <p><a href="https://i.stack.imgur.com/mFTEJ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/mFTEJ.png" alt="subnet group"></a></p>
  
  <p>Both have the same route table with an Internet Gateway</p>
  
  <p><a href="https://i.stack.imgur.com/EbWI8.png" rel="noreferrer"><img src="https://i.stack.imgur.com/EbWI8.png" alt="subnet"></a></p>
  
  <p><a href="https://i.stack.imgur.com/ZCook.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ZCook.png" alt="internet gateway"></a></p>
  
  <p>As far as I can tell, everything is in working order... So who is blocking my database connection?</p>