Call to function "templatefile" failed

Hi @apparentlymart,

I am getting the following error when using a yaml template file

Error: Error in function call

  on main.tf line 24, in resource "kubectl_manifest" "test":
  24:    yaml_body = templatefile("${path.module}/templates/secret-binding.yaml.tmpl", {
  25:           cloud_provider = var.cloud_provider
  26:           project_name = var.project_name
  27:           secret_name = var.secret_name
  28:         })
    |----------------
    | path.module is "."

Call to function "templatefile" failed:
./templates/secret-binding.yaml.tmpl:3,11-12: Missing argument separator; A
comma is required to separate each function argument from the next..

main.tf

resource "kubectl_manifest" "test" {
   yaml_body = templatefile("${path.module}/templates/secret-binding.yaml.tmpl", {
          cloud_provider = var.cloud_provider,
          project_name = var.project_name,
          secret_name = var.secret_name
        })
}
${yamlencode(
apiVersion: core.test.cloud/v1beta1
kind: SecretBinding
metadata:
  labels:
    cloudprofile.test.io/name: cloud_provider
  name: secret_name
  namespace: project_name
secretRef:
  name: secret_name
  namespace: project_name
)}

What am i doing wrong ?

Kevin