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

"cluster_autoscaling": this field cannot be set #2890

Closed
mdarii opened this issue Jan 17, 2019 · 2 comments
Closed

"cluster_autoscaling": this field cannot be set #2890

mdarii opened this issue Jan 17, 2019 · 2 comments
Labels

Comments

@mdarii
Copy link

mdarii commented Jan 17, 2019

Terraform version:
0.11.11
provider.google :
v1.20.0

I'm trying to enable autoscaling beta feature using next setup:

resource "google_container_cluster" "test" {
  name = "test"
  zone = "europe-west2-a"
  cluster_ipv4_cidr = "172.28.0.0/14"
  network = "default"
  subnetwork = "default"
  initial_node_count = 1
  node_version = "1.11.6-gke.2"
  min_master_version = "1.11.6-gke.2"
  cluster_autoscaling {
    enabled = true
    resource_limits {
         resource_type = "cpu"
         maximum = 10
      }
    resource_limits {
         resource_type = "memory"
         maximum = 96
      }
  }
  node_config {
    preemptible  = false
    machine_type = "n1-standard-2"
  }
}

Terraform plan fails with next error message:

Error: google_container_cluster.develop: "cluster_autoscaling": this field cannot be set

Any idea why this option doesn't work?

@ghost ghost added the bug label Jan 17, 2019
@mdarii
Copy link
Author

mdarii commented Jan 17, 2019

Solved, this feature is in beta, google beta provider should be used

@mdarii mdarii closed this as completed Jan 17, 2019
@ghost
Copy link

ghost commented Feb 17, 2019

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Feb 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant