AWS Fargate
AWS Fargate is one of the two places a production agent can run. Each agent you promote to production gets an always-on Fargate task in your AWS account.
The rest of the install, which is the console, the Control Plane and the database, runs on Railway or on your own computer. AWS runs only the agent machines.
Before you start
In your AWS account you need:
- A Fargate cluster in ECS. An empty one is enough.
- One or more subnets with a route to the internet.
- A security group that allows outbound traffic. An agent only calls out.
- The task execution role,
ecsTaskExecutionRole, withsecretsmanager:GetSecretValueonshipvoice/*added. - An IAM user with an access key. It must be able to register task definitions, manage ECS services, manage secrets under
shipvoice/, and pass the execution role.
Connect AWS
AWS is connected once for the whole brand.
- Choose Integrations, then AWS Fargate under Deployment platform.
- Fill in the fields.
| Field | What to paste |
|---|---|
| Access key id | The IAM user’s key. Starts with AKIA |
| Secret access key | Shown once, when the access key is made |
| Region | Such as ca-central-1 or us-east-1. Near your LiveKit server is best |
| ECS cluster | The cluster the machines are placed in |
| Subnets | One or more, comma separated, such as subnet-0abc, subnet-0def |
| Security group | Such as sg-0abc |
| Task execution role | The role’s ARN |
| Worker image | The image AWS pulls. AWS builds nothing, so name one, such as a release image or your own in ECR |
Go live
Promote an agent to production. ShipVoice Pro starts its task in your cluster, and the agent’s page shows the health of its machine. See Build an agent.