From 9cd69a2b294717099c362fd14bc459311a1289bf Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Mon, 14 Jul 2014 17:24:10 -0700 Subject: [PATCH] aws: Expose host in the ConnInfo --- builtin/providers/aws/resource_aws_instance.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/builtin/providers/aws/resource_aws_instance.go b/builtin/providers/aws/resource_aws_instance.go index df00804a2..cfd96b05a 100644 --- a/builtin/providers/aws/resource_aws_instance.go +++ b/builtin/providers/aws/resource_aws_instance.go @@ -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 {