» aci_cloud_subnet

Manages ACI Cloud Subnet Note: This resource is supported in Cloud APIC only.

» Example Usage

    resource "aci_cloud_subnet" "foocloud_subnet" {
        cloud_cidr_pool_dn = "${aci_cloud_cidr_pool.example.id}"
        description        = "sample cloud subnet"
        ip                 = "14.12.0.0/28"
        annotation         = "tag_subnet"
        name_alias         = "alias_subnet"
        scope              = "public"
        usage              = "user"
    }

» Argument Reference

  • cloud_cidr_pool_dn - (Required) Distinguished name of parent CloudCIDRPool object.
  • ip - (Required) CIDR block of Object cloud_subnet.
  • annotation - (Optional) annotation for object cloud_subnet.
  • name_alias - (Optional) name_alias for object cloud_subnet.
  • scope - (Optional) The domain applicable to the capability. Allowed values are "public", "private" and "shared". Default is "private".
  • usage - (Optional) The usage of the port. This property shows how the port is used. Allowed values are "user" and "infra-router". Default is "user".
  • zone - (Optional) [AWS Only] Availability zone where the subnet must be deployed. This property can carry both the actual zone or the ACI logical zone name. In the former case, driver directly uses the value of this property. In the latter case, Connector has to first resolve the mapping from ACI logical zone to actual AWS zone. This parameter is required in APIC v5.0 or higher.

  • relation_cloud_rs_zone_attach - (Optional) Relation to class cloudZone. Cardinality - N_TO_ONE. Type - String.

  • relation_cloud_rs_subnet_to_flow_log - (Optional) Relation to class cloudAwsFlowLogPol. Cardinality - N_TO_ONE. Type - String.

» Attribute Reference

The only attribute that this resource exports is the id, which is set to the Dn of the Cloud Subnet.

» Importing

An existing Cloud Subnet can be imported into this resource via its Dn, via the following command:

terraform import aci_cloud_subnet.example <Dn>