Get public or private IP from Amazon EC2 using cli

Private IP address (PrivateIpAddress) for instance with tag Name = hostname01

  Public IP address (PrivateIpAddress) for instance with tag Name = hostname01

 

Read More