Skip to main content

VPC

Provides an e2e vpc resource. This resource allows you to manage vpc on your e2e clusters. When applied, a new vpc is created. When destroyed, this vpc is removed.

Example Usage

 resource "e2e_vpc" "vpc1" {
vpc_name = "vpc_name"
location = "Delhi"
project_id = "12345" # Replace with your actual project ID
is_e2e_vpc = false # Optional, set false for custom vpc
ipv4 = "192.168.1.0/24" # Replace this with IPv4 CIDR block you want to add
}

Schema

Required

  • location (String) location should specified
  • vpc_name (String)
  • project_id (Required) (String) The ID of the project associated with the vpc

Optional

  • is_e2e_vpc (Boolean, Default: true) – Set true for provider-managed VPC (IPv4 auto-assigned), or false for custom VPC (requires ipv4).
  • ipv4 (String) – IPv4 CIDR block of the VPC; e.g., 192.168.1.0/24.,required if is_e2e_vpc = false, omit if is_e2e_vpc = true.

Read-Only

  • created_at (String)
  • gateway_ip (String)
  • id (String) The ID of this resource.
  • ipv4_cidr (String)
  • is_active (Boolean)
  • network_id (Number) The id of network
  • pool_size (Number)
  • state (String)