oci_core_service_gateway

This resource provides the Service Gateway resource in Oracle Cloud Infrastructure Core service.

Creates a new service gateway in the specified compartment.

For the purposes of access control, you must provide the OCID of the compartment where you want the service gateway to reside. 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 service gateway, otherwise a default is provided. It does not have to be unique, and you can change it. Avoid entering confidential information.

Use the ListServices operation to find service CIDR labels available in the region.

Example Usage

resource "oci_core_service_gateway" "test_service_gateway" {
	#Required
	compartment_id = var.compartment_id
	services {
		#Required
		service_id = data.oci_core_services.test_services.services.0.id
	}
	vcn_id = oci_core_vcn.test_vcn.id

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	display_name = var.service_gateway_display_name
	freeform_tags = {"Department"= "Finance"}
	route_table_id = oci_core_route_table.test_route_table.id
}

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

Import

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

$ terraform import oci_core_service_gateway.test_service_gateway "id"