> ## 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.

# ECS + Terraform

> Deploy and operate self-hosted Runlayer in your AWS account with ECS and Terraform

Runlayer's ECS Terraform module provisions the application services and supporting AWS infrastructure in **your account**. The standard configuration creates a VPC, load balancer, Aurora PostgreSQL, ElastiCache Redis, Secrets Manager secrets, and ECS Fargate services. [Optional ML services](https://docs.runlayer.com/deployment/ecs-features.md#ec2-and-gpu-services) run on EC2, some with a GPU.

You own the AWS account, Terraform state, configuration, upgrades, and recovery. Runlayer provides application artifacts, onboarding credentials, and support. See [Shared Responsibility](https://docs.runlayer.com/operations/shared-responsibility.md).

## Deployment path

Follow these pages in order:

1. Collect [Runlayer-provided inputs](https://docs.runlayer.com/deployment/runlayer-provided-inputs.md) and review [egress requirements](https://docs.runlayer.com/deployment/egress-requirements.md).
2. Complete [ECS prerequisites](https://docs.runlayer.com/deployment/ecs-prerequisites.md): tools, AWS identity, state storage, domain, and Bedrock access.
3. Choose [networking and private connectivity](https://docs.runlayer.com/deployment/ecs-networking.md), [database and service configuration](https://docs.runlayer.com/deployment/ecs-configuration.md), and any [optional features](https://docs.runlayer.com/deployment/ecs-features.md) required at launch.
4. Follow the [deployment guide](https://docs.runlayer.com/deployment/terraform.md): configure, initialize, validate, plan, apply, and verify.
5. Use [Updates](https://docs.runlayer.com/operations/updates.md) and the [module changelog](https://docs.runlayer.com/deployment/terraform-changelog.md) for subsequent releases.

## Artifacts and versions

| Artifact | Delivery | Version |
| - | - | - |
| Terraform module | Private S3 bucket `runlayer-infrastructure-modules` | Pin a module release, such as `v33.1.0` |
| Application images | Customer Distribution private ECR, account `088332244652` | Module default, or a compatible explicit `app_version` |

Module and application versions are separate. The [module changelog](https://docs.runlayer.com/deployment/terraform-changelog.md) lists the application default for each release. The [Terraform inputs reference](https://docs.runlayer.com/deployment/terraform-ecs-inputs.md) documents configuration; it is not the installation sequence.

Runlayer grants S3 download and ECR pull access during onboarding. Confirm access for the deployment identity and runtime image-pull identity before starting.

## Plan capacity and cost

Use the [AWS Pricing Calculator](https://calculator.aws/) with your region, service replica counts, Aurora ACUs, Redis sizing, NAT gateways, logs, data transfer, and optional GPU capacity. Feature selection and availability requirements materially change the cost; the default configuration is not a fixed-price deployment.

For Kubernetes on EKS or GKE, see [Kubernetes](https://docs.runlayer.com/deployment/kubernetes).


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