mws_vpc_route (Resource)
Заголовок раздела «mws_vpc_route (Resource)»Маршрут — это набор правил, определяющих путь пакетов от источника к получателю
Пример использования
Заголовок раздела «Пример использования»resource "mws_vpc_network" "network" { network = var.network_name}
resource "mws_vpc_subnet" "subnet" { subnet = var.subnet_name network = mws_vpc_network.network.network cidr = var.subnet_cidr}
resource "mws_vpc_address" "address" { address = var.address_name network = mws_vpc_network.network.network subnet = mws_vpc_subnet.subnet.metadata.id}
resource "mws_vpc_route" "route" { route = var.route_name network = mws_vpc_network.network.network
destination = { spec = { cidrs = var.destination_cidrs } }
next_hop = { address = { ref = mws_vpc_address.address.id } }
metadata = { description = "Route to external network" display_name = "External Route" }}
variable "network_name" { type = string default = "my-test-network" description = "Network name"}
variable "subnet_name" { type = string default = "my-test-subnet" description = "Subnet name"}
variable "subnet_cidr" { type = string default = "192.168.0.0/16" description = "Subnet CIDR"}
variable "address_name" { type = string default = "my-test-address" description = "Address name"}
variable "route_name" { type = string default = "my-test-route" description = "Route name"}
variable "destination_cidrs" { type = list(string) default = ["10.0.0.0/8"] description = "Destination CIDRs for the route"}Required
Заголовок раздела «Required»destination(Attributes) Назначение (see below for nested schema)network(String) Имя сетиnext_hop(Attributes) Переход (see below for nested schema)route(String) Имя маршрута
Optional
Заголовок раздела «Optional»kind(String)metadata(Attributes) Набор общих для всех пользовательских объектов атрибутов. Может быть расширен атрибутами, специфичными для контейнеров. (see below for nested schema)project(String) Путь к проектуtimeouts(Attributes) (see below for nested schema)
Read-Only
Заголовок раздела «Read-Only»id(String) The ID of this resource.status(Attributes) (see below for nested schema)
Nested Schema for destination
Заголовок раздела «Nested Schema for destination»Required:
spec(Attributes) (see below for nested schema)
Nested Schema for destination.spec
Заголовок раздела «Nested Schema for destination.spec»Required:
cidrs(List of String) Набор IP-Адресов подсетей назначения
Nested Schema for next_hop
Заголовок раздела «Nested Schema for next_hop»Optional:
address(Attributes) Адрес. (see below for nested schema)nat_gateway(String) NAT шлюз.
Read-Only:
network_local(String) Локальная сеть.
Nested Schema for next_hop.address
Заголовок раздела «Nested Schema for next_hop.address»Required:
ref(String) ссылка на IP-Адрес назначения
Nested Schema for metadata
Заголовок раздела «Nested Schema for metadata»Optional:
description(String) Описание ресурсаdisplay_name(String) Отображаемое имя свойстваname(String, Deprecated) Обязательное уникальное, глобально или в пределах проекта, имя. Используется в качестве части составного идентификатора объекта.
Read-Only:
create_time(String) Дата создания объектаdelete_time(String) Время запроса на удаление ресурсаid(String) ID свойстваpurge_time(String) Время удаления ресурсаusages(Attributes List) Связи с другими ресурсами. В зависимости от типа связи, операции над ресурсом могут быть ограничены (see below for nested schema)
Nested Schema for metadata.usages
Заголовок раздела «Nested Schema for metadata.usages»Read-Only:
name(String) Имя связи, требуется для модификации коллекцииresource(String) Ссылка на ресурсusage_type(String) Тип связи. Помимо стандартных own и use могут быть добавлены специализированные типы для конкретных сервисов
Nested Schema for timeouts
Заголовок раздела «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 status
Заголовок раздела «Nested Schema for status»Read-Only:
destination(Attributes) (see below for nested schema)next_hop(Attributes) (see below for nested schema)ready(Attributes) Информация о статусе реконсиляции (see below for nested schema)
Nested Schema for status.destination
Заголовок раздела «Nested Schema for status.destination»Read-Only:
cidrs(List of String) Набор IP-Адресов подсетей назначения
Nested Schema for status.next_hop
Заголовок раздела «Nested Schema for status.next_hop»Read-Only:
address(Attributes) Адрес. (see below for nested schema)nat_gateway(String) NAT шлюз.network_local(String) Локальная сеть.
Nested Schema for status.next_hop.address
Заголовок раздела «Nested Schema for status.next_hop.address»Read-Only:
ip_address(String) Значение IP адреса.ref(String) Относительная ссылка на статический адрес.
Nested Schema for status.ready
Заголовок раздела «Nested Schema for status.ready»Read-Only:
message(String) Описание статусаstate(String) Состояние ресурса