Skip to content

Deploy to AWS

  • 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-identity works). The image is built from your machine’s credentials with AWS CodeBuild — no local Docker needed.
name: my-agent
version: 1.0.0
cloud: aws
region: us-east-1
strategy: containers
source: { 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.

strategy: serverless
cloudOptions:
functionName: my-agent # default: the agent name
timeoutSeconds: 60 # max 900
maxConcurrency: 10 # optional

Your normal HTTP server runs on Lambda through the AWS Lambda Web Adapter, which the build adds automatically.

Terminal window
agent-platform deploy # --watch to stream progress, --yes to skip the confirmation
agent-platform deploy --local-build # build with Docker on your machine instead of CodeBuild
agent-platform deploy --dry-run # show the plan only

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