title: Whitelist AWS self in inbound connection
body: <p>I am deploying a laravel installation in AWS, everything runs perfectly when I allow it to recieve all inbound traffic (EC2>Network&amp;Security>Security Groups>Edit inbound rules.), if I turn off inbound traffic and limit it to an IP it doesnt load the webpage it gives me this error: </p>
  
  <p><strong>PDO Exception SQLSTATE[HY000] [2002] Connection timed out</strong>  </p>
  
  <p>However for security reasons I dont want this setup like this, I dont want anyone being able to even try to reach my webapp. Everything is being hosted in AWS, I dont have any external entities, its running in RDS and EC2. I added en elastic IP address and whitelisted it, but that didnt work either. I followed every step in this tutorial : <strong><a href="http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/php-laravel-tutorial.html#php-laravel-tutorial-generate" rel="nofollow noreferrer">http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/php-laravel-tutorial.html#php-laravel-tutorial-generate</a></strong> </p>
  
  <p>Environmental variables are working as well as dependencies, well.. pretty much everything unless I restrict inbound traffic as I mentioned.</p>
  
  <p>How do I whitelist AWS own instance then to make this work with better security?</p>
  
  <p>Thank you!</p>