use FQDN instead of ec2[:instance_id] when not running in ec2

use FQDN instead of ec2[:instance_id] when not running in ec2