Retrieve public AWS IP by querying metadata
Retrieve public AWS IP by querying metadata

SSH to the remote instance and query directly the metadata. This ensures
that we retrieve the valid public IP and not a DNS alias or other IP.

We must do this because the AWS vagrant provider does not provide a way
to query the assigned public IP. The only way is via parsing the output
of `vagrant ssh-config` but depending on the plugin version you might
get the IP or DNS VM alias
(See https://github.com/mitchellh/vagrant-aws/pull/355)

jimconner/paas-cf,alphagov/paas-cf,alphagov/paas-cf,jimconner/paas-cf,jimconner/paas-cf,alphagov/paas-cf,alphagov/paas-cf,jimconner/paas-cf,alphagov/paas-cf,alphagov/paas-cf,alphagov/paas-cf,jimconner/paas-cf,jimconner/paas-cf,alphagov/paas-cf,jimconner/paas-cf