oci_service_mesh_virtual_deployment

This resource provides the Virtual Deployment resource in Oracle Cloud Infrastructure Service Mesh service.

Creates a new VirtualDeployment.

Example Usage

resource "oci_service_mesh_virtual_deployment" "test_virtual_deployment" {
    #Required
    compartment_id = var.compartment_id
    name = var.virtual_deployment_name
    virtual_service_id = oci_service_mesh_virtual_service.test_virtual_service.id

    #Optional
    access_logging {

        #Optional
        is_enabled = var.virtual_deployment_access_logging_is_enabled
    }
    defined_tags = {"foo-namespace.bar-key"= "value"}
    description = var.virtual_deployment_description
    freeform_tags = {"bar-key"= "value"}
    listeners {
        #Required
        port = var.virtual_deployment_listeners_port
        protocol = var.virtual_deployment_listeners_protocol

        #Optional
        idle_timeout_in_ms = var.virtual_deployment_listeners_idle_timeout_in_ms
        request_timeout_in_ms = var.virtual_deployment_listeners_request_timeout_in_ms
    }
    service_discovery {
        #Required
        type = var.virtual_deployment_service_discovery_type

        #Optional
        hostname = var.virtual_deployment_service_discovery_hostname
    }
}

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

Import

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

$ terraform import oci_service_mesh_virtual_deployment.test_virtual_deployment "id"