Giter VIP home page Giter VIP logo

terraform-provider-dockermachine's Introduction

terraform-provider-dockermachine

Docker machine provider for Terraform

Go Report Card Build Status

Requisites

Note: docker-machine is not required as its library is embedded into the provider.

Install

$ go get github.com/gstruct/terraform-provider-dockermachine

Usage

This provider makes available to Terraform all the docker-machine drivers as resources named "dockermachine_<drivername>".
All the creation flags of each driver (common or specific) are available as attributes of the resource, with dash characters ("-") replaced by underlines ("_").
Furthermore, the following computed attributes are available:

  • address: IP address of the docker machine
  • docker_url: URL of the docker daemon
  • docker_version: version of the docker daemon
  • ssh_hostname: SSH hostname
  • ssh_keypath: SSH private key path
  • ssh_port: SSH port
  • ssh_username: SSH username

Finally the state of the machine can be set using the attribute "state", either "running" or "stopped". Upon refresh, state will contain the actual state of the machine, lowercased.

Currently, any change to resource attributes, except for the "state" attribute, will trigger a destroy-create cycle.

The following parameters can be set at provider level:

  • debug: boolean, enables docker-machine debug output in Terraform log
  • storage_path: set default storage path for docker-machine
  • certs_directory: set default path for docker-machine certs directory

Example

resource "dockermachine_virtualbox" "node" {
    count = 2
    name = "${format("node-%02d", count.index+1)}"
    virtualbox_cpu_count = 2
    virtualbox_memory = 1024
    
    provisioner "remote-exec" {
        inline = [
            "touch /tmp/this_is_a_test",
        ]
        connection {
            type        = "ssh"
            host        = "${self.ssh_hostname}"
            port        = "${self.ssh_port}"
            user        = "${self.ssh_username}"
            private_key = "${file("${self.ssh_keypath}")}"
        }
    }
}

terraform-provider-dockermachine's People

Contributors

giacomocariello avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

terraform-provider-dockermachine's Issues

VMware vSphere: network 'VM Network' not found

