aws: Expose host in the ConnInfo

This commit is contained in:
Armon Dadgar 2014-07-14 17:24:10 -07:00
parent b56a7d6957
commit 9cd69a2b29
1 changed files with 4 additions and 0 deletions

View File

@ -88,6 +88,10 @@ func resource_aws_instance_create(
instance = instanceRaw.(*ec2.Instance) instance = instanceRaw.(*ec2.Instance)
// Initialize the connection info
rs.ConnInfo.Raw["type"] = "ssh"
rs.ConnInfo.Raw["host"] = instance.PublicIpAddress
// Set our attributes // Set our attributes
rs, err = resource_aws_instance_update_state(rs, instance) rs, err = resource_aws_instance_update_state(rs, instance)
if err != nil { if err != nil {