As many of you know AWS have Auto-Assigned "Public" IP's and Elastic IP's for the instances, I can get the Elastic IP's via cli with the describe-addresses command: https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-addresses.html
Example:
aws ec2 describe-addresses --filters "Name=instance-id,Values=InstanceWithEIP_id" --output=json
And it returns the EIP but I want to know how can I get the Auto-Assigned IP via cli because the command with a instance-id from a non elastic-ip instance returns nothing.
Thanks