diff --git a/builtin/providers/cloudstack/resource_cloudstack_instance.go b/builtin/providers/cloudstack/resource_cloudstack_instance.go index f0e52b5887..b88e4a255c 100644 --- a/builtin/providers/cloudstack/resource_cloudstack_instance.go +++ b/builtin/providers/cloudstack/resource_cloudstack_instance.go @@ -156,6 +156,12 @@ func resourceCloudStackInstanceCreate(d *schema.ResourceData, meta interface{}) d.SetId(r.Id) + // Set the connection info for any configured provisioners + d.SetConnInfo(map[string]string{ + "host": r.Nic[0].Ipaddress, + "password": r.Password, + }) + return resourceCloudStackInstanceRead(d, meta) }