oci_core_vlan

This resource provides the Vlan resource in Oracle Cloud Infrastructure Core service.

Creates a VLAN in the specified VCN and the specified compartment.

Example Usage

resource "oci_core_vlan" "test_vlan" {
	#Required
	cidr_block = var.vlan_cidr_block
	compartment_id = var.compartment_id
	vcn_id = oci_core_vcn.test_vcn.id

	#Optional
	availability_domain = var.vlan_availability_domain
	defined_tags = {"Operations.CostCenter"= "42"}
	display_name = var.vlan_display_name
	freeform_tags = {"Department"= "Finance"}
	nsg_ids = var.vlan_nsg_ids
	route_table_id = oci_core_route_table.test_route_table.id
	vlan_tag = var.vlan_vlan_tag
}

Argument Reference

The following arguments are supported:

a. The CIDR block is valid and correctly formatted. b. The new range is within one of the parent VCN ranges.

Example: 192.0.2.0/24

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Vlan * update - (Defaults to 20 minutes), when updating the Vlan * delete - (Defaults to 20 minutes), when destroying the Vlan

Import

Vlans can be imported using the id, e.g.

$ terraform import oci_core_vlan.test_vlan "id"