oci_core_vtap

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

Creates a virtual test access point (VTAP) in the specified compartment.

For the purposes of access control, you must provide the OCID of the compartment that contains the VTAP. For more information about compartments and access control, see Overview of the IAM Service. For information about OCIDs, see Resource Identifiers.

You may optionally specify a display name for the VTAP, otherwise a default is provided. It does not have to be unique, and you can change it.

Example Usage

resource "oci_core_vtap" "test_vtap" {
    #Required
    capture_filter_id = oci_core_capture_filter.test_capture_filter.id
    compartment_id = var.compartment_id
    source_id = oci_core_source.test_source.id
    vcn_id = oci_core_vcn.test_vcn.id

    #Optional
    defined_tags = {"Operations.CostCenter"= "42"}
    display_name = var.vtap_display_name
    encapsulation_protocol = var.vtap_encapsulation_protocol
    freeform_tags = {"Department"= "Finance"}
    is_vtap_enabled = var.vtap_is_vtap_enabled
    max_packet_size = var.vtap_max_packet_size
    source_private_endpoint_ip = var.vtap_source_private_endpoint_ip
    source_private_endpoint_subnet_id = oci_core_subnet.test_subnet.id
    source_type = var.vtap_source_type
    target_id = oci_cloud_guard_target.test_target.id
    target_ip = var.vtap_target_ip
    target_type = var.vtap_target_type
    traffic_mode = var.vtap_traffic_mode
    vxlan_network_identifier = var.vtap_vxlan_network_identifier
}

Argument Reference

The following arguments are supported:

* 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 Vtap * update - (Defaults to 20 minutes), when updating the Vtap * delete - (Defaults to 20 minutes), when destroying the Vtap

Import

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

$ terraform import oci_core_vtap.test_vtap "id"