Deploy to AWS
Before you start
Section titled “Before you start”- A cloud account for AWS — access keys, or your own account via BYOC.
- The AWS CLI signed in on your machine (
aws sts get-caller-identityworks). The image is built from your machine’s credentials with AWS CodeBuild — no local Docker needed.
Always on: ECS Fargate
Section titled “Always on: ECS Fargate”name: my-agentversion: 1.0.0cloud: awsregion: us-east-1strategy: containerssource: { type: local, path: . }resources: { memory: 512Mi, cpu: 0.25 }permissions: [write-logs]secrets: [OPENAI_API_KEY]networking: { public: true, port: 8080, healthPath: /health }cloudOptions: clusterName: my-agent-cluster # networkMode: vpc # subnetIds: [subnet-...] # securityGroupIds: [sg-...]By default AbstractAI uses the account’s default VPC and manages a security group for you. Set networkMode: vpc to use your
own subnets and security groups.
Scale to zero: Lambda
Section titled “Scale to zero: Lambda”strategy: serverlesscloudOptions: functionName: my-agent # default: the agent name timeoutSeconds: 60 # max 900 maxConcurrency: 10 # optionalYour normal HTTP server runs on Lambda through the AWS Lambda Web Adapter, which the build adds automatically.
Deploy
Section titled “Deploy”agent-platform deploy # --watch to stream progress, --yes to skip the confirmationagent-platform deploy --local-build # build with Docker on your machine instead of CodeBuildagent-platform deploy --dry-run # show the plan onlyThe CLI prints the endpoint when the health check passes. Secrets reach the service through AWS Secrets Manager
(ECS) or encrypted environment variables (Lambda). Logs go to CloudWatch and show up in the dashboard and
agent-platform logs.