How to get private IPs of instances in amazon web services?
<p>I want to get all the private IP addresses of instances running in my aws account.</p>

<p>Therefore I tried following command.</p>

<pre><code>/usr/share/ec2-api-tools-1.5.2.5/bin/ec2-describe-instances |grep "INSTANCE" |awk '{print $13}'
</code></pre>

<p>but problem is that some instances having public IP and some are not.</p>

<p>Therefore column of private IP changes and in above command $13 does not give expected result.</p>

<p>Therefore kindly suggest.</p>