Files
terraform-provider-binarylane/docs/resources/vpc.md
2025-07-20 09:44:53 +08:00

1.1 KiB

page_title, subcategory, description
page_title subcategory description
binarylane_vpc Resource - terraform-provider-binarylane

binarylane_vpc (Resource)

Example Usage

resource "binarylane_vpc" "example" {
  name     = "tf-example-vpc"
  ip_range = "10.240.0.0/16"
}

resource "binarylane_server" "example" {
  # ...
  vpc_id = binarylane_vpc.example.id
}

Schema

Required

  • name (String) A name to help identify this VPC.

Optional

  • ip_range (String) A private address range that you select during creation, such as the default value of 10.240.0.0/16. Because the virtual network is dedicated to your use, you may use whatever IP address range you like.

Read-Only

  • id (Number) The target vpc id.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

terraform import binarylane_vpc.example "<vpc_id>"