alicloud_eflo_subnet

Provides a Eflo Subnet resource.

For information about Eflo Subnet and how to use it, see What is Subnet.

Example Usage

Basic Usage

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

provider "alicloud" {
  region = "cn-wulanchabu"
}
data "alicloud_zones" "default" {}
data "alicloud_resource_manager_resource_groups" "default" {}

resource "alicloud_eflo_vpd" "default" {
  cidr              = "10.0.0.0/8"
  vpd_name          = var.name
  resource_group_id = data.alicloud_resource_manager_resource_groups.default.groups.0.id
}

resource "alicloud_eflo_subnet" "default" {
  subnet_name = var.name
  zone_id     = data.alicloud_zones.default.zones.0.id
  cidr        = "10.0.0.0/16"
  vpd_id      = alicloud_eflo_vpd.default.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

Eflo Subnet can be imported using the id, e.g.

$ terraform import alicloud_eflo_subnet.example <vpd_id>:<subnet_id>