WunderGraph Cosmo Router

AWS Developer Tools

WunderGraph Cosmo Router, a fast, self contained GraphQL federation gateway that unifies many GraphQL subgraphs behind one endpoint.

Base
Hardened build
minimal ports, security patches applied at build time
Access
Unique credentials
generated on first boot, readable only by root
Verified
Boots working
services pass a health gate before release
Support
24/7, 365 days
by email and live chat, 24 hour response SLA

Overview

WunderGraph Cosmo Router is the open source data plane of the Cosmo GraphQL federation platform: a single, statically compiled gateway that stitches many independent GraphQL services, called subgraphs, into one federated graph that clients query through a single endpoint. Written in Go and distributed as one dependency free binary, it starts instantly, uses very little memory, and needs no external database or control plane to run. The router plans and executes federated queries across your subgraphs, resolves shared entities by key, and returns a single joined response, so a client can ask for fields that live in several services in one round trip. This image runs the router standalone against a locally composed execution config and ships with a small two subgraph demo, a products service and an inventory service, wired together so a federated query works the moment the instance boots. It is the foundation you point real GraphQL subgraphs at when you want federation, query planning, and a single unified schema without adopting a hosted platform.

Why the cloudimg image

The cloudimg image is hardened and fully patched with the Cosmo Router preconfigured behind nginx, the router bound to loopback and the federated GraphQL endpoint gated by a per instance API key so it can never be left as an open, unauthenticated data gateway. It ships secure by default with no shared credentials: on first boot every instance generates its own API key and writes it to a root only file, while a public health endpoint stays open for liveness checks. A working demo supergraph is composed at build time so federation is provable out of the box. Every instance is backed by a paired deploy guide and 24/7 cloudimg support.

Common uses

  • Unify many GraphQL subgraphs into one federated endpoint
  • Run a self hosted GraphQL federation gateway with no hosted control plane
  • Prototype and test federated query planning across services

Key features

  • Federated GraphQL gateway operational in minutes, not hours: the official checksum verified Cosmo Router binary is pre installed under systemd, reverse proxied behind nginx, and serving federated queries immediately after boot. A do it yourself install would first require downloading the binary, writing systemd units, configuring nginx, installing the composition CLI, composing an execution config, and hardening network access before the first query resolves.
  • Secure by default with zero configuration: the query endpoint is gated by a unique API key generated on every instance's first boot and stored in a root only file, the router binds only to loopback behind nginx, and the endpoint returns 401 without the correct key. The public health endpoint stays open for liveness probes, there is no default or baked key, and the shipped security group opens only the SSH and HTTP ports.
  • Ships a working demo supergraph composed from two local Apollo Federation v2 subgraphs that returns real joined data out of the box, so you can validate federation behaviour before connecting your own services. The operating system is fully patched at build time with unattended security updates, and 24/7 cloudimg support by email and live chat covers deployment, subgraph composition, the API key gateway, TLS and version upgrades.

Description

This is a repackaged open source software product wherein additional charges apply for cloudimg support services.

## Launch a Federated GraphQL Gateway in Minutes, Not Days

WunderGraph Cosmo Router is the open source, high performance GraphQL federation gateway built in Go. This AMI delivers it fully installed, security hardened, and operational immediately after boot, eliminating the manual setup, composition toolchain installation, and reverse proxy configuration that a do it yourself deployment requires.

Unlike managed federation services that require a SaaS control plane, cloud account, or graph token, this AMI runs standalone against a static execution config composed at build time. You get full infrastructure control with no external dependencies and no lock in to a SaaS dashboard.

## Why This Image Instead of Installing the Binary Yourself

  • Hours of setup reduced to minutes: the router binary is checksum verified, installed under systemd, reverse proxied behind nginx, and serving federated queries before you finish reading the welcome notes
  • Secure by default, not secure after configuration: a bare Cosmo Router install has no API gateway in front of it, while this image generates a unique per instance API key on first boot, binds the router to loopback only, and gates the query endpoint behind nginx
  • Production patterns built in: systemd manages automatic restarts and clean logging, unattended security updates keep the operating system patched, and the shipped security group opens only the SSH and HTTP ports
  • Composition tooling bundled: move from the demo supergraph to your own subgraphs by running the included wgc CLI to compose a new execution config and reloading the service

## Federated GraphQL Gateway

The router loads a static execution config and federates its subgraphs behind one endpoint, resolving a single client query across multiple services and joining their fields through federation entity keys. It is compatible with Apollo Federation v1 and v2 subgraphs. The image ships a small, self contained demo supergraph composed from two local Apollo Federation v2 subgraphs so the federated endpoint returns real joined data out of the box.

## Secure By Default

The federated GraphQL endpoint must never be an open, unauthenticated data gateway, so this image enforces that from first boot:

  • nginx fronts the router on port 80 and gates the query endpoint with a per instance API key
  • No default or baked key exists, a unique key is generated on each instance's first boot and written to a root only credentials file
  • The health endpoint stays public for liveness checks while the query endpoint returns 401 without the correct key
  • The router binds only to the loopback interface and is never directly reachable from the network
  • The shipped security group opens only the SSH and HTTP ports

## Ready To Use

Connect over SSH and the gateway is already running. Read the welcome notes for the generated per instance API key and the reachable URL, confirm the health check, and send a federated query with your key. systemd manages the router and the demo subgraphs for automatic restarts and clean logging, and the operating system is fully patched at build time and continues to receive unattended security updates.

## cloudimg Support

24/7 technical support by email and live chat. Our engineers help with router deployment, composing your own subgraphs into the execution config with the bundled wgc CLI, configuring the API key gateway, TLS and reverse proxy setup, observability, and version upgrades.

## Use Cases

  • Serving a federated GraphQL gateway that unifies many independent subgraphs behind one endpoint on infrastructure you control
  • Running a self hosted Cosmo Router data plane without the SaaS control plane, cloud account, or graph token
  • Giving a platform team a preconfigured, API key gated GraphQL federation gateway behind their own network controls and TLS

## Getting Started

1. Launch the AMI in your preferred AWS region

2. SSH into the instance and read the welcome notes for the per instance API key and reachable URL

3. Confirm the public health check returns 200 and send a federated query with your API key header

4. Recompose the execution config against your own subgraphs using the bundled wgc CLI and reload the router service

Related technologies

graphql federationfederated api gatewaycosmo routerwundergraphgraphql subgraphapollo federationself-hosted graphqlapi compositiongraphql routermicroservices gatewaysupergraphschema federation