yandex_vpc_gateway (Data Source)
Written by
Updated at September 11, 2025
Get information about a Yandex VPC gateway. For more information, see Yandex Cloud VPC.
This data source is used to define VPC Gateways that can be used by other resources.
Warning
One of gateway_id or name should be specified.
Example usage
//
// Get information about existing VPC NAT Gateway.
//
data "yandex_vpc_gateway" "default" {
gateway_id = "my-gateway-id"
}
Schema
Optional
folder_id(String) The folder identifier that resource belongs to. If it is not provided, the default providerfolder-idis used.gateway_id(String) ID of the VPC Gateway.name(String) The resource name.shared_egress_gateway(Block List, Max: 1) Shared egress gateway configuration. Currently empty. (see below for nested schema)
Read-Only
created_at(String) The creation timestamp of the resource.description(String) The resource description.id(String) The ID of this resource.labels(Map of String) A set of key/value label pairs which assigned to resource.