Deploying on AWS (ECS Fargate)
Introduction
Architecture Overview
┌─────────────────────────────────────────────────────────────┐
│ Your AWS Account │
│ │
│ Internet → Application Load Balancer (ALB) │
│ │ │
│ └── Port 80/443 → CAP Agent (web/solution) │
│ │
│ ECS Fargate (CAP Agent container — private IP per task) │
│ │ ↑ │
│ │ CAP Console → Task Private IP:20001 (direct) │
│ │ │
│ ├── RDS PostgreSQL (application data) │
│ ├── EFS (shared file storage / uploads) │
│ └── CloudWatch Logs (agent logs) │
└─────────────────────────────────────────────────────────────┘Component
Service
Purpose
Prerequisites
Deployment
Step 1: Obtain the CloudFormation Template
Step 2: Deploy the Stack
Parameter
Description
Example
Step 3: Retrieve the Stack Outputs
Output Key
Description
Example
First-Time Setup
Register the Agent in Your CAP Console
Verify the Agent Endpoint
Install Extensions
Deploy Your First Agent Configuration
Configuration Persistence (Gold Master Pattern)
Container Start
Behaviour
Viewing Agent Logs
Scaling
Updating the Container Image
Troubleshooting
Agent Shows Offline in Console
Container Tasks Failing Health Checks
S3 Snapshot Restore Fails on Startup
Cannot Access Console Web UI
Last updated


