aptible endpoints:tcp:create

This command lets you create a new TCP Endpoint.

Examples

In all the examples below, $SERVICE represents the name of a Service for the app you are adding an Endpoint to.

Tip

If your app is using an Implicit Service (CMD), the service name is always cmd.

Create a new Endpoint

aptible endpoints:tcp:create \
        --app "$APP_HANDLE" \
        "$SERVICE"

Create a new Endpoint using a Default Domain

aptible endpoints:tcp:create \
        --app "$APP_HANDLE" \
        --default-domain \
        "$SERVICE"

Create a new Endpoint using a custom set of Container Ports

aptible endpoints:tcp:create \
        --app "$APP_HANDLE" \
        --ports 8000 8001 8002 8003 \
        "$SERVICE"

Synopsis

Usage:
  aptible endpoints:tcp:create [--app APP] SERVICE

Options:
      [--environment=ENVIRONMENT]
      [--app=APP]
  -r, [--remote=REMOTE]
      [--default-domain], [--no-default-domain]  # Enable Default Domain on this Endpoint
      [--internal], [--no-internal]              # Restrict this Endpoint to internal traffic
      [--ports=one two three]                    # A list of ports to expose on this Endpoint
      [--ip-whitelist=one two three]             # A list of IPv4 sources (addresses or CIDRs) to which to restrict traffic to this Endpoint

Create an App TCP Endpoint