aws: Expose host in the ConnInfo
This commit is contained in:
parent
b56a7d6957
commit
9cd69a2b29
|
@ -88,6 +88,10 @@ func resource_aws_instance_create(
|
|||
|
||||
instance = instanceRaw.(*ec2.Instance)
|
||||
|
||||
// Initialize the connection info
|
||||
rs.ConnInfo.Raw["type"] = "ssh"
|
||||
rs.ConnInfo.Raw["host"] = instance.PublicIpAddress
|
||||
|
||||
// Set our attributes
|
||||
rs, err = resource_aws_instance_update_state(rs, instance)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue