انتقل إلى المحتوى الرئيسي

AWS Deployment Guide

Deploy Ever Gauzy to Amazon Web Services (AWS).

Architecture

Services Used

AWS ServicePurpose
ECS (Fargate)Container orchestration
RDSPostgreSQL database
ElastiCacheRedis caching
S3File storage
ALBLoad balancing
Route 53DNS management
ACMSSL certificates
Secrets ManagerSecret storage
CloudWatchMonitoring & logs

Quick Start with ECS

1. Create RDS PostgreSQL

aws rds create-db-instance \
--db-instance-identifier gauzy-db \
--db-instance-class db.t3.medium \
--engine postgres \
--master-username gauzy \
--master-user-password your-password \
--allocated-storage 50

2. Create ElastiCache Redis

aws elasticache create-cache-cluster \
--cache-cluster-id gauzy-redis \
--engine redis \
--cache-node-type cache.t3.micro \
--num-cache-nodes 1

3. Create ECS Task Definition

{
"family": "gauzy-api",
"containerDefinitions": [
{
"name": "api",
"image": "ghcr.io/ever-co/gauzy-api:latest",
"portMappings": [{ "containerPort": 3000 }],
"environment": [
{ "name": "DB_TYPE", "value": "postgres" },
{ "name": "DB_HOST", "value": "gauzy-db.xxx.rds.amazonaws.com" },
{
"name": "REDIS_HOST",
"value": "gauzy-redis.xxx.cache.amazonaws.com"
},
{ "name": "FILE_PROVIDER", "value": "S3" },
{ "name": "AWS_S3_BUCKET", "value": "gauzy-uploads" }
]
}
]
}

4. Configure S3 File Storage

FILE_PROVIDER=S3
AWS_ACCESS_KEY_ID=your-key
AWS_SECRET_ACCESS_KEY=your-secret
AWS_REGION=us-east-1
AWS_S3_BUCKET=gauzy-uploads

Cost Estimate

ServiceSizeMonthly Cost
ECS Fargate (2)1 vCPU, 2GB~$60
RDSdb.t3.medium~$70
ElastiCachecache.t3.micro~$15
S310GB~$1
ALBStandard~$20
Total~$166/mo