yandex_vpc_gateway (Resource)
Written by
Updated at February 9, 2026
Manages a gateway within the Yandex Cloud. For more information, see the official documentation.
- How-to Guides
Example usage
//
// Create a new VPC NAT Gateway.
//
resource "yandex_vpc_gateway" "my_gw" {
name = "foobar"
shared_egress_gateway {}
}
Arguments & Attributes Reference
created_at(Read-Only) (String). The creation timestamp of the resource.description(String). The resource description.folder_id(String). The folder identifier that resource belongs to. If it is not provided, the default providerfolder-idis used.id(String).labels(Map Of String). A set of key/value label pairs which assigned to resource.name(String). The resource name.shared_egress_gateway[Block]. Shared egress gateway configuration. Currently empty.
Import
The resource can be imported by using their resource ID. For getting it you can use Yandex Cloud Web Console
# terraform import yandex_vpc_gateway.<resource Name> <resource Id>
terraform import yandex_vpc_gateway.my_gw ...