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
}
}
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
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 areltsandedge. Defaults tolts. -
size- Size of the gateway instance. Supported values aresmallandlarge. Defaults tosmall. -
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 totrue. -
last_mile_security- Whether to enable last-mile security (TLS between gateway and upstream). Defaults totrue.
-
-
properties- Runtime properties for the gateway.-
upstream_response_timeout- Timeout in seconds for upstream service responses. Defaults to15. -
connection_idle_timeout- Timeout in seconds for idle connections. Defaults to60.
-
-
logging- Logging configuration for the gateway.-
level- Log level. Supported values aredebug,info,warn, anderror. Defaults toinfo. -
forward_logs- Whether to forward logs to Anypoint Monitoring. Defaults totrue.
-
-
tracing- Distributed tracing configuration for the gateway.-
enabled- Whether distributed tracing is enabled. Defaults tofalse.
-