I don't know if this is an issue in your provider or with docker-machine driver for vSphere, but when I pass a network into a dockermachine_vmwarevsphere resource (vmwarevsphere_network = ["Data 172"]) it doesn't seem to accept the value and falls back to default value VM Network (https://github.com/docker/machine/blob/1e3b6b64504f2970252b06119d6dc1fb1982b4b4/drivers/vmwarevsphere/vsphere.go#L130).

This is where the value is coming from: https://github.com/docker/machine/blob/1e3b6b64504f2970252b06119d6dc1fb1982b4b4/drivers/vmwarevsphere/vsphere.go#L374

Hopefully you can help me. Here's my debug output:

module.rancher.module.rancher_cluster.module.worker_node.module.worker.dockermachine_vmwarevsphere.vsphere_node[0]: Creating...
  address:                    "" => "<computed>"
  certs_directory:            "" => "<computed>"
  docker_url:                 "" => "<computed>"
  docker_version:             "" => "<computed>"
  name:                       "" => "worker-01"
  ssh_hostname:               "" => "<computed>"
  ssh_keypath:                "" => "<computed>"
  ssh_port:                   "" => "<computed>"
  ssh_username:               "" => "<computed>"
  state:                      "" => "running"
  storage_path_computed:      "" => "<computed>"
  swarm:                      "" => "false"
  swarm_experimental:         "" => "false"
  swarm_master:               "" => "false"
  tls_server_cert:            "" => "<computed>"
  tls_server_key:             "" => "<computed>"
  vmwarevsphere_cpu_count:    "" => "2"
  vmwarevsphere_datacenter:   "" => "<secret>"
  vmwarevsphere_datastore:    "" => "<secret>"
  vmwarevsphere_disk_size:    "" => "20"
  vmwarevsphere_hostsystem:   "" => "<secret>"
  vmwarevsphere_memory_size:  "" => "2"
  vmwarevsphere_network.#:    "" => "1"
  vmwarevsphere_network.0:    "" => "Data 172"
  vmwarevsphere_password:     "" => "<secret>"
  vmwarevsphere_username:     "" => "<secret>"
  vmwarevsphere_vcenter:      "" => "<secret>"
  vmwarevsphere_vcenter_port: "" => "443"

2018-04-01T05:52:12.158Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Plugin server listening at address 127.0.0.1:20956
2018-04-01T05:52:12.158Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: () Calling .GetVersion
2018-04-01T05:52:12.159Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Using API Version  1
2018-04-01T05:52:12.159Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: () Calling .SetConfigRaw
2018-04-01T05:52:12.159Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: () Calling .GetMachineName
2018-04-01T05:52:12.159Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: (worker-01) Calling .GetMachineName
2018-04-01T05:52:12.160Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: (worker-01) Calling .DriverName
2018-04-01T05:52:12.160Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: (worker-01) Calling .GetCreateFlags
2018-04-01T05:52:12.161Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: (worker-01) Calling .SetConfigFromFlags
2018-04-01T05:52:12.161Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Reading certificate data from C:\Users\gaui\.docker\machine\certs\ca.pem
2018-04-01T05:52:12.161Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Decoding PEM data...
2018-04-01T05:52:12.161Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Parsing certificate...
2018-04-01T05:52:12.161Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Reading certificate data from C:\Users\gaui\.docker\machine\certs\cert.pem
2018-04-01T05:52:12.162Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Decoding PEM data...
2018-04-01T05:52:12.162Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Parsing certificate...
2018-04-01T05:52:12.162Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: (worker-01) Calling .PreCreateCheck
2018-04-01T05:52:12.162Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: (worker-01) DBG | Connecting to vSphere for pre-create checks...
2018-04-01T05:52:12.199Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Plugin server listening at address 127.0.0.1:20959
2018-04-01T05:52:12.199Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: () Calling .GetVersion
2018-04-01T05:52:12.200Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Using API Version  1
2018-04-01T05:52:12.200Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: () Calling .SetConfigRaw
2018-04-01T05:52:12.200Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: () Calling .GetMachineName
2018-04-01T05:52:12.200Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: (worker-03) Calling .GetMachineName
2018-04-01T05:52:12.201Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: (worker-03) Calling .DriverName
2018-04-01T05:52:12.201Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: (worker-03) Calling .GetCreateFlags
2018-04-01T05:52:12.202Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: (worker-03) Calling .SetConfigFromFlags
2018-04-01T05:52:12.202Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Reading certificate data from C:\Users\gaui\.docker\machine\certs\ca.pem
2018-04-01T05:52:12.202Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Decoding PEM data...
2018-04-01T05:52:12.202Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Parsing certificate...
2018-04-01T05:52:12.202Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Reading certificate data from C:\Users\gaui\.docker\machine\certs\cert.pem
2018-04-01T05:52:12.202Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Decoding PEM data...
2018-04-01T05:52:12.202Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Parsing certificate...
2018-04-01T05:52:12.203Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: (worker-03) Calling .PreCreateCheck
2018-04-01T05:52:12.203Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: (worker-03) DBG | Connecting to vSphere for pre-create checks...
2018-04-01T05:52:12.240Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Plugin server listening at address 127.0.0.1:20962
2018-04-01T05:52:12.241Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: () Calling .GetVersion
2018-04-01T05:52:12.241Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Using API Version  1
2018-04-01T05:52:12.241Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: () Calling .SetConfigRaw
2018-04-01T05:52:12.241Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: () Calling .GetMachineName
2018-04-01T05:52:12.242Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: (manager-01) Calling .GetMachineName
2018-04-01T05:52:12.242Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: (manager-01) Calling .DriverName
2018-04-01T05:52:12.242Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: (manager-01) Calling .GetCreateFlags
2018-04-01T05:52:12.242Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: (manager-01) Calling .SetConfigFromFlags
2018-04-01T05:52:12.243Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Reading certificate data from C:\Users\gaui\.docker\machine\certs\ca.pem
2018-04-01T05:52:12.243Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Decoding PEM data...
2018-04-01T05:52:12.243Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Parsing certificate...
2018-04-01T05:52:12.243Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Reading certificate data from C:\Users\gaui\.docker\machine\certs\cert.pem
2018-04-01T05:52:12.243Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Decoding PEM data...
2018-04-01T05:52:12.243Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Parsing certificate...
2018-04-01T05:52:12.243Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: (manager-01) Calling .PreCreateCheck
2018-04-01T05:52:12.244Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: (manager-01) DBG | Connecting to vSphere for pre-create checks...
2018-04-01T05:52:12.280Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Plugin server listening at address 127.0.0.1:20965
2018-04-01T05:52:12.281Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: () Calling .GetVersion
2018-04-01T05:52:12.281Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Using API Version  1
2018-04-01T05:52:12.281Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: () Calling .SetConfigRaw
2018-04-01T05:52:12.281Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: () Calling .GetMachineName
2018-04-01T05:52:12.281Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: (worker-02) Calling .GetMachineName
2018-04-01T05:52:12.282Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: (worker-02) Calling .DriverName
2018-04-01T05:52:12.282Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: (worker-02) Calling .GetCreateFlags
2018-04-01T05:52:12.282Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: (worker-02) Calling .SetConfigFromFlags
2018-04-01T05:52:12.283Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Reading certificate data from C:\Users\gaui\.docker\machine\certs\ca.pem
2018-04-01T05:52:12.283Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Decoding PEM data...
2018-04-01T05:52:12.283Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Parsing certificate...
2018-04-01T05:52:12.283Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Reading certificate data from C:\Users\gaui\.docker\machine\certs\cert.pem
2018-04-01T05:52:12.283Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Decoding PEM data...
2018-04-01T05:52:12.283Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: Parsing certificate...
2018-04-01T05:52:12.283Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: (worker-02) Calling .PreCreateCheck
2018-04-01T05:52:12.283Z [DEBUG] plugin.terraform-provider-dockermachine_v0.1.3.exe: (worker-02) DBG | Connecting to vSphere for pre-create checks...
2018/04/01 05:52:14 [ERROR] root.rancher.rancher_cluster.worker_node.worker: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred:

* dockermachine_vmwarevsphere.vsphere_node.0: Error with pre-create check: "network 'VM Network' not found"
2018/04/01 05:52:14 [ERROR] root.rancher.rancher_cluster.worker_node.worker: eval: *terraform.EvalSequence, err: 1 error(s) occurred:

* dockermachine_vmwarevsphere.vsphere_node.0: Error with pre-create check: "network 'VM Network' not found"
2018/04/01 05:52:14 [TRACE] [walkApply] Exiting eval tree: module.rancher.module.rancher_cluster.module.worker_node.module.worker.dockermachine_vmwarevsphere.vsphere_node[0]
2018/04/01 05:52:14 [ERROR] root.rancher.rancher_cluster.manager_node.manager: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred:

* dockermachine_vmwarevsphere.vsphere_node: Error with pre-create check: "network 'VM Network' not found"
2018/04/01 05:52:14 [ERROR] root.rancher.rancher_cluster.manager_node.manager: eval: *terraform.EvalSequence, err: 1 error(s) occurred:

* dockermachine_vmwarevsphere.vsphere_node: Error with pre-create check: "network 'VM Network' not found"
2018/04/01 05:52:15 [ERROR] root.rancher.rancher_cluster.worker_node.worker: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred:

* dockermachine_vmwarevsphere.vsphere_node.1: Error with pre-create check: "network 'VM Network' not found"
2018/04/01 05:52:15 [ERROR] root.rancher.rancher_cluster.worker_node.worker: eval: *terraform.EvalSequence, err: 1 error(s) occurred:

* dockermachine_vmwarevsphere.vsphere_node.1: Error with pre-create check: "network 'VM Network' not found"
2018/04/01 05:52:15 [TRACE] [walkApply] Exiting eval tree: module.rancher.module.rancher_cluster.module.worker_node.module.worker.dockermachine_vmwarevsphere.vsphere_node[1]

amazonec2 driver does not set security group ID

terraform apply fails with an error message indicating an empty value for groupId:

$ terraform apply -auto-approve
dockermachine_amazonec2.node: Creating...
  address:                          "" => "<computed>"
  amazonec2_block_duration_minutes: "" => "0"
  amazonec2_device_name:            "" => "/dev/sda1"
  amazonec2_instance_type:          "" => "t2.micro"
  amazonec2_region:                 "" => "us-east-1"
  amazonec2_retries:                "" => "5"
  amazonec2_root_size:              "" => "16"
  amazonec2_security_group.#:       "" => "1"
  amazonec2_security_group.0:       "" => "docker-machine"
  amazonec2_spot_price:             "" => "0.50"
  amazonec2_ssh_port:               "" => "22"
  amazonec2_ssh_user:               "" => "ubuntu"
  amazonec2_volume_type:            "" => "gp2"
  amazonec2_zone:                   "" => "a"
  certs_directory:                  "" => "<computed>"
  docker_url:                       "" => "<computed>"
  docker_version:                   "" => "<computed>"
  name:                             "" => "node-01"
  ssh_hostname:                     "" => "<computed>"
  ssh_keypath:                      "" => "<computed>"
  ssh_port:                         "" => "<computed>"
  ssh_username:                     "" => "<computed>"
  state:                            "" => "running"
  storage_path_computed:            "" => "<computed>"
  swarm:                            "" => "false"
  swarm_experimental:               "" => "false"
  swarm_master:                     "" => "false"
  tls_server_cert:                  "" => "<computed>"
  tls_server_key:                   "" => "<computed>"

Error: Error applying plan:

1 error(s) occurred:

* dockermachine_amazonec2.node: 1 error(s) occurred:

* dockermachine_amazonec2.node: Error creating machine: Error in driver during machine creation: Error launching instance: InvalidParameterValue: Value () for parameter groupId is invalid. The value cannot be empty
        status code: 400, request id: 9199eb24-b64a-48c4-9f23-7148d8e8b6df

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.

groupId seems to relate to the AWS security group. A similar error message was handled in docker/machine#3242. Is that maybe related to the fix of #1 which also was about the list handling?

The call to the EC2 API includes an empty value for the SecurityGroupId:

2019-04-15T18:16:51.818+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG | no security groups to configure in vpc-5740c43c
2019-04-15T18:16:51.818+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG | launching instance in subnet subnet-6380c608
2019-04-15T18:16:51.819+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG | 2019/04/15 18:16:51 DEBUG: Request ec2/RunInstances Details:
2019-04-15T18:16:51.819+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG | ---[ REQUEST POST-SIGN ]-----------------------------
2019-04-15T18:16:51.819+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG | POST / HTTP/1.1
2019-04-15T18:16:51.819+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG | Host: ec2.eu-central-1.amazonaws.com
2019-04-15T18:16:51.819+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG | User-Agent: aws-sdk-go/1.4.10 (go1.12.4; linux; amd64)
2019-04-15T18:16:51.819+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG | Content-Length: 576
2019-04-15T18:16:51.819+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG | Content-Type: application/x-www-form-urlencoded; charset=utf-8
2019-04-15T18:16:51.819+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG | X-Amz-Date: 20190415T161651Z
2019-04-15T18:16:51.819+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG | Accept-Encoding: gzip
2019-04-15T18:16:51.819+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG |
2019-04-15T18:16:51.819+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG | Action=RunInstances&BlockDeviceMapping.1.DeviceName=%2Fdev%2Fsda1&BlockDeviceMapping.1.Ebs.DeleteOnTermination=true&BlockDeviceMapping.1.Ebs.VolumeSize=16&BlockDeviceMapping.1.Ebs.VolumeType=gp2&EbsOptimized=false&IamInstanceProfile.Name=&ImageId=ami-bc4925d3&InstanceType=t2.micro&KeyName=node-01&MaxCount=1&MinCount=1&Monitoring.Enabled=false&NetworkInterface.1.AssociatePublicIpAddress=true&NetworkInterface.1.DeviceIndex=0&NetworkInterface.1.SecurityGroupId=&NetworkInterface.1.SubnetId=subnet-6380c608&Placement.AvailabilityZone=eu-central-1a&UserData=&Version=2016-04-01
2019-04-15T18:16:51.819+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG | -----------------------------------------------------
2019-04-15T18:16:52.131+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG | 2019/04/15 18:16:52 DEBUG: Response ec2/RunInstances Details:
2019-04-15T18:16:52.131+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG | ---[ RESPONSE ]--------------------------------------
2019-04-15T18:16:52.131+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG | HTTP/1.1 400 Bad Request
2019-04-15T18:16:52.131+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG | Connection: close
2019-04-15T18:16:52.132+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG | Transfer-Encoding: chunked
2019-04-15T18:16:52.132+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG | Date: Mon, 15 Apr 2019 16:16:51 GMT
2019-04-15T18:16:52.132+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG | Server: AmazonEC2
2019-04-15T18:16:52.132+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG |
2019-04-15T18:16:52.132+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG | 110
2019-04-15T18:16:52.132+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG | <?xml version="1.0" encoding="UTF-8"?>
2019-04-15T18:16:52.132+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG | <Response><Errors><Error><Code>InvalidParameterValue</Code><Message>Value () for parameter groupId is invalid. The value cannot be empty</Message></Error></Errors><RequestID>55ee9c7e-e3b1-4216-9b90-cc50d88dc900</RequestID></Response>
2019-04-15T18:16:52.132+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG | 0
2019-04-15T18:16:52.132+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG |
2019-04-15T18:16:52.132+0200 [DEBUG] plugin.terraform-provider-dockermachine: (node-01) DBG |

The Terraform config is just the VirtualBox example adopted to AWS EC2:

provider "dockermachine" {
  debug = true
}

resource "dockermachine_amazonec2" "node" {
    count = 1
    name = "${format("node-%02d", count.index+1)}"

    amazonec2_security_group = ["docker-machine"]

    provisioner "remote-exec" {
        inline = [
            "touch /tmp/this_is_a_test",
        ]
        connection {
            type        = "ssh"
            host        = "${self.ssh_hostname}"
            port        = "${self.ssh_port}"
            user        = "${self.ssh_username}"
            private_key = "${file("${self.ssh_keypath}")}"
        }
    }
}

Setting or leaving out amazonec2_security_group does not make a difference.

Version Info:

  • Ubuntu 16.04
$ TF_LOG=debug terraform version
2019/04/15 19:00:22 [INFO] Terraform version: 0.11.13
2019/04/15 19:00:22 [INFO] Go runtime version: go1.11.5
2019/04/15 19:00:22 [INFO] CLI args: []string{"/usr/local/bin/terraform", "version"}
2019/04/15 19:00:22 [DEBUG] Attempting to open CLI config file: /home/vagrant/.terraformrc
2019/04/15 19:00:22 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/04/15 19:00:22 [INFO] CLI command args: []string{"version"}
Terraform v0.11.13
2019/04/15 19:00:22 [DEBUG] checking for provider in "."
2019/04/15 19:00:22 [DEBUG] checking for provider in "/usr/local/bin"
2019/04/15 19:00:22 [DEBUG] checking for provider in ".terraform/plugins/linux_amd64"
2019/04/15 19:00:22 [DEBUG] found provider "terraform-provider-aws_v2.6.0_x4"
2019/04/15 19:00:22 [DEBUG] found provider "terraform-provider-null_v2.1.1_x4"
2019/04/15 19:00:22 [DEBUG] checking for provider in "/home/vagrant/.terraform.d/plugins"
2019/04/15 19:00:22 [WARN] found legacy provider "terraform-provider-dockermachine"
2019/04/15 19:00:22 [DEBUG] found valid plugin: "dockermachine", "0.0.0", "/home/vagrant/.terraform.d/plugins/terraform-provider-dockermachine"
2019/04/15 19:00:22 [DEBUG] found valid plugin: "aws", "2.6.0", "/var/quasar/main/Provisioning/Servers/_aws/live/machine-test/.terraform/plugins/linux_amd64/terraform-provider-aws_v2.6.0_x4"
2019/04/15 19:00:22 [DEBUG] found valid plugin: "null", "2.1.1", "/var/quasar/main/Provisioning/Servers/_aws/live/machine-test/.terraform/plugins/linux_amd64/terraform-provider-null_v2.1.1_x4"
+ provider.aws v2.6.0
+ provider.dockermachine (unversioned)
+ provider.null v2.1.1

2019/04/15 19:00:24 [DEBUG] plugin: waiting for all plugin processes to complete...
$ go version
go version go1.12.4 linux/amd64

Crash while using dockermachine provider with amazonec2 driver

Hi, I'm running into a terraform crash when using the dockermachine provider in terraform apply and thought I'd post here to see if I'm missing something essential. If I could get this to work, it would perfectly suit my needs. Here's some more info (versions, .tf file, crash output). Any thoughts appreciated, thanks.

Mac OX 10.11.6

Terraform info brew info terraform

  terraform: stable 0.11.4 (bottled), HEAD
  Tool to build, change, and version infrastructure
  https://www.terraform.io/
  Conflicts with:
    tfenv (because tfenv symlinks terraform binaries)
  /usr/local/Cellar/terraform/0.11.3 (7 files, 79.9MB)
    Poured from bottle on 2018-03-15 at 18:57:35
  /usr/local/Cellar/terraform/0.11.4 (7 files, 80.2MB) *
    Poured from bottle on 2018-03-16 at 15:39:56
  From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/terraform.rb
  ==> Dependencies
  Build: go โœ”, gox โœ˜
  ==> Options
  --HEAD
  	Install HEAD version
  ==> Caveats
  zsh completions have been installed to:
    /usr/local/share/zsh/site-functions

Terraform version

  2018/03/16 15:42:04 [INFO] Terraform version: 0.11.4  
  2018/03/16 15:42:04 [INFO] Go runtime version: go1.10
  2018/03/16 15:42:04 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.11.4/bin/terraform", "version"}
  2018/03/16 15:42:04 [DEBUG] Attempting to open CLI config file: /Users/wbr/.terraformrc
  2018/03/16 15:42:04 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
  2018/03/16 15:42:04 [INFO] CLI command args: []string{"version"}
  Terraform v0.11.4
  2018/03/16 15:42:04 [WARN] found legacy provider "terraform-provider-dockermachine"
  + provider.aws v1.11.0
  + provider.dockermachine (unversioned)

Go version

  go version go1.10 darwin/amd64

AWS cli version (I'm using the ~/.aws/credentials file for aws authentication)

  aws-cli/1.11.170 Python/2.7.10 Darwin/15.6.0 botocore/1.7.28

dockermachine.tf

provider "dockermachine" {
  # Region is not a valid key in dockermachine provider
  #region = "us-west-2"
}

resource "dockermachine_amazonec2" "node" {
    count = 1
    name = "${format("node-%02d", count.index+1)}"

    # docker-machine-amaconec2 specific.
    engine_insecure_registry = [
      "localhost:5000",
      "registry:5000",
      "127.0.0.1:5000"
    ]
    amazonec2_ssh_user = "admin"
    amazonec2_region = "us-west-2"
    amazonec2_instance_type = "t2.nano"
    amazonec2_ami = "ami-221ea342"
    amazonec2_device_name = "/dev/xvda"
    amazonec2_root_size = 8
    amazonec2_volume_type = "gp2"
    amazonec2_security_group = ["docker-machine"]
    amazonec2_keypair_name = "docker-machine"
    
    
    provisioner "remote-exec" {
        inline = [
            "touch /tmp/this_is_a_test",
        ]
        connection {
            type        = "ssh"
            host        = "${self.ssh_hostname}"
            port        = "${self.ssh_port}"
            user        = "${self.ssh_username}"
            private_key = "${file("${self.ssh_keypath}")}"
        }
    }
}

Output from terraform apply

  registry:terraform wbr$ terraform apply
  2018/03/16 15:27:09 [INFO] Terraform version: 0.11.3  
  2018/03/16 15:27:09 [INFO] Go runtime version: go1.9.3
  2018/03/16 15:27:09 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.11.3/bin/terraform", "apply"}
  2018/03/16 15:27:09 [DEBUG] Attempting to open CLI config file: /Users/wbr/.terraformrc
  2018/03/16 15:27:09 [INFO] CLI command args: []string{"apply"}
  2018/03/16 15:27:09 [INFO] command: empty terraform config, returning nil
  2018/03/16 15:27:09 [INFO] command: backend initialized: <nil>
  2018/03/16 15:27:09 [WARN] found legacy provider "terraform-provider-dockermachine"
  2018/03/16 15:27:09 [INFO] command: backend <nil> is not enhanced, wrapping in local
  2018/03/16 15:27:09 [INFO] backend/local: starting Apply operation
  2018/03/16 15:27:09 [INFO] terraform: building graph: GraphTypeInput
  terraform.NodeApplyableProvider
  orm.graphNodeCloseProvisioner
  2018/03/16 15:27:09 [INFO] terraform: building graph: GraphTypeValidate
  rmachine_amazonec2.node - *terraform.NodeValidatableResource
  zonec2.node - *terraform.NodeValidatableResource
  root - terraform.graphNodeRoot
    meta.count-boundary (count boundary fixup) - *terraform.NodeCountBoundary
    provider.aws (close) - *terraform.graphNodeCloseProvider
    provider.dockermachine (close) - *terraform.graphNodeCloseProvider
    provisioner.file (close) - *terraform.graphNodeCloseProvisioner
    provisioner.remote-exec (close) - *terraform.graphNodeCloseProvisioner
  te-exec (close) - *terraform.graphNodeCloseProvisioner
  2018/03/16 15:27:09 [INFO] backend/local: apply calling Refresh
  2018/03/16 15:27:09 [INFO] terraform: building graph: GraphTypeRefresh
  aws_instance.example: Refreshing state... (ID: i-09ec1730b3b525d27)
  2018/03/16 15:27:13 [INFO] backend/local: apply calling Plan
  2018/03/16 15:27:13 [INFO] terraform: building graph: GraphTypePlan
  rmachine - *terraform.NodeApplyableProvider
  ) - *terraform.graphNodeCloseProvisioner

  An execution plan has been generated and is shown below.
  Resource actions are indicated with the following symbols:
    + create

  Terraform will perform the following actions:

    + dockermachine_amazonec2.node
        id:                               <computed>
        address:                          <computed>
        amazonec2_ami:                    "ami-221ea342"
        amazonec2_block_duration_minutes: "0"
        amazonec2_device_name:            "/dev/xvda"
        amazonec2_instance_type:          "t2.nano"
        amazonec2_keypair_name:           "docker-machine"
        amazonec2_region:                 "us-west-2"
        amazonec2_retries:                "5"
        amazonec2_root_size:              "8"
        amazonec2_security_group.#:       "1"
        amazonec2_security_group.0:       "docker-machine"
        amazonec2_spot_price:             "0.50"
        amazonec2_ssh_user:               "admin"
        amazonec2_volume_type:            "gp2"
        amazonec2_zone:                   "a"
        certs_directory:                  <computed>
        docker_url:                       <computed>
        docker_version:                   <computed>
        engine_insecure_registry.#:       "3"
        engine_insecure_registry.0:       "localhost:5000"
        engine_insecure_registry.1:       "registry:5000"
        engine_insecure_registry.2:       "127.0.0.1:5000"
        name:                             "node-01"
        ssh_hostname:                     <computed>
        ssh_keypath:                      <computed>
        ssh_port:                         <computed>
        ssh_username:                     <computed>
        state:                            "running"
        storage_path_computed:            <computed>
        swarm:                            "false"
        swarm_experimental:               "false"
        swarm_master:                     "false"
        tls_server_cert:                  <computed>
        tls_server_key:                   <computed>


  Plan: 1 to add, 0 to change, 0 to destroy.

  Do you want to perform these actions?
    Terraform will perform the actions described above.
    Only 'yes' will be accepted to approve.

    Enter a value: yes

  2018/03/16 15:27:21 [INFO] terraform: building graph: GraphTypeApply
  > "<computed>"
    swarm:                            "" => "false" (forces new resource)
    swarm_experimental:               "" => "false" (forces new resource)
    swarm_master:                     "" => "false" (forces new resource)
    tls_server_cert:                  "" => "<computed>"
    tls_server_key:                   "" => "<computed>"
  rDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "amazonec2_security_group.0":*terraform.ResourceAttrDiff{Old:"", New:"docker-machine", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "amazonec2_device_name":*terraform.ResourceAttrDiff{Old:"", New:"/dev/xvda", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "swarm":*terraform.ResourceAttrDiff{Old:"", New:"false", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "amazonec2_root_size":*terraform.ResourceAttrDiff{Old:"", New:"8", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "docker_version":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "amazonec2_volume_type":*terraform.ResourceAttrDiff{Old:"", New:"gp2", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "storage_path_computed":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "amazonec2_ssh_user":*terraform.ResourceAttrDiff{Old:"", New:"admin", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "ssh_port":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "engine_insecure_registry.0":*terraform.ResourceAttrDiff{Old:"", New:"localhost:5000", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "id":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x2}, "amazonec2_block_duration_minutes":*terraform.ResourceAttrDiff{Old:"", New:"0", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "certs_directory":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "ssh_hostname":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "amazonec2_keypair_name":*terraform.ResourceAttrDiff{Old:"", New:"docker-machine", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "amazonec2_region":*terraform.ResourceAttrDiff{Old:"", New:"us-west-2", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "ssh_username":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "address":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "swarm_master":*terraform.ResourceAttrDiff{Old:"", New:"false", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "amazonec2_instance_type":*terraform.ResourceAttrDiff{Old:"", New:"t2.nano", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "docker_url":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "name":*terraform.ResourceAttrDiff{Old:"", New:"node-01", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "amazonec2_spot_price":*terraform.ResourceAttrDiff{Old:"", New:"0.50", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "amazonec2_retries":*terraform.ResourceAttrDiff{Old:"", New:"5", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}}, Destroy:false, DestroyDeposed:false, DestroyTainted:false, Meta:map[string]interface {}(nil)}
  ences: []
  2018/03/16 15:27:21 [DEBUG] ReferenceTransformer: "output.public_ip" references: []
  2018/03/16 15:27:21 [DEBUG] ReferenceTransformer: "output.private_ip" references: []
  2018/03/16 15:27:21 [TRACE] Graph after step *terraform.ReferenceTransformer:

  dockermachine_amazonec2.node - *terraform.NodeApplyableResource
    provider.dockermachine - *terraform.NodeApplyableProvider
    provisioner.remote-exec - *terraform.NodeProvisioner
  output.private_ip - *terraform.NodeApplyableOutput
  output.public_ip - *terraform.NodeApplyableOutput
  provider.dockermachine - *terraform.NodeApplyableProvider
  provisioner.remote-exec - *terraform.NodeProvisioner
  2018/03/16 15:27:21 [TRACE] Graph after step *terraform.CountBoundaryTransformer:

  dockermachine_amazonec2.node - *terraform.NodeApplyableResource
    provider.dockermachine - *terraform.NodeApplyableProvider
    provisioner.remote-exec - *terraform.NodeProvisioner
  meta.count-boundary (count boundary fixup) - *terraform.NodeCountBoundary
    dockermachine_amazonec2.node - *terraform.NodeApplyableResource
    output.private_ip - *terraform.NodeApplyableOutput
    output.public_ip - *terraform.NodeApplyableOutput
    provider.dockermachine - *terraform.NodeApplyableProvider
    provisioner.remote-exec - *terraform.NodeProvisioner
  output.private_ip - *terraform.NodeApplyableOutput
  output.public_ip - *terraform.NodeApplyableOutput
  provider.dockermachine - *terraform.NodeApplyableProvider
  provisioner.remote-exec - *terraform.NodeProvisioner
  2018/03/16 15:27:21 [TRACE] Graph after step *terraform.TargetsTransformer:

  dockermachine_amazonec2.node - *terraform.NodeApplyableResource
    provider.dockermachine - *terraform.NodeApplyableProvider
    provisioner.remote-exec - *terraform.NodeProvisioner
  meta.count-boundary (count boundary fixup) - *terraform.NodeCountBoundary
    dockermachine_amazonec2.node - *terraform.NodeApplyableResource
    output.private_ip - *terraform.NodeApplyableOutput
    output.public_ip - *terraform.NodeApplyableOutput
    provider.dockermachine - *terraform.NodeApplyableProvider
    prdockermachine_amazonec2.node: Creating...
    address:                          "" => "<computed>"
    amazonec2_ami:                    "" => "ami-221ea342"
    amazonec2_block_duration_minutes: "" => "0"
    amazonec2_device_name:            "" => "/dev/xvda"
    amazonec2_instance_type:          "" => "t2.nano"
    amazonec2_keypair_name:           "" => "docker-machine"
    amazonec2_region:                 "" => "us-west-2"
    amazonec2_retries:                "" => "5"
    amazonec2_root_size:              "" => "8"
    amazonec2_security_group.#:       "" => "1"
    amazonec2_security_group.0:       "" => "docker-machine"
    amazonec2_spot_price:             "" => "0.50"
    amazonec2_ssh_user:               "" => "admin"
    amazonec2_volume_type:            "" => "gp2"
    amazonec2_zone:                   "" => "a"
    certs_directory:                  "" => "<computed>"
    docker_url:                       "" => "<computed>"
    docker_version:                   "" => "<computed>"
    engine_insecure_registry.#:       "" => "3"
    engine_insecure_registry.0:       "" => "localhost:5000"
    engine_insecure_registry.1:       "" => "registry:5000"
    engine_insecure_registry.2:       "" => "127.0.0.1:5000"
    name:                             "" => "node-01"
    ssh_hostname:                     "" => "<computed>"
    ssh_keypath:                      "" => "<computed>"
    ssh_port:                         "" => "<computed>"
    ssh_username:                     "" => "<computed>"
    state:                            "" => "running"
    storage_path_computed:            "" => "<computed>"
    swarm:                            "" => "false"
    swarm_experimental:               "" => "false"
    swarm_master:                     "" => "false"
    tls_server_cert:                  "" => "<computed>"
    tls_server_key:                   "" => "<computed>"

  Error: Error applying plan:

  1 error(s) occurred:

  * dockermachine_amazonec2.node: 1 error(s) occurred:

  * dockermachine_amazonec2.node: unexpected EOF

  Terraform does not automatically rollback in the face of errors.
  Instead, your Terraform state file has been partially updated with
  any resources that successfully completed. Please address the error
  above and apply again to incrementally change your infrastructure.


  panic: interface conversion: interface {} is []interface {}, not []string
  2018-03-16T15:27:21.629-0700 [DEBUG] plugin.terraform-provider-dockermachine: 
  2018-03-16T15:27:21.629-0700 [DEBUG] plugin.terraform-provider-dockermachine: goroutine 46 [running]:
  2018-03-16T15:27:21.629-0700 [DEBUG] plugin.terraform-provider-dockermachine: github.com/gstruct/terraform-provider-dockermachine/provider.getDriverOpts(0xc42014a5b0, 0xc42060cd20, 0x1e, 0x1e, 0xc4202528c0, 0x20)
  2018-03-16T15:27:21.629-0700 [DEBUG] plugin.terraform-provider-dockermachine: 	/Users/wbr/go/src/github.com/gstruct/terraform-provider-dockermachine/provider/resource.go:330 +0x87a
  2018-03-16T15:27:21.629-0700 [DEBUG] plugin.terraform-provider-dockermachine: github.com/gstruct/terraform-provider-dockermachine/provider.resourceCreate.func1(0xc42014a5b0, 0x245e8c0, 0xc4203f64b0, 0xc42014a5b0, 0x0)
  2018-03-16T15:27:21.629-0700 [DEBUG] plugin.terraform-provider-dockermachine: 	/Users/wbr/go/src/github.com/gstruct/terraform-provider-dockermachine/provider/resource_create.go:97 +0x15db
  2018-03-16T15:27:21.629-0700 [DEBUG] plugin.terraform-provider-dockermachine: github.com/hashicorp/terraform/helper/schema.(*Resource).Apply(0xc4201268c0, 0xc42023c2d0, 0xc42010dc20, 0x245e8c0, 0xc4203f64b0, 0xc42022c801, 0xc420573b88, 0x10b772c)
  2018-03-16T15:27:21.629-0700 [DEBUG] plugin.terraform-provider-dockermachine: 	/Users/wbr/go/src/github.com/hashicorp/terraform/helper/schema/resource.go:227 +0x35a
  2018-03-16T15:27:21.630-0700 [DEBUG] plugin.terraform-provider-dockermachine: github.com/hashicorp/terraform/helper/schema.(*Provider).Apply(0xc420127030, 0xc42023c230, 0xc42023c2d0, 0xc42010dc20, 0x18, 0x18, 0xc42010dc60)
  2018-03-16T15:27:21.630-0700 [DEBUG] plugin.terraform-provider-dockermachine: 	/Users/wbr/go/src/github.com/hashicorp/terraform/helper/schema/provider.go:283 +0xa4
  2018-03-16T15:27:21.630-0700 [DEBUG] plugin.terraform-provider-dockermachine: github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Apply(0xc42022ebe0, 0xc42010d180, 0xc42042e390, 0x0, 0x0)
  2018-03-16T15:27:21.630-0700 [DEBUG] plugin.terraform-provider-dockermachine: 	/Users/wbr/go/src/github.com/hashicorp/terraform/plugin/resource_provider.go:527 +0x57
  2018-03-16T15:27:21.630-0700 [DEBUG] plugin.terraform-provider-dockermachine: reflect.Value.call(0xc42025c840, 0xc42040e320, 0x13, 0x2538551, 0x4, 0xc420573f18, 0x3, 0x3, 0xc420229500, 0x0, ...)
  2018-03-16T15:27:21.630-0700 [DEBUG] plugin.terraform-provider-dockermachine: 	/usr/local/Cellar/go/1.10/libexec/src/reflect/value.go:447 +0x969
  2018-03-16T15:27:21.630-0700 [DEBUG] plugin.terraform-provider-dockermachine: reflect.Value.Call(0xc42025c840, 0xc42040e320, 0x13, 0xc4203ff718, 0x3, 0x3, 0x0, 0x0, 0x300000007)
  2018-03-16T15:27:21.630-0700 [DEBUG] plugin.terraform-provider-dockermachine: 	/usr/local/Cellar/go/1.10/libexec/src/reflect/value.go:308 +0xa4
  2018-03-16T15:27:21.630-0700 [DEBUG] plugin.terraform-provider-dockermachine: net/rpc.(*service).call(0xc4204acec0, 0xc4203f63c0, 0xc4204e8450, 0xc4204e8460, 0xc42044e000, 0xc4204ed0e0, 0x208f340, 0xc42010d180, 0x16, 0x208f380, ...)
  2018-03-16T15:27:21.630-0700 [DEBUG] plugin.terraform-provider-dockermachine: 	/usr/local/Cellar/go/1.10/libexec/src/net/rpc/server.go:384 +0x14e
  2018-03-16T15:27:21.630-0700 [DEBUG] plugin.terraform-provider-dockermachine: created by net/rpc.(*Server).ServeCodec
  2018-03-16T15:27:21.630-0700 [DEBUG] plugin.terraform-provider-dockermachine: 	/usr/local/Cellar/go/1.10/libexec/src/net/rpc/server.go:480 +0x43a
  2018/03/16 15:27:21 [TRACE] root: eval: *terraform.EvalWriteState
  2018/03/16 15:27:21 [TRACE] root: eval: *terraform.EvalApplyProvisioners
  2018/03/16 15:27:21 [TRACE] root: eval: *terraform.EvalIf
  2018/03/16 15:27:21 [TRACE] root: eval: *terraform.EvalWriteState
  2018/03/16 15:27:21 [TRACE] root: eval: *terraform.EvalWriteDiff
  2018/03/16 15:27:21 [TRACE] root: eval: *terraform.EvalApplyPost
  2018/03/16 15:27:21 [ERROR] root: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred:

  * dockermachine_amazonec2.node: unexpected EOF
  2018/03/16 15:27:21 [ERROR] root: eval: *terraform.EvalSequence, err: 1 error(s) occurred:

  * dockermachine_amazonec2.node: unexpected EOF
  2018/03/16 15:27:21 [TRACE] [walkApply] Exiting eval tree: dockermachine_amazonec2.node
  2018/03/16 15:27:21 [TRACE] dag/walk: upstream errored, not walking "meta.count-boundary (count boundary fixup)"
  2018/03/16 15:27:21 [TRACE] dag/walk: upstream errored, not walking "provisioner.remote-exec (close)"
  2018/03/16 15:27:21 [TRACE] dag/walk: upstream errored, not walking "provider.dockermachine (close)"
  2018/03/16 15:27:21 [TRACE] dag/walk: upstream errored, not walking "root"
  2018-03-16T15:27:21.634-0700 [DEBUG] plugin: plugin process exited: path=/Users/wbr/Documents/Programming/GitProjects/Docker/terraform/.terraform/plugins/darwin_amd64/terraform-provider-dockermachine
  2018/03/16 15:27:21 [TRACE] Preserving existing state lineage "d85f942d-75a5-43c8-a0ab-cec40de847fe"
  2018/03/16 15:27:21 [TRACE] Preserving existing state lineage "d85f942d-75a5-43c8-a0ab-cec40de847fe"
  2018/03/16 15:27:21 [TRACE] Preserving existing state lineage "d85f942d-75a5-43c8-a0ab-cec40de847fe"
  2018/03/16 15:27:21 [TRACE] Preserving existing state lineage "d85f942d-75a5-43c8-a0ab-cec40de847fe"
  2018/03/16 15:27:21 [DEBUG] plugin: waiting for all plugin processes to complete...
  2018-03-16T15:27:21.638-0700 [WARN ] plugin: error closing client during Kill: err="connection is shut down"
  2018-03-16T15:27:21.640-0700 [DEBUG] plugin.terraform: remote-exec-provisioner (internal) 2018/03/16 15:27:21 [DEBUG] plugin: waiting for all plugin processes to complete...
  2018-03-16T15:27:21.642-0700 [DEBUG] plugin.terraform: file-provisioner (internal) 2018/03/16 15:27:21 [DEBUG] plugin: waiting for all plugin processes to complete...
  2018-03-16T15:27:21.644-0700 [DEBUG] plugin: plugin process exited: path=/usr/local/Cellar/terraform/0.11.3/bin/terraform
  2018-03-16T15:27:21.644-0700 [DEBUG] plugin: plugin process exited: path=/Users/wbr/Documents/Programming/GitProjects/Docker/terraform/.terraform/plugins/darwin_amd64/terraform-provider-aws_v1.11.0_x4
  2018-03-16T15:27:21.644-0700 [DEBUG] plugin: plugin process exited: path=/usr/local/Cellar/terraform/0.11.3/bin/terraform
  panic: interface conversion: interface {} is []interface {}, not []string
  2018-03-16T15:27:21.629-0700 [DEBUG] plugin.terraform-provider-dockermachine: 
  2018-03-16T15:27:21.629-0700 [DEBUG] plugin.terraform-provider-dockermachine: goroutine 46 [running]:
  2018-03-16T15:27:21.629-0700 [DEBUG] plugin.terraform-provider-dockermachine: github.com/gstruct/terraform-provider-dockermachine/provider.getDriverOpts(0xc42014a5b0, 0xc42060cd20, 0x1e, 0x1e, 0xc4202528c0, 0x20)
  2018-03-16T15:27:21.629-0700 [DEBUG] plugin.terraform-provider-dockermachine: 	/Users/wbr/go/src/github.com/gstruct/terraform-provider-dockermachine/provider/resource.go:330 +0x87a
  2018-03-16T15:27:21.629-0700 [DEBUG] plugin.terraform-provider-dockermachine: github.com/gstruct/terraform-provider-dockermachine/provider.resourceCreate.func1(0xc42014a5b0, 0x245e8c0, 0xc4203f64b0, 0xc42014a5b0, 0x0)
  2018-03-16T15:27:21.629-0700 [DEBUG] plugin.terraform-provider-dockermachine: 	/Users/wbr/go/src/github.com/gstruct/terraform-provider-dockermachine/provider/resource_create.go:97 +0x15db
  2018-03-16T15:27:21.629-0700 [DEBUG] plugin.terraform-provider-dockermachine: github.com/hashicorp/terraform/helper/schema.(*Resource).Apply(0xc4201268c0, 0xc42023c2d0, 0xc42010dc20, 0x245e8c0, 0xc4203f64b0, 0xc42022c801, 0xc420573b88, 0x10b772c)
  2018-03-16T15:27:21.629-0700 [DEBUG] plugin.terraform-provider-dockermachine: 	/Users/wbr/go/src/github.com/hashicorp/terraform/helper/schema/resource.go:227 +0x35a
  2018-03-16T15:27:21.630-0700 [DEBUG] plugin.terraform-provider-dockermachine: github.com/hashicorp/terraform/helper/schema.(*Provider).Apply(0xc420127030, 0xc42023c230, 0xc42023c2d0, 0xc42010dc20, 0x18, 0x18, 0xc42010dc60)
  2018-03-16T15:27:21.630-0700 [DEBUG] plugin.terraform-provider-dockermachine: 	/Users/wbr/go/src/github.com/hashicorp/terraform/helper/schema/provider.go:283 +0xa4
  2018-03-16T15:27:21.630-0700 [DEBUG] plugin.terraform-provider-dockermachine: github.com/hashicorp/terraform/plugin.(*ResourceProviderServer).Apply(0xc42022ebe0, 0xc42010d180, 0xc42042e390, 0x0, 0x0)
  2018-03-16T15:27:21.630-0700 [DEBUG] plugin.terraform-provider-dockermachine: 	/Users/wbr/go/src/github.com/hashicorp/terraform/plugin/resource_provider.go:527 +0x57
  2018-03-16T15:27:21.630-0700 [DEBUG] plugin.terraform-provider-dockermachine: reflect.Value.call(0xc42025c840, 0xc42040e320, 0x13, 0x2538551, 0x4, 0xc420573f18, 0x3, 0x3, 0xc420229500, 0x0, ...)
  2018-03-16T15:27:21.630-0700 [DEBUG] plugin.terraform-provider-dockermachine: 	/usr/local/Cellar/go/1.10/libexec/src/reflect/value.go:447 +0x969
  2018-03-16T15:27:21.630-0700 [DEBUG] plugin.terraform-provider-dockermachine: reflect.Value.Call(0xc42025c840, 0xc42040e320, 0x13, 0xc4203ff718, 0x3, 0x3, 0x0, 0x0, 0x300000007)
  2018-03-16T15:27:21.630-0700 [DEBUG] plugin.terraform-provider-dockermachine: 	/usr/local/Cellar/go/1.10/libexec/src/reflect/value.go:308 +0xa4
  2018-03-16T15:27:21.630-0700 [DEBUG] plugin.terraform-provider-dockermachine: net/rpc.(*service).call(0xc4204acec0, 0xc4203f63c0, 0xc4204e8450, 0xc4204e8460, 0xc42044e000, 0xc4204ed0e0, 0x208f340, 0xc42010d180, 0x16, 0x208f380, ...)
  2018-03-16T15:27:21.630-0700 [DEBUG] plugin.terraform-provider-dockermachine: 	/usr/local/Cellar/go/1.10/libexec/src/net/rpc/server.go:384 +0x14e
  2018-03-16T15:27:21.630-0700 [DEBUG] plugin.terraform-provider-dockermachine: created by net/rpc.(*Server).ServeCodec
  2018-03-16T15:27:21.630-0700 [DEBUG] plugin.terraform-provider-dockermachine: 	/usr/local/Cellar/go/1.10/libexec/src/net/rpc/server.go:480 +0x43a
  2018/03/16 15:27:21 [TRACE] root: eval: *terraform.EvalWriteState
  2018/03/16 15:27:21 [TRACE] root: eval: *terraform.EvalApplyProvisioners
  2018/03/16 15:27:21 [TRACE] root: eval: *terraform.EvalIf
  2018/03/16 15:27:21 [TRACE] root: eval: *terraform.EvalWriteState
  2018/03/16 15:27:21 [TRACE] root: eval: *terraform.EvalWriteDiff
  2018/03/16 15:27:21 [TRACE] root: eval: *terraform.EvalApplyPost
  2018/03/16 15:27:21 [ERROR] root: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred:

  * dockermachine_amazonec2.node: unexpected EOF
  2018/03/16 15:27:21 [ERROR] root: eval: *terraform.EvalSequence, err: 1 error(s) occurred:

  * dockermachine_amazonec2.node: unexpected EOF
  2018/03/16 15:27:21 [TRACE] [walkApply] Exiting eval tree: dockermachine_amazonec2.node
  2018/03/16 15:27:21 [TRACE] dag/walk: upstream errored, not walking "meta.count-boundary (count boundary fixup)"
  2018/03/16 15:27:21 [TRACE] dag/walk: upstream errored, not walking "provisioner.remote-exec (close)"
  2018/03/16 15:27:21 [TRACE] dag/walk: upstream errored, not walking "provider.dockermachine (close)"
  2018/03/16 15:27:21 [TRACE] dag/walk: upstream errored, not walking "root"
  2018-03-16T15:27:21.634-0700 [DEBUG] plugin: plugin process exited: path=/Users/wbr/Documents/Programming/GitProjects/Docker/terraform/.terraform/plugins/darwin_amd64/terraform-provider-dockermachine
  2018/03/16 15:27:21 [TRACE] Preserving existing state lineage "d85f942d-75a5-43c8-a0ab-cec40de847fe"
  2018/03/16 15:27:21 [TRACE] Preserving existing state lineage "d85f942d-75a5-43c8-a0ab-cec40de847fe"
  2018/03/16 15:27:21 [TRACE] Preserving existing state lineage "d85f942d-75a5-43c8-a0ab-cec40de847fe"
  2018/03/16 15:27:21 [TRACE] Preserving existing state lineage "d85f942d-75a5-43c8-a0ab-cec40de847fe"
  2018/03/16 15:27:21 [DEBUG] plugin: waiting for all plugin processes to complete...
  2018-03-16T15:27:21.638-0700 [WARN ] plugin: error closing client during Kill: err="connection is shut down"
  2018-03-16T15:27:21.640-0700 [DEBUG] plugin.terraform: remote-exec-provisioner (internal) 2018/03/16 15:27:21 [DEBUG] plugin: waiting for all plugin processes to complete...
  2018-03-16T15:27:21.642-0700 [DEBUG] plugin.terraform: file-provisioner (internal) 2018/03/16 15:27:21 [DEBUG] plugin: waiting for all plugin processes to complete...
  2018-03-16T15:27:21.644-0700 [DEBUG] plugin: plugin process exited: path=/usr/local/Cellar/terraform/0.11.3/bin/terraform
  2018-03-16T15:27:21.644-0700 [DEBUG] plugin: plugin process exited: path=/Users/wbr/Documents/Programming/GitProjects/Docker/terraform/.terraform/plugins/darwin_amd64/terraform-provider-aws_v1.11.0_x4
  2018-03-16T15:27:21.644-0700 [DEBUG] plugin: plugin process exited: path=/usr/local/Cellar/terraform/0.11.3/bin/terraform



  !!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!

  Terraform crashed! This is always indicative of a bug within Terraform.
  A crash log has been placed at "crash.log" relative to your current
  working directory. It would be immensely helpful if you could please
  report the crash with Terraform[1] so that we can fix this.

  When reporting bugs, please include your terraform version. That
  information is available on the first line of crash.log. You can also
  get it by running 'terraform --version' on the command line.

  [1]: https://github.com/hashicorp/terraform/issues

  !!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
  registry:terraform wbr$ 

Generic Driver timeout on create

Log:

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

2018/04/20 23:52:38 [INFO] terraform: building graph: GraphTypeApply
mputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "swarm_experimental":*terraform.ResourceAttrDiff{Old:"", New:"false", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "swarm":*terraform.ResourceAttrDiff{Old:"", New:"false", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "docker_url":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "swarm_master":*terraform.ResourceAttrDiff{Old:"", New:"false", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "address":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ssh_keypath":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "ssh_hostname":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "certs_directory":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "generic_engine_port":*terraform.ResourceAttrDiff{Old:"", New:"2376", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "name":*terraform.ResourceAttrDiff{Old:"", New:"celery", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "generic_ip_address":*terraform.ResourceAttrDiff{Old:"", New:"celery", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "engine_storage_driver":*terraform.ResourceAttrDiff{Old:"", New:"overlay2", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "ssh_username":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "tls_server_cert":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "generic_ssh_key":*terraform.ResourceAttrDiff{Old:"", New:"/home/seffyroff/.ssh/id_rsa", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "id":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x2}, "state":*terraform.ResourceAttrDiff{Old:"", New:"running", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}, "generic_ssh_user":*terraform.ResourceAttrDiff{Old:"", New:"seffyroff", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Sensitive:false, Type:0x0}, "storage_path_computed":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Sensitive:false, Type:0x0}}, Destroy:false, DestroyDeposed:false, DestroyTainted:false, Meta:map[string]interface {}(nil)}
2018/04/20 23:52:38 [TRACE] Graph after step *terraform.DiffTransformer:

dockermachine_generic.celery - *terraform.NodeApplyableResource
2018/04/20 23:52:38 [DEBUG] ReferenceTransformer: "dockermachine_generic.celery" references: []
2018/04/20 23:52:38 [DEBUG] ReferenceTransformer: "provider.dockermachine" references: []
2018/04/20 23:52:38 [TRACE] Graph after step *terraform.ReferenceTransformer:

dockermachine_generic.celery - *terraform.NodeApplyableResource
  provider.dockermachine - *terraform.NodeApplyableProvider
provider.dockermachine - *terraform.NodeApplyableProvider
2018/04/20 23:52:38 [TRACE] Graph after step *terraform.CountBoundaryTransformer:

dockermachine_generic.celery - *terraform.NodeApplyableResource
  provider.dockermachine - *terraform.NodeApplyableProvider
meta.count-boundary (count boundary fixup) - *terraform.NodeCountBoundary
  dockermachine_generic.celery - *terraform.NodeApplyableResource
  provider.dockermachine - *terraform.NodeApplyableProvider
provider.dockermachine - *terraform.NodeApplyableProvider
2018/04/20 23:52:38 [TRACE] Graph after step *terraform.TargetsTransformer:

dockermachine_generic.celery - *terraform.NodeApplyableResource
  provider.dockermachine - *terraform.NodeApplyableProvider
meta.count-boundary (count boundary fixup) - *terraform.NodeCountBoundary
  dockermachine_generic.celery - *terraform.NodeApplyableResource
  provider.dockermachine - *terraform.NodeApplyableProvider
provider.dockermachine - *terraform.NodeApplyableProvider
2018/04/20 23:52:38 [TRACE] Graph after step *terraform.CloseProviderTransformer:

dockermachine_generic.celery - *terraform.NodeApplyableResource
  provider.dockermachine - *terraform.NodeApplyableProvider
meta.count-boundary (count boundary fixup) - *terraform.NodeCountBoundary
  dockermachine_generic.celery - *terraform.NodeApplyableResource
  provider.dockermachine - *terraform.NodeApplyableProvider
provider.dockermachine - *terraform.NodeApplyableProvider
provider.dockermachine (close) - *terraform.graphNodeCloseProvider
  dockermachine_generic.celery - *terraform.NodeApplyableResource
  provider.dockermachine - *terraform.NodeApplyableProvider
2018/04/20 23:52:38dockermachine_generic.celery: Creating...
.count-boundary (count boundary fixup) - *terraform.NodeCountBoundary
  provider.dockermachine (close) - *terraform.graphNodeCloseProvider
2018/04/20 23:52:38 [DEBUG] Starting graph walk: walkApply
2018/04/20 23:52:38 [TRACE] dag/walk: added new vertex: "meta.count-boundary (count boundary fixup)"
2018/04/20 23:52:38 [TRACE] dag/walk: added new vertex: "provider.dockermachine (close)"
2018/04/20 23:52:38 [TRACE] dag/walk: added new vertex: "root"
2018/04/20 23:52:38 [TRACE] dag/walk: added new vertex: "dockermachine_generic.celery"
2018/04/20 23:52:38 [TRACE] dag/walk: added new vertex: "provider.dockermachine"
2018/04/20 23:52:38 [TRACE] dag/walk: added edge: "dockermachine_generic.celery" waiting on "provider.dockermachine"
2018/04/20 23:52:38 [TRACE] dag/walk: added edge: "meta.count-boundary (count boundary fixup)" waiting on "dockermachine_generic.celery"
2018/04/20 23:52:38 [TRACE] dag/walk: added edge: "provider.dockermachine (close)" waiting on "dockermachine_generic.celery"
2018/04/20 23:52:38 [TRACE] dag/walk: added edge: "root" waiting on "meta.count-boundary (count boundary fixup)"
2018/04/20 23:52:38 [TRACE] dag/walk: added edge: "root" waiting on "provider.dockermachine (close)"
2018/04/20 23:52:38 [TRACE] dag/walk: dependencies changed for "dockermachine_generic.celery", sending new deps
2018/04/20 23:52:38 [TRACE] dag/walk: dependencies changed for "meta.count-boundary (count boundary fixup)", sending new deps
2018/04/20 23:52:38 [TRACE] dag/walk: dependencies changed for "provider.dockermachine (close)", sending new deps
2018/04/20 23:52:38 [TRACE] dag/walk: dependencies changed for "root", sending new deps
2018/04/20 23:52:38 [TRACE] dag/walk: walking "provider.dockermachine"
2018/04/20 23:52:38 [TRACE] vertex 'root.provider.dockermachine': walking
2018/04/20 23:52:38 [TRACE] vertex 'root.provider.dockermachine': evaluating
2018/04/20 23:52:38 [TRACE] [walkApply] Entering eval tree: provider.dockermachine
2018/04/20 23:52:38 [TRACE] root: eval: *terraform.EvalSequence
2018/04/20 23:52:38 [TRACE]  address:               "" => "<computed>"
 root: eval: *terraform.EvalInitProvider
  certs_directory:       "" => "<computed>"
  docker_url:            "" => "<computed>"
  docker_version:        "" => "<computed>"
  engine_storage_driver: "" => "overlay2"
  generic_engine_port:   "" => "2376"
  generic_ip_address:    "" => "celery"
  generic_ssh_key:       "" => "/home/seffyroff/.ssh/id_rsa"
  generic_ssh_port:      "" => "22"
  generic_ssh_user:      "" => "seffyroff"
  name:                  "" => "celery"
  ssh_hostname:          "" => "<computed>"
  ssh_keypath:           "" => "<computed>"
  ssh_port:              "" => "<computed>"
  ssh_username:          "" => "<computed>"
  state:                 "" => "running"
  storage_path_computed: "" => "<computed>"
  swarm:                 "" => "false"
  swarm_experimental:    "" => "false"
  swarm_master:          "" => "false"
  tls_server_cert:       "" => "<computed>"
  tls_server_key:        "" => "<computed>"
dockermachine_generic.celery: Still creating... (10s elapsed)
dockermachine_generic.celery: Still creating... (20s elapsed)
dockermachine_generic.celery: Still creating... (30s elapsed)
dockermachine_generic.celery: Still creating... (40s elapsed)
dockermachine_generic.celery: Still creating... (50s elapsed)
dockermachine_generic.celery: Still creating... (1m0s elapsed)
dockermachine_generic.celery: Still creating... (1m10s elapsed)
dockermachine_generic.celery: Still creating... (1m20s elapsed)
dockermachine_generic.celery: Still creating... (1m30s elapsed)
dockermachine_generic.celery: Still creating... (1m40s elapsed)
dockermachine_generic.celery: Still creating... (1m50s elapsed)
dockermachine_generic.celery: Still creating... (2m0s elapsed)
dockermachine_generic.celery: Still creating... (2m10s elapsed)
dockermachine_generic.celery: Still creating... (2m20s elapsed)
dockermachine_generic.celery: Still creating... (2m30s elapsed)
dockermachine_generic.celery: Still creating... (2m40s elapsed)
dockermachine_generic.celery: Still creating... (2m50s elapsed)
dockermachine_generic.celery: Still creating... (3m0s elapsed)
dockermachine_generic.celery: Still creating... (3m10s elapsed)
dockermachine_generic.celery: Still creating... (3m20s elapsed)
2018/04/20 23:56:03 [ERROR] root: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred:

* dockermachine_generic.celery: Error creating machine: Error running provisioning: Maximum number of retries (60) exceeded
2018/04/20 23:56:03 [ERROR] root: eval: *terraform.EvalSequence, err: 1 error(s) occurred:

* dockermachine_generic.celery: Error creating machine: Error running provisioning: Maximum number of retries (60) exceeded
2018/04/20 23:56:03 [TRACE] [walkApply] Exiting eval tree: dockermachine_generic.celery

2018/04/20 23:56:03 [DEBUG] plugin: waiting for all plugin processes to complete...
Error: Error applying plan:

1 error(s) occurred:

* dockermachine_generic.celery: 1 error(s) occurred:

* dockermachine_generic.celery: Error creating machine: Error running provisioning: Maximum number of retries (60) exceeded
2018-04-20T23:56:03.608-0700 [DEBUG] plugin: plugin process exited: path=/e/Work/Dev/terraform-infra/docker-machine/terraform.d/plugins/linux_amd64/terraform-provider-dockermachine

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.

Resource Script:

resource "dockermachine_generic" "celery" {
  name                  = "celery"
  generic_ssh_user      = "seffyroff"
  generic_ssh_key       = "/home/seffyroff/.ssh/id_rsa"
  generic_ip_address    = "celery"
  engine_storage_driver = "overlay2"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.