timeweb-cloud / terraform-provider-timeweb-cloud

Timeweb Cloud Terraform Provider
46 stars 2 forks source link

Cant create VPC in NL #19

Open scipe opened 6 months ago

scipe commented 6 months ago

Error: expected location to be one of [ru-1 pl-1], got eu-1

scipe commented 6 months ago

Workaround: create vpc manually, import it and add location to lifecycle ignore:

resource "twc_vpc" "ru1" {
  name        = "${var.product_name}-${var.environment}-${var.location}-vpc-main"
  description = "Main VPC in ${var.location} location. Managed by Terraform"
  subnet_v4   = "192.168.0.0/24"
  location    = var.location

  lifecycle {
    ignore_changes = [location]
  }
}
trombonax commented 4 months ago

I have same issue, still not fixed