Closed matthughes closed 8 years ago
Apparently using file without quotes is what blew it up:
provisioner "file" {
source = "foo"
destination = "bar"
connection {
user = "core"
agent = false
private_key = "${file(/Users/mhughes/my_key.pem)}"
}
}
Thanks for the report, @matthughes, and sorry for the confusing error condition here! We'll get this fixed up soon.
Minimal repro config:
resource "aws_instance" "foo" {
ami = "${file(/tmp/somefile)}"
}
I recently got this exact same crash.log, on the same version of terraform. Here is my resource.
resource "template_file" "etcd_discovery_url" {
template = "${file(/dev/null)}"
provisioner "local-exec" {
command = "curl https://discovery.etcd.io/new?size=${var.masters} > ${var.etcd_discovery_url_file}"
}
# This will regenerate the discovery URL if the cluster size changes
vars {
size = "${var.masters}"
}
}
Have a fix queued up, just need to update deps once it is merged.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform was running fine; now crashes on every command.