oci_service_mesh_virtual_service_route_table

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

Creates a new VirtualServiceRouteTable.

Example Usage

resource "oci_service_mesh_virtual_service_route_table" "test_virtual_service_route_table" {
	#Required
	compartment_id = var.compartment_id
	name = var.virtual_service_route_table_name
	route_rules {
		#Required
		destinations {
			#Required
			virtual_deployment_id = oci_service_mesh_virtual_deployment.test_virtual_deployment.id
			weight = var.virtual_service_route_table_route_rules_destinations_weight

			#Optional
			port = var.virtual_service_route_table_route_rules_destinations_port
		}
		type = var.virtual_service_route_table_route_rules_type

		#Optional
		is_grpc = var.virtual_service_route_table_route_rules_is_grpc
		path = var.virtual_service_route_table_route_rules_path
		path_type = var.virtual_service_route_table_route_rules_path_type
		request_timeout_in_ms = var.virtual_service_route_table_route_rules_request_timeout_in_ms
	}
	virtual_service_id = oci_service_mesh_virtual_service.test_virtual_service.id

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.virtual_service_route_table_description
	freeform_tags = {"bar-key"= "value"}
	priority = var.virtual_service_route_table_priority
}

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

Import

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

$ terraform import oci_service_mesh_virtual_service_route_table.test_virtual_service_route_table "id"