selectel_vpc_subnet_v2
This instruction is a copy of the Selectel Terraform provider's documentation in the Terraform Registry.
Creates and manages a public subnet using public API v2. For more information about public subnets, see the official Selectel documentation.
Example Usage
resource "selectel_vpc_subnet_v2" "subnet_1" {
project_id = selectel_vpc_project_v2.project_1.id
region = "ru-3"
ip_version = "ipv4"
prefix_length = 29
}
Argument Reference
-
project_id
— (Required) Unique identifier of the associated project. Changing this creates a new public subnet. Retrieved from the selectel_vpc_project_v2 resource. Learn more about Projects. -
region
— (Required) Pool where the public subnet is located, for example,ru-3
. Changing this creates a new public subnet. Learn more about available pools in the Availability matrix. -
ip_version
— (Optional) Internet protocol version supported in the public subnet. The only available value isipv4
. -
prefix_length
— (Optional) Prefix length of the public subnet. The default value is29
. Changing this creates a new public subnet.