│ - name: Field does not match the pattern /|[a-zA-Z]([-_a-zA-Z0-9]{0,61}[a-zA-Z0-9])?/
│ with yandex_vpc_security_group.group1,
│ on main.tf line 17, in resource "yandex_vpc_security_group" "group1":
│ 17: resource "yandex_vpc_security_group" "group1" {
но group1 нормально попадает под шаблон. И этот же пример есть в официальной доке. Пробовал на разных версиях провайдера и terraform
data "yandex_client_config" "client" {}
module "tf-yc-instance" {
source = "../modules/tf-yc-instance"
zone = var.zone
VM_name = var.VM_name
subnet_id = var.subnet_id
image_id = var.image_id
number-of-cpu-cores = var.number-of-cpu-cores
instance-memory = var.instance-memory
core-fraction = var.core-fraction
disk_size = var.ec2_disk_size
disk_type = var.disk_type
security_group_ids = [yandex_vpc_security_group.group1.id]
}
resource "yandex_vpc_security_group" "group1" {
name = "vm security group"
description = ""
network_id = var.network_id
ingress {
protocol = "TCP"
description = "OpenSearch"
v4_cidr_blocks = []
port = 9200
}
ingress {
protocol = "TCP"
description = "ssh"
v4_cidr_blocks = []
port = 22
}
egress {
protocol = "ANY"
description = "Outgoing traffic"
from_port = 0
to_port = 65535
v4_cidr_blocks = ["0.0.0.0/0"]
}
}