use ec2_public_ipv4 if set