Contact Us 1-800-596-4880

Managed Omni Gateway Resources

Use Managed Omni Gateway resources to manage gateway instances deployed in CloudHub 2.0 private spaces.

anypoint_managed_omni_gateway

Use the anypoint_managed_omni_gateway resource to manage a CloudHub 2.0 Managed Omni Gateway instance in Anypoint Platform.

This resource supports gateway deployment configuration, release channel selection, gateway size, ingress settings, runtime properties, logging, and distributed tracing.

The Gateway Manager API does not echo back configuration.tracing in POST/PUT responses. The provider retains the plan-requested value in state after create/update so that tracing.enabled = true works correctly. On the next terraform refresh or plan, the provider reads the live value from the API for accurate drift detection.

Example

resource "anypoint_managed_omni_gateway" "example" {
  name           = "my-omni-gateway"
  environment_id = "env-id-here"
  target_id      = "target-private-space-id"

  release_channel = "lts"
  size            = "small"

  ingress = {
    forward_ssl_session = true
    last_mile_security  = true
  }

  properties = {
    upstream_response_timeout = 15
    connection_idle_timeout   = 60
  }

  logging = {
    level        = "info"
    forward_logs = true
  }

  tracing = {
    enabled = false
  }
}

Key Arguments

  • name - (Required) Name of the managed Omni Gateway.

  • environment_id - (Required) Environment ID where the gateway is deployed.

  • target_id - (Required) Target private space ID for the gateway deployment.

  • organization_id - Organization ID. If omitted, the provider infers it from the connected app credentials.

  • runtime_version - Omni Gateway runtime version (for example, 1.9.9). If omitted, the provider auto-selects the latest version for the chosen release channel.

  • release_channel - Release channel for the gateway. Supported values are lts and edge. Defaults to lts.

  • size - Size of the gateway instance. Supported values are small and large. Defaults to small.

  • ingress - Ingress configuration for the gateway.

    • public_url - Public URL for the gateway ingress. Auto-derived from the target domain when empty.

    • internal_url - Internal URL for the gateway ingress. Auto-derived from the target domain when empty.

    • forward_ssl_session - Whether to forward SSL sessions to upstream services. Defaults to true.

    • last_mile_security - Whether to enable last-mile security (TLS between gateway and upstream). Defaults to true.

  • properties - Runtime properties for the gateway.

    • upstream_response_timeout - Timeout in seconds for upstream service responses. Defaults to 15.

    • connection_idle_timeout - Timeout in seconds for idle connections. Defaults to 60.

  • logging - Logging configuration for the gateway.

    • level - Log level. Supported values are debug, info, warn, and error. Defaults to info.

    • forward_logs - Whether to forward logs to Anypoint Monitoring. Defaults to true.

  • tracing - Distributed tracing configuration for the gateway.

    • enabled - Whether distributed tracing is enabled. Defaults to false.

Read-Only Attributes

  • id - Unique identifier of the managed Omni Gateway.

  • status - Current status of the managed Omni Gateway.

Import

terraform import anypoint_managed_omni_gateway.example <organization_id>/<environment_id>/<gateway_id>