docs: add ECS Fargate Spot reference architecture#764
Conversation
|
All PRs must reference a prior Discord discussion to ensure community alignment before implementation. Please edit the PR description to include a link like: This PR will be automatically closed in 3 days if the link is not added. |
OpenAB PR ScreeningThis is auto-generated by the OpenAB project-screening flow for context collection and reviewer handoff.
Screening report## IntentPR #764 adds a new AWS reference architecture document for running a single OpenAB bot on ECS Fargate Spot. It is trying to solve a deployer/operator problem: OpenAB can be cheap to run, but there is no concrete AWS deployment guide that explains the required secrets, IAM, persistence, task layout, and Spot interruption handling. The user-visible outcome is a copyable deployment playbook that an operator or coding agent can follow to provision OpenAB on AWS for roughly low monthly cost. FeatThis is a docs improvement with deployment-architecture guidance. Behaviorally, it does not change OpenAB runtime code. It adds Who It ServesPrimary beneficiaries:
Rewritten PromptAdd a new reference architecture doc at The document should be practical enough for a human or coding agent to follow end to end. Include the target architecture, estimated monthly cost assumptions, required AWS services, secrets/IAM setup, infrastructure steps, task definition shape, auth persistence strategy, deployment verification, and known operational gotchas. Keep the guide scoped to a single-bot, low-cost ECS Fargate Spot deployment. Clearly call out assumptions, failure modes from Spot interruption, and how auth state survives task replacement. Avoid implying this is the only production architecture. Merge PitchThis is worth advancing because it makes OpenAB easier to operate outside local/dev environments and gives deployers a concrete low-cost AWS path. The PR is low runtime risk because it only adds documentation. The main reviewer concern should be accuracy: AWS pricing, IAM permissions, task definition details, S3 auth persistence, and security posture need careful review. A misleading deployment guide can create more support burden than no guide, especially if users copy it into production. Best-Practice ComparisonOpenClaw principles that fit:
OpenClaw principles that may not fit directly:
Hermes Agent principles that fit:
Hermes Agent principles that may not fit directly:
Overall, the PR aligns with the “operator runbook” side of these systems: clear deployment ownership, durable state handling, isolated execution, and operational recovery. It should avoid overclaiming production readiness unless it also covers locking, concurrent task behavior, logs, retries, and restore procedures. Implementation OptionsConservative option: merge as a standalone reference architecture doc after technical review. Keep the scope to ECS Fargate Spot, add caveats for pricing/security, and require reviewers to validate commands, IAM policy shape, and persistence assumptions. Balanced option: merge the doc plus add a lightweight validation checklist or companion issue. The doc lands now, while follow-up work tracks tested Terraform/CDK examples, least-privilege IAM, and runtime-specific verification. Ambitious option: turn the refarch into a maintained deployment package. Add Terraform or CDK, example ECS task definitions, IAM policies, secret templates, health checks, logging defaults, and automated docs validation where possible. Comparison Table
RecommendationAdvance the balanced option. Merge the reference architecture as documentation if the technical details check out, but require it to include explicit assumptions and caveats around AWS pricing, security, Spot interruption behavior, and auth persistence. Open follow-up work for tested IaC, least-privilege IAM examples, and operational validation. That gives Masami or Pahud a mergeable next step without turning a docs PR into a full infrastructure product prematurely. |
Co-authored-by: openab-app[bot] <274185012+openab-app[bot]@users.noreply.github.com>
5592d12 to
8709e66
Compare
Summary
Add
docs/refarch/aws-ecs-fargate-spot.md— a step-by-step guide for deploying OpenAB on AWS ECS Fargate Spot at ~$2.7/month.What it covers
Motivation
ECS Fargate Spot is the cheapest AWS option for running a single OpenAB bot. This refarch enables users to prompt their coding CLI with:
and have the agent handle the full deployment autonomously.