alicloud_vpc_ipv4_cidr_block

Provides a VPC Ipv4 Cidr Block resource. VPC IPv4 additional network segment.

For information about VPC Ipv4 Cidr Block and how to use it, see What is Ipv4 Cidr Block.

Example Usage

Basic Usage

variable "name" {
  default = "terraform-example"
}

provider "alicloud" {
  region = "cn-hangzhou"
}

resource "alicloud_vpc" "defaultvpc" {
  description = var.name
}

resource "alicloud_vpc_ipv4_cidr_block" "default" {
  secondary_cidr_block = "192.168.0.0/16"
  vpc_id               = alicloud_vpc.defaultvpc.id
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

VPC Ipv4 Cidr Block can be imported using the id, e.g.

$ terraform import alicloud_vpc_ipv4_cidr_block.example <vpc_id>:<secondary_cidr_block>