×

10.2. oblakoteka_kvm_vnet

Defines a virtual network for KVM instances.
 
Example usage
resource "oblakoteka_kvm_vnet" "vnet1" {
  region = var.region_oblakoteka_ru_msk
  name = "tf_vnet1"
  subnet = {
    subnet_cidr = "192.168.10.0/24"
    dns1 = "8.8.8.8"
    dns2 = "1.1.1.1"
  }
  outbound_nat_ip_address = {
    id = oblakoteka_kvm_extip.ip1.id
  }
}
 
Attributes:
  • region (Required): Region where the virtual network is created.
  • name (Required): Name of the virtual network.
  • subnet (Required): Subnet configuration block.
  • subnet_cidr (Required): CIDR block for the subnet.
  • dns1 (Optional): Primary DNS server.
  • dns2 (Optional): Secondary DNS server.
  • outbound_nat_ip_address (Optional): NAT IP address block.
  • id (Required if provided): ID of the external IP used for NAT.
  • id (Computed): Unique identifier for the virtual network.