yandex_vpc_network (Resource)
Статья создана
Обновлена 9 апреля 2026 г.
Manages a network within the Yandex Cloud. For more information, see the official documentation.
- How-to Guides
Example usage
//
// Create a new VPC Network.
//
resource "yandex_vpc_network" "my_net" {
name = "foobar"
}
Arguments & Attributes Reference
created_at(Read-Only) (String). The creation timestamp of the resource.default_security_group_id(Read-Only) (String). ID of default Security Group of this network.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.subnet_ids(Read-Only) (List Of String). The list of VPC subnets identifiers which resource is attached.timeouts[Block].create(String).delete(String).update(String).
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_network.<resource Name> <resource Id>
terraform import yandex_vpc_network.my_net ...