Matt,
Thanks for the advice. I will definitely look into security groups.
For now, I did some testing and if I grant access to a user for "Any
Host" this sort of solves my problem. Security seems to be set to not
allow connections from external hosts ( outside my subnet ) and this
includes other EC2 instances on other account.
I still have the issue of having to know the current internal IP of
the MySQL server. So, in this setup, I can easily add PHP servers, but
if I need to tear down the MySQL server and start a new one, I will
need to re-enter the host address for each node accessing the MySQL
server. This will of course be for each node and for each connection!
It would be much more ideal to have an internal domain name such as
master.mysubnet.com or something so that I could kind of set this by
default, and it would just get updated whenever my MySQL server
changed internal IPs. With this configuration, my PHP nodes would
always know where my MySQL server was, and my MySQL server would
always allow them to connect.
It really isn't as huge deal at the moment as I am still only dealing
with a single PHP node and a single MySQL node, but it would be nice
to have this plan in place for the future....
-micah