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

yandex_mdb_redis_cluster timeout #331

Open
warpreality opened this issue Apr 4, 2023 · 1 comment
Open

yandex_mdb_redis_cluster timeout #331

warpreality opened this issue Apr 4, 2023 · 1 comment

Comments

@warpreality
Copy link

warpreality commented Apr 4, 2023

Terraform v1.4.2
on linux_amd64

  • provider registry.terraform.io/yandex-cloud/yandex v0.88.0

I am create a resource yandex_mdb_redis_cluster as same as in documentation, but get error

resource "yandex_mdb_redis_cluster" "redis" {
  name             = "redis"
  description      = "Redis service for cache backend"
  environment      = "PRODUCTION"
  tls_enabled      = true
  persistence_mode = "ON"
  network_id       = "${yandex_vpc_network.preproduction_vpc_network.id}"

  config {
    password         = "**********"
    version          = "7.0"
    timeout          = "120"
    databases        = "24"
  }

  resources {
    resource_preset_id = "hm3-c4-m24"
    disk_size          = 50
  }

  host {
    zone      = "ru-central1-a"
    subnet_id = "${yandex_vpc_subnet.preproduction-subnet-a.id}"
  }

  maintenance_window {
    type = "ANYTIME"
  }
}
Error: error while requesting API to update maintenance window in Redis Cluster "-----": server-request-id = c0d0a908-4148-41fb-8b99-2dad7ebc6278 server-trace-id = 76f04f4bb5abc285:519056242332a5e4:76f04f4bb5abc285:1 client-request-id = 1c2aedd1-8fe2-42a3-8f39-f005e38e3c13 client-trace-id = be6a0117-4aaa-473a-b656-7ffa5ffb3251 rpc error: code = FailedPrecondition desc = no changes detected

At the next run terraform request to replace cluster.

@warpreality
Copy link
Author

found a workaround: if you write the maintenance window in full, it works without errors

  maintenance_window {
    type = "WEEKLY"
    day = "SUN"
    hour = 2
  }

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

1 participant