» jdcloud_vpc

Provides a JDCloud VPC

» Example Usage

resource "jdcloud_vpc" "vpc-example"{
    vpc_name = "example"
    cidr_block = "172.16.0.0/19"
}

» Argument reference

The following arguments are supported:

  • vpc_name - (Required) : The name of this VPC
  • cidr_block - (Required) : Each VPC contains an IP addresses interval. For example, a VPC with cidr_bock look like 172.16.0.0/19 . IPs of subnet within this VPC are subset of 172.16.0.0/19.
  • description - (Optional) : Describe this VPC

» Attribute Reference

The following attributes are exported:

  • id- : The id of this vpc, used to specify this VPC

» Import

Existing VPC can be imported to Terraform state by specifying the id of this VPC.

terraform import jdcloud_vpc.example vpc-example