Skip to content

rso_external_service (Resource)

A named backend at the public edge: an address (usually an instance's IP) and the ports it serves. An rso_ingress_route sends traffic to it. The API has no update, so every change replaces the service.

Example Usage

resource "rso_external_service" "web" {
  name          = "web"
  external_name = "198.51.100.10"

  ports = [{
    port        = 80
    target_port = 8080
  }]
}

Schema

Required

  • external_name (String) IP address or host name traffic is forwarded to, e.g. an instance's address.
  • name (String) Service name, unique within the tenant.
  • ports (Attributes List) Ports the backend serves. With more than one port, each needs a name. (see below for nested schema)

Read-Only

  • id (String) The ID of this resource.

Nested Schema for ports

Required:

  • port (Number) Port the service exposes.
  • target_port (Number) Port on the backend.

Optional:

  • name (String) Port name; required when there are several ports.
  • protocol (String) TCP (default) or UDP.

Import

Import is supported using the following syntax:

# Import an existing external service by name.
terraform import rso_external_service.web web