Loading...
Loading...
### Terraform Version Tested with `v0.9.2` and `v0.9.3` ### Affected Resource(s) - provisioner/connection ### Terraform Configuration Files ```hcl resource "digitalocean_droplet" "xxx" { name = "${var.do_name}" image = "${var.do_image}" region = "${var.do_region}" size = "${var.do_size}" ssh_keys = "${var.do_ssh_keys}" provisioner "remote-exec" { inline = [...] connection { type = "ssh" user = "${var.ssh_user}" private_key = "${file(var.ssh_key)}" agent = true timeout = "1m" } } } ``` ### Debug Output `tail -23 infra.log` outputs ``` .... 2017/04/18 06:26:03 [DEBUG] root: eval: *terraform.EvalWriteState 2017/04/18 06:26:03 [DEBUG] root: eval: *terraform.EvalApplyProvisioners 2017/04/18 06:26:03 [DEBUG] root: eval: *terraform.EvalIf 2017/04/18 06:26:03 [DEBUG] root: eval: *terraform.EvalWriteState 2017/04/18 06:26:03 [DEBUG] root: eval: *terraform.EvalWriteDiff 2017/04/18 06:26:03 [DEBUG] root: eval: *terraform.EvalApplyPost 2017/04/18 06:26:03 [ERROR] root: eval: *terraform.EvalApplyPost, err: 1 error(s) occurred: * Failed to read key "-----BEGIN RSA PRIVATE KEY-----\n ...............\n-----END RSA PRIVATE KEY-----\n": password protected keys are not supported. Please decrypt the key prior to use. 2017/04/18 06:26:03 [ERROR] root: eval: *terraform.EvalSequence, err: 1 error(s) occurred: * Failed to read key "-----BEGIN RSA PRIVATE KEY-----\n.............2017/04/18 06:26:03 [DEBUG] dag/walk: upstream errored, not walking "digitalocean_record.owner" 2017/04/18 06:26:03 [DEBUG] dag/walk: upstream errored, not walking "digitalocean_record.admin" 2017/04/18 06:26:03 [DEBUG] dag/walk: upstream errored, not walking "digitalocean_record.XXXX" 2017/04/18 06:26:03 [DEBUG] dag/walk: upstream errored, not walking "meta.count-boundary (count boundary fixup)" 2017/04/18 06:26:03 [DEBUG] plugin: waiting for all plugin processes to complete... 2017/04/18 06:26:03 [DEBUG] plugin: terraform: local-exec-provisioner (internal) 2017/04/18 06:26:03 [DEBUG] plugin: waiting for all plugin processes to complete... 2017/04/18 06:26:03 [DEBUG] plugin: terraform: remote-exec-provisioner (internal) 2017/04/18 06:26:03 [DEBUG] plugin: waiting for all plugin processes to complete... 2017/04/18 06:26:03 [DEBUG] plugin: terraform: digitalocean-provider (internal) 2017/04/18 06:26:03 [DEBUG] plugin: waiting for all plugin processes to complete... 2017/04/18 06:26:03 [DEBUG] plugin: /home/linuxer/compilethegoodness/terraform/terraform: plugin process exited 2017/04/18 06:26:03 [DEBUG] plugin: /home/linuxer/compilethegoodness/terraform/terraform: plugin process exited 2017/04/18 06:26:03 [DEBUG] plugin: /home/linuxer/compilethegoodness/terraform/terraform: plugin process exited ``` ### Expected Behavior It should have connected to the remote host ### Actual Behavior It did not. ### Steps to Reproduce 1. `terraform apply`
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.