> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runlayer.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Deployment Overview

> Choose ECS or Kubernetes and prepare a self-hosted Runlayer deployment

Use the [Infrastructure Skill](https://docs.runlayer.com/deployment/infra-skill.md) with your local AI agent to prepare ECS or EKS deployment files and upgrade plans from current public docs.

## Hosted vs. Self-Hosted

Runlayer runs either as a **Runlayer-hosted** deployment or **self-hosted** in your own infrastructure. What runs where:

| | Runlayer-hosted | Self-hosted |
| - | - | - |
| **Gateway, platform app, database, audit logs** | Single-tenant deployment in an AWS account Runlayer operates for you | Your AWS account or Kubernetes cluster, deployed via the Terraform/Helm options below |
| **Updates** | Applied by Runlayer — see [Updates](https://docs.runlayer.com/operations/updates.md) | Applied by you on your schedule |
| **[OAuth Broker](https://docs.runlayer.com/oauth-broker.md)** | Available (shared Runlayer infrastructure at `oauth.runlayer.com`) | Call shared `oauth.runlayer.com` when VPC egress allows it; otherwise use [per-vendor OAuth setup](https://docs.runlayer.com/oauth-broker.md#self-hosted-deployments) |
| **AI Watch (Shadow AI device agent)** | Runs on employee devices in both models; talks only to your tenant host over HTTPS — see [Deploy AI Watch](https://docs.runlayer.com/shadow-ai/deploy.md) | Same for devices. Platform tasks still need the outbound hosts in [Self-Hosted Egress Requirements](https://docs.runlayer.com/deployment/egress-requirements.md) unless you use VPC endpoints / disable optional features |

In both models your organization gets an isolated deployment — you are not sharing a database with other Runlayer customers. See [Account Strategy & Isolation](#account-strategy--isolation) below for the available topologies, including a Runlayer-operated dedicated account.

## Deployment Options

Choose the platform you will operate:

| | ECS + Terraform | Kubernetes + Runlayer Operator |
| - | - | - |
| **Platform** | AWS ECS Fargate; EC2 for [optional ML services](https://docs.runlayer.com/deployment/ecs-features.md#ec2-and-gpu-services) (GPU and CPU) | EKS or GKE cluster you provision |
| **Infrastructure** | Module creates VPC, ALB, Aurora, Redis, IAM, and application services; existing infrastructure options are available | You provide cluster, PostgreSQL, Redis, IAM/workload identity, ingress, and feature dependencies |
| **Tools** | Terraform or OpenTofu 1.12.0+; AWS CLI v2 | Kubernetes 1.29+, Helm 3.8+, kubectl with CRD install permissions |
| **Updates** | You apply module/application updates with Terraform | You update charts, CRDs, and application versions |
| **Start here** | [ECS + Terraform](https://docs.runlayer.com/deployment/ecs) | [Kubernetes](https://docs.runlayer.com/deployment/kubernetes) |

See each platform's prerequisites for provider constraints, cluster features, quotas, and version compatibility.

## Getting Started

Preparation shared by both platforms:

1. Choose your account/project, region, application hostname, and deployment model.
2. Collect [Runlayer-provided inputs](https://docs.runlayer.com/deployment/runlayer-provided-inputs.md): release pins, artifact access, authentication, and the catalog key.
3. Prepare [network and egress access](https://docs.runlayer.com/deployment/egress-requirements.md) for core services and selected features.
4. If using Sentry Relay, prepare its [credentials](https://docs.runlayer.com/deployment/sentry-relay-vault.md).
5. Follow your platform's ordered guide below.

> [card] [ECS + Terraform](https://docs.runlayer.com/deployment/ecs)
>
> AWS identity and state → network and configuration → deploy → verify

> [card] [Kubernetes](https://docs.runlayer.com/deployment/kubernetes)
>
> Cluster → external dependencies → workload identity → Operator deployment → verify

## Account Strategy & Isolation

A common question is whether Runlayer should live in a **separate AWS account** from your applications and data systems. Runlayer supports several account topologies:

| Strategy | Who owns the account | Isolation boundary | Best for |
| - | - | - | - |
| **Dedicated account (Runlayer-operated)** | Runlayer runs a single-tenant deployment in an account it operates for you | AWS account boundary | Teams that want single-tenant isolation without operating the infrastructure |
| **Dedicated account (customer-owned)** | You create a separate "platform" account and deploy Runlayer there with the [Runlayer Operator](https://docs.runlayer.com/deployment/runlayer-operator.md) (EKS/GKE) or [ECS Terraform](https://docs.runlayer.com/deployment/terraform.md) | AWS/GCP account boundary | Enterprises with strict isolation or account-per-workload policies |
| **Shared account/VPC** | You deploy into an existing account/VPC onto a cluster you already run | VPC/subnet and security groups | Teams consolidating infrastructure to reduce cost and network complexity |
| **Multi-tenant shared cluster** | One account, multiple isolated tenants via the [Runlayer Operator](https://docs.runlayer.com/deployment/runlayer-operator.md) | Per-tenant namespaces (`runlayer-<customerId>`) plus per-tenant Postgres, Redis, and IAM roles | Platform teams running Runlayer for multiple internal orgs on one EKS/GKE cluster |

Running Runlayer in a dedicated account gives the strongest blast-radius isolation (separate IAM, CloudTrail, and billing), at the cost of managing an extra account and any cross-account networking. Sharing an account or VPC is simpler operationally but relies on VPC, security group, and IAM boundaries instead of the account boundary.

> [!NOTE]
>
> A separate account does not require copying credentials for your data systems into it. Hosted connectors can use [cross-account IAM role assumption](https://docs.runlayer.com/platform-deploy.md#aws-cross-account-roles-hosted-only) (`infrastructure.aws.assume_roles`) to call AWS APIs in your production accounts without storing long-lived access keys.

## POC to Production

A proof of concept can use the same product surfaces as production — connectors, policies, Sessions, AI Watch, audit logs, and analytics — but whether it can roll forward without redeployment depends on the deployment boundary you choose:

| POC shape | Production path |
| - | - |
| **Runlayer-hosted single tenant** | Usually expands by adding users, connectors, policies, and MDM scope in the same tenant. |
| **Customer-owned AWS/EKS/ECS** | Can roll forward if the POC was deployed with the production account, VPC, domain, secrets, backup, and upgrade posture you want to keep. |
| **Temporary sandbox or throwaway VPC** | Usually redeploy production infrastructure, then migrate configuration intentionally. |
| **Detect-only or Monitor endpoint pilot** | Expand MDM scope, then select Protect or Enforce and broaden Sessions coverage after scanner tuning. |

Public docs do not publish standard POC timelines or success criteria. Use [Sessions](https://docs.runlayer.com/platform-sessions.md#recommended-rollout), [Analytics](https://docs.runlayer.com/platform-analytics.md), [Incidents](https://docs.runlayer.com/platform-incidents.md), and [Audit Logs](https://docs.runlayer.com/platform-audit-logs.md) as the evidence sources during a pilot.

## Capacity and Cost

Estimate infrastructure cost using your region, workload, availability target, database/cache capacity, NAT and data transfer, logging, and optional GPU services. For AWS, use the [AWS Pricing Calculator](https://calculator.aws/). A successful proof of concept does not establish production throughput or availability; validate your expected workload and recovery procedures.

Infrastructure cost is separate from Runlayer commercial pricing. Ask your Runlayer account team for commercial terms.

## Operations

After verification, establish [backup and restore](https://docs.runlayer.com/operations/backup-restore.md), [maintenance](https://docs.runlayer.com/operations/maintenance.md), and [update/rollback](https://docs.runlayer.com/operations/updates.md) procedures. See [Shared Responsibility](https://docs.runlayer.com/operations/shared-responsibility.md) for ownership boundaries.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.