>>> myec2 = boto3.resource('ec2')
>>> myinstance = myec2.Instance('i-079d4393ecd1fb49c')
>>> myinstance.public_ip_address
'3.126.83.23'
