title: Provision Digitalocean instance using Terraform
body: <p>I am trying to provision a digital ocean droplet using Terraform. I appear to be missing the host argument in the connection block, but am not certain what value I need for digitalocean.</p>
  
  <p>This is my configuration file:</p>
  
  <pre><code>resource "digitalocean_droplet" "test" {                                                                                                                                 
     image = "ubuntu-18-04-x64"                                                                                                                                           
     name = "test"                                                                                                                                                        
     region = "nyc1"                                                                                                                                                      
     size = "512mb"                                                                                                                                                       
     private_networking = true                                                                                                                                            
     ssh_keys = [                                                                                                                                                         
     "${var.ssh_fingerprint}"                                                                                                                                             
    ]                                                                                                                                                                      
  
    connection {                                                                                                                                                           
      user = "root"                                                                                                                                                      
      type = "ssh"                                                                                                                                                       
      private_key = "${file("~/.ssh/id_rsa")}"                                                                                                                           
      timeout = "2m"                                                                                                                                                     
    }                                                                                                                                                                      
  
    provisioner "remote-exec" {                                                                                                                                            
      inline = [                                                                                                                                                         
        "export PATH=$PATH:/usr/bin",                                                                                                                                    
        # install nginx                                                                                                                                                  
        "sudo apt-get update",                                                                                                                                           
        "sudo apt-get -y install nginx"                                                                                                                                  
      ]                                                                                                                                                                  
    }                                                                                                                                                                      
  
  }        
  </code></pre>
  
  <p>"terraform validate" gives me the error:</p>
  
  <blockquote>
    <p>Error: Missing required argument</p>
    
    <p>on frontend.tf line 11, in resource "digitalocean_droplet" "test":
      11:   connection {</p>
    
    <p>The argument "host" is required, but no definition was found.</p>
  </blockquote>