The IP address of your AWS instance will be the IP address of the RDS instance.
If your host name for your AWS instance is blah.blah.amazonaws.com , you can use the dig command (on Linux computers) or the ping command on Windows and Linux to find out the host IP address:
ping blah.blah.amazonaws.com
This will return the host IP address (something like this):
c:\ping www.google.com Pinging www.google.com [216.58.210.100] with 32 bytes of data: Reply from 216.58.210.100: bytes=32 time=14ms TTL=58 Reply from 216.58.210.100: bytes=32 time=15ms TTL=58 Reply from 216.58.210.100: bytes=32 time=14ms TTL=58
Thus, the IP address of www.google.com is 216.58.210.100. dig will give you more output, but there is also an IP address. But sometimes the actual IP address of your AWS instance is actually in the hostname itself. For example:
ip-12-34-56-78.us-west-2.compute.internal
The IP address 12.34.56.78 already in the name (depending on your instance). You can find the host name in the AWS / Dashboard.
Max worg
source share