AWS
flexcal has no CloudFormation template or Marketplace listing. Deploy the container image with the AWS service that suits you.
Shape of the deployment
Section titled “Shape of the deployment”| Piece | Suggested service |
|---|---|
| Application | ECS on Fargate, App Runner, or EC2 with Docker Compose |
| Database | RDS for PostgreSQL |
| TLS and routing | Application Load Balancer + ACM certificate |
| Secrets | AWS Secrets Manager or SSM Parameter Store |
- Create an RDS PostgreSQL instance in a private subnet and note its endpoint.
- Create the task or service running
docker.io/flexcal/flexcal:dev, exposing container port 3000. - Set the environment from Configuration. At minimum:
DATABASE_URL,NEXT_PUBLIC_WEBAPP_URL,NEXTAUTH_SECRET,CALENDSO_ENCRYPTION_KEY. - Put an ALB in front, terminate TLS there, and forward
X-Forwarded-ProtoandX-Forwarded-Host(see Troubleshooting). - Point Route 53 at the load balancer.
Running multiple tasks
Section titled “Running multiple tasks”With more than one replica, run migrations once per release rather than on every container start:
SKIP_DB_MIGRATIONS=1SKIP_APP_STORE_SEED=1Run the migration as a one-off task before rolling out the new revision.
Reference: AWS documentation.