Skip to main content
CloudWatch Logs captures output from your ECS containers.

View Logs

Tail logs in real-time:
Search recent logs:
Replace {infra_name} with your infra_name from settings.py (e.g., agentos-aws-template).

ECS Service Status

View service status and recent events:
List running tasks:

What Success Looks Like

After a successful deployment, logs show:
Health check passing:

Warning Signs

Health Checks

The load balancer checks /health every 30 seconds. If unhealthy, check:
  1. Container logs for startup errors
  2. Security group allows port 8000 from ALB
  3. Database connectivity (DB_HOST, DB_PASS)

Log Retention

CloudWatch retains logs indefinitely by default. Set a retention policy to control costs:

Alerts (Optional)

Create a CloudWatch alarm for task failures:
See AWS SNS documentation to create a notification topic.