Skip to main content
Iterate, customize, and manage your AgentOS AWS template for production.
infra/settings.py
infra_settings = InfraSettings(
    infra_name="my-custom-ai",
    aws_region="us-east-1",
    aws_subnet_ids=["subnet-123", "subnet-456"],
)

Customization Flow

PhaseAction
DevelopmentRun locally with Docker to iterate on code.
InfrastructureUpdate resource definitions in infra/.
ProductionProvision and update resources with Agno CLI.
AutomationUse GitHub Actions for continuous deployment.

Key Areas

1. Infrastructure Settings

Configure infra_name, aws_region, aws_subnet_ids, and image_repo in infra/settings.py. Infra Settings guide

2. Environments

Define development resources for Docker in infra/dev_resources.py and production resources for AWS ECS in infra/prd_resources.py. Development App | Production App

3. Database

Define tables with SQLAlchemy and manage migrations with Alembic. Production databases migrate during task startup. Database & Migrations guide

4. Security

Manage environment variables in resource files. Local secrets are stored in a Git-ignored secrets/ directory; production secrets use AWS Secrets Manager. Environment Variables | Secrets Manager

5. Python Dependencies

Add libraries to pyproject.toml. The template includes scripts to sync requirements.txt and rebuild images. Python Packages guide

6. CI/CD

Automate code validation (linting, testing) and image builds with pre-configured GitHub Actions. CI/CD guide

7. Networking

Enable HTTPS and point custom Route 53 domains to your load balancer using ACM. HTTPS guide

8. Workflow

SSH into containers for debugging and onboard new team members. SSH Access | Add New Users