CLOUDdotRu / evo-terraform

Cloud.ru Evolution Terraform provider
https://cloud.ru/docs/terraform-evolution/ug/index.html
MIT License
2 stars 1 forks source link

Не создается sNAT #6

Closed SmirnIL closed 3 weeks ago

SmirnIL commented 5 months ago

При создании NAT-gateway terraform выдает ошибку:

╷
│ Error: failed to create nat gateway
│ 
│   with cloudru_evolution_nat_gateway.gateway,
│   on main.tf line 44, in resource "cloudru_evolution_nat_gateway" "gateway":
│   44: resource "cloudru_evolution_nat_gateway" "gateway" {
│ 
╵

Plan проходит без ошибок.

Код:

data "cloudru_evolution_availability_zone" "azs" {
  filter {
    # NOTE: Это опциональный параметр, default by provider meta
    # project_id = 00000000-0000-0000-0000-000000000000"
  }
}

locals {
  demo_azs = [
    for s in data.cloudru_evolution_availability_zone.azs.resources : s if s.name == "ru.AZ-1"
  ]
  demo_az = local.demo_azs.0
}

resource "cloudru_evolution_nat_gateway" "gateway" {

  name = "test-gateway"
  description = "123"
  availability_zone {
    id = local.demo_az.id
  }

  project {
    id = "<projectId>"
  }
  nat_type = "Public sNAT"
}
mac-ru commented 2 months ago

Не подтверждаю, успешно создалось с изменением только project на project_id = "мой"