Public ip address on ec2

How doI get the public ip address on ec2?

this returns the private ip address

node[:ipaddress]

Thanks

node['ec2']['public_ipv4']

If you are on VPC, make sure you have the ohai hint set (this is done automatically by knife-ec2).

--Noah

On Aug 1, 2014, at 11:13 PM, David Montgomery davidmontgomery@gmail.com wrote:

How doI get the public ip address on ec2?

this returns the private ip address

node[:ipaddress]

Thanks