Skip to content

Deploy to AWS

Prerequisites

  • AWS CLI configured (aws configure)
  • Credentials with permissions for: ECS, RDS, ElastiCache, SQS, SNS, S3, ECR, VPC, EC2

Deploy

bash
cooper deploy --env prod --cloud aws

What gets created

ResourceServiceSpec
VPC + subnetsNetworking2 AZs, internet gateway
Security groupFirewallPorts 80, 443, 4000 + internal
RDSDatabasedb.t3.micro, Postgres 15
ElastiCacheCachecache.t3.micro, Redis
SNS topicsPub/SubPer topic declaration
SQS queuesQueuesPer queue declaration
S3 bucketStorageStandard
ECR repoContainer registryFor app image
ECS FargateCompute256 CPU, 512 MB, auto-scaling

Environment variables

Set automatically on the ECS task:

  • COOPER_DB_MAIN_URL — RDS connection string
  • COOPER_VALKEY_URL — ElastiCache endpoint
  • COOPER_ENV — environment name

Cost estimate

+ RDS Postgres (db.t3.micro)     ~$28/mo
+ ElastiCache (cache.t3.micro)   ~$12/mo
+ ECS Fargate                    ~$0/mo (pay per use)

Apache-2.0 Licensed