Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Invalid argument name (Argument names must not be quoted) #19575

Closed
pcj opened this issue Dec 7, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@pcj
Copy link

commented Dec 7, 2018

After a brew install terraform (installed 0.12.0 dev), this example from the documentation no longer works:

resource "kubernetes_secret" "example" {
  metadata {
    name = "docker-cfg"
  }

  data {
    ".dockerconfigjson" = "${file("${path.module}/.docker/config.json")}"
  }

  type = "kubernetes.io/dockerconfigjson"
}

What is the workaround? This seems like kind of a big problem.

Related: #19240

terraform init
2018/12/07 13:05:46 [INFO] Terraform version: 0.12.0 dev
2018/12/07 13:05:46 [INFO] Go runtime version: go1.11
2018/12/07 13:05:46 [INFO] CLI command args: []string{"init"}
@pcj

This comment has been minimized.

Copy link
Author

commented Dec 7, 2018

OK, it was actually explained in the other issue, but wasn't clear at first. I need to add an equals sign after the data:

resource "kubernetes_secret" "example" {
  metadata {
    name = "docker-cfg"
  }

-  data {
+  data = {
    ".dockerconfigjson" = "${file("${path.module}/.docker/config.json")}"
  }

  type = "kubernetes.io/dockerconfigjson"
}

@pcj pcj closed this Dec 7, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.