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

2.0 GCP terraform provider new install - invalid or unknown key: labels #24

Open
phatwila opened this issue Feb 20, 2019 · 2 comments
Open

Comments

@phatwila
Copy link

The latest GCP terraform provider 2.0 does not support labels, causing new installs to fail.

[root@terraform-node dcos-tf-gcp-demo]# terraform plan -out=plan.out
Error: module.dcos.module.dcos-infrastructure.module.dcos-forwarding-rules.module.dcos-forwarding-rule-masters.module.dcos-forwarding-rule-masters.google_compute_forwarding_rule.forwarding_rule_config[0]: : invalid or unknown key: labels

Error: module.dcos.module.dcos-infrastructure.module.dcos-forwarding-rules.module.dcos-forwarding-rule-masters.module.dcos-forwarding-rule-masters.google_compute_forwarding_rule.forwarding_rule_config[1]: : invalid or unknown key: labels

Error: module.dcos.module.dcos-infrastructure.module.dcos-forwarding-rules.module.dcos-forwarding-rule-public-agents.module.dcos-forwarding-rule-public-agents.google_compute_forwarding_rule.forwarding_rule_config: : invalid or unknown key: labels

From the slack channel a temporary work-around is to force the 1.18.0 provider version in main.tf:

provider "google" {
    version = "~> 1.18.0"
}

module "dcos" {
  [...]

  providers = {
    google = "google"
  }  
}
@bernadinm
Copy link
Contributor

bernadinm commented Mar 5, 2019

This is resolved by d2iq-archive/dcos-docs-site#2023

@rolyv
Copy link

rolyv commented Mar 22, 2019

Has the mesosphere team considered just using the "google-beta" provider instead? I see in other issue threads that you're saying "labels was deprecated". It wasn't deprecated, it was just moved to the "google-beta" terraform provider. So there is another choice on the table of switching your terraform modules to use that provider instead. Have you guys considered that? @bernadinm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants