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

Cannot update or create backend_service backed by a group. #1051

Closed
rosbo opened this issue Feb 5, 2018 · 1 comment · Fixed by #1053
Closed

Cannot update or create backend_service backed by a group. #1051

rosbo opened this issue Feb 5, 2018 · 1 comment · Fixed by #1053
Assignees
Labels

Comments

@rosbo
Copy link
Contributor

rosbo commented Feb 5, 2018

Config

resource "google_compute_backend_service" "lipsum" {
  name        = "tst-bs"
  description = "Hello World 1234"
  port_name   = "http"
  protocol    = "HTTP"

  backend {
    group = "${google_compute_instance_group_manager.foobar.instance_group}"
  }

  health_checks = ["${google_compute_http_health_check.default.self_link}"]
}

resource "google_compute_instance_group_manager" "foobar" {
  name               = "tst-igm"
  instance_template  = "${google_compute_instance_template.foobar.self_link}"
  base_instance_name = "foobar"
  zone               = "us-central1-f"
  target_size        = 1
}

resource "google_compute_instance_template" "foobar" {
  name         = "tst-tpl"
  machine_type = "n1-standard-1"

  network_interface {
    network = "default"
  }

  disk {
    source_image = "debian-8-jessie-v20160803"
    auto_delete  = true
    boot         = true
  }
}

resource "google_compute_http_health_check" "default" {
  name               = "tst-hc"
  request_path       = "/"
  check_interval_sec = 1
  timeout_sec        = 1
}

Error

* google_compute_backend_service.lipsum: Error creating backend service: googleapi: Error 400: Invalid value for field 'resource.backends[0]': ''. Both maxRate or maxRatePerInstance cannot be set., invalid

Expected behavior

Create my backend service without failing since I am not setting maxRate or maxRatePerInstance.

@rosbo rosbo self-assigned this Feb 5, 2018
@rosbo rosbo added the bug label Feb 5, 2018
modular-magician added a commit to modular-magician/terraform-provider-google that referenced this issue Sep 27, 2019
@ghost
Copy link

ghost commented Mar 29, 2020

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 👉 [email protected]. Thanks!

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

Successfully merging a pull request may close this issue.

1 participant