coreos / terraform-aws-kubernetes

Install a Kubernetes cluster the CoreOS Tectonic Way: HA, self-hosted, RBAC, etcd Operator, and more
Apache License 2.0
117 stars 67 forks source link

module.kube_certs.output.id issue - list vs string #16

Open mengesb opened 6 years ago

mengesb commented 6 years ago
Error: Error applying plan:

1 error(s) occurred:

* module.kube_certs.output.id: At column 5, line 2: join: argument 1 should be type list, got type string in:

${sha1("
  ${join(" ",
    local_file.apiserver_key.id,
    local_file.apiserver_crt.id,
    local_file.kube_ca_key.id,
    local_file.kube_ca_crt.id,
    local_file.kubelet_key.id,
    local_file.kubelet_crt.id,
    )}
  ")}

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.

Currently running on MASTER: Sun Dec 3 21:56:54 2017 +0100 fb5c6c7 (HEAD -> master, origin/master, origin/HEAD) bump master to: 0a22c73d39f67ba4bb99106a9e72322a47179736 [Lucas Serven]

mengesb commented 6 years ago

This is also blocking my ability to destroy as well

mengesb commented 6 years ago

Adding the list() function after the join syntax solves this, or you can simply not use the join...

squat commented 6 years ago

This is due to a mismatch between your version of Terraform and the intended version of Terraform for this release. The next release will solve this.