oci_service_mesh_ingress_gateway

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

Creates a new IngressGateway.

Example Usage

resource "oci_service_mesh_ingress_gateway" "test_ingress_gateway" {
	#Required
	compartment_id = var.compartment_id
	hosts {
		#Required
		listeners {
			#Required
			port = var.ingress_gateway_hosts_listeners_port
			protocol = var.ingress_gateway_hosts_listeners_protocol

			#Optional
			tls {
				#Required
				mode = var.ingress_gateway_hosts_listeners_tls_mode

				#Optional
				client_validation {

					#Optional
					subject_alternate_names = var.ingress_gateway_hosts_listeners_tls_client_validation_subject_alternate_names
					trusted_ca_bundle {
						#Required
						type = var.ingress_gateway_hosts_listeners_tls_client_validation_trusted_ca_bundle_type

						#Optional
						ca_bundle_id = oci_certificates_management_ca_bundle.test_ca_bundle.id
						secret_name = oci_vault_secret.test_secret.name
					}
				}
				server_certificate {
					#Required
					type = var.ingress_gateway_hosts_listeners_tls_server_certificate_type

					#Optional
					certificate_id = oci_certificates_management_certificate.test_certificate.id
					secret_name = oci_vault_secret.test_secret.name
				}
			}
		}
		name = var.ingress_gateway_hosts_name

		#Optional
		hostnames = var.ingress_gateway_hosts_hostnames
	}
	mesh_id = oci_service_mesh_mesh.test_mesh.id
	name = var.ingress_gateway_name

	#Optional
	access_logging {

		#Optional
		is_enabled = var.ingress_gateway_access_logging_is_enabled
	}
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.ingress_gateway_description
	freeform_tags = {"bar-key"= "value"}
	mtls {

		#Optional
		maximum_validity = var.ingress_gateway_mtls_maximum_validity
	}
}

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

Import

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

$ terraform import oci_service_mesh_ingress_gateway.test_ingress_gateway "id"