Облачная платформаEvolution

cloudru_evolution_compute_security_group_rule (Resource)


Example Usage

resource "cloudru_evolution_compute_security_group_rule" "resource_security_group_rule" {
description = "e712e5b6-1eb3-4fd2-acbd-4a0bf650f5e1"
# Варианты значений параметра direction:
# TRAFFIC_DIRECTION_INGRESS, TRAFFIC_DIRECTION_EGRESS
direction = "TRAFFIC_DIRECTION_EGRESS"
# Варианты значений параметра ether_type:
# ETHER_TYPE_IPV4, ETHER_TYPE_IPV6
ether_type = "ETHER_TYPE_IPV4"
# Варианты значений параметра ip_protocol:
# IP_PROTOCOL_TCP, IP_PROTOCOL_UDP, IP_PROTOCOL_ICMP, IP_PROTOCOL_ANY
ip_protocol = "IP_PROTOCOL_ANY"
port_range = "de665cdd-8d27-47e0-a86c-102bb2782ad7"
remote_ip_prefix = "6ae88d9f-8b48-4294-a44e-19e26a34efee"
remote_security_group = {
# Нужно заполнить одно из значений - id, name.
id = "b02ffd98-3ffc-48d4-8bb5-cc763aa87c1c"
name = "38c3cc1d-50c6-4067-bbdf-670305650efc"
}
security_group_id = "ac3aee1e-7175-4bb6-9923-a0b3c7e9a526"
# Позволяет переопределить дефолтный таймаут провайдера для определенного метода. Если нужно указать бесконечный таймаут, то нужно указать например 0s, тогда таймаута не будет.
timeouts {
create = "60m"
update = "30m"
delete = "20m"
}
# Игнорировать изменения таймаутов: это предотвращает лишние обновления ресурса при смене значений таймаутов в конфигурации
# Но следует учитывать, что метод delete в ресурсе читает значение таймаута из стейта и, если его нужно изменить, то этот блок стоит закомментировать
lifecycle {
ignore_changes = [timeouts]
}
}

Schema

Required

  • direction (String) Направление трафика.

  • ether_type (String) Версия протокола IP.

  • ip_protocol (String) Протокол.

  • port_range (String) Диапазон портов.

  • security_group_id (String) Идентификатор группы безопасности.

Optional

  • description (String) Описание правила.

  • remote_ip_prefix (String) Префикс IP-адреса.

  • remote_security_group (Attributes) Параметры группы безопасности. (see below for nested schema)

  • timeouts (Block, Optional) (see below for nested schema)

Read-Only

  • id (String) Идентификатор правила.

  • security_group (Attributes) Параметры группы безопасности. (see below for nested schema)

  • status (String) Статус правила группы безопасности.

Nested Schema for remote_security_group

Optional:

  • id (String) Идентификатор группы безопасности.

  • name (String) Название группы безопасности.

Read-Only:

  • status (String) Статус группы безопасности.

Nested Schema for timeouts

Optional:

  • create (String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as «30s» or «2h45m». Valid time units are «s» (seconds), «m» (minutes), «h» (hours).

  • delete (String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as «30s» or «2h45m». Valid time units are «s» (seconds), «m» (minutes), «h» (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.

  • update (String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as «30s» or «2h45m». Valid time units are «s» (seconds), «m» (minutes), «h» (hours).

Nested Schema for security_group

Read-Only:

  • id (String) Идентификатор группы безопасности.

  • name (String) Название группы безопасности.

  • status (String) Статус группы безопасности.

cloudru_evolution_compute_security_group_rule (Resource) — документация Terraform для Evolution руководство пользователя облако Cloud.ru