docs/scf/README.md
Update: In June 2025, we launched a new version of SCF with many additional features. Review the Upgrading Guide to learn more. For documentation of the original SCF, visit the legacy docs here.
One solution to deploy serverless workloads everywhere - Serverless Container Framework (SCF) is a unified development and deployment experience for containers on serverless platforms.
The value of SCF lies in its Heroku-like experience for deploying containers on serverless platforms, without vendor lock-in. Deploy to any container-supporting serverless platform. While PaaS providers charge hefty markups based on compute usage, SCF charges only a fixed cost per each container you deploy. Even better, SCF's license is free for every developer/organization making less than $2 million in revenue per year.
SCF delivers an architecture that capable of massively scalable APIs and event handling. It uses AWS Cloudfront functions for request routing, allowing developers to freely mix and transition between AWS Lambda and AWS ECS Fargate compute options, accompanied by a rich development experience.
::youtube{id="KXNYemGzda4"}
Serverless Container Framework offers simple YAML to deliver complex architectures via a serverless.containers.yml file. Here is a simple example of a full-stack application.
name: acmeinc
deployment:
type: [email protected]
containers:
# Web (Frontend)
service-web:
src: ./web
routing:
domain: acmeinc.com
pathPattern: /*
compute:
type: awsLambda
# API (Backend)
service-api:
src: ./api
routing:
domain: api.acmeinc.com
pathPattern: /api/*
pathHealthCheck: /health
compute:
type: awsFargateEcs
awsFargateEcs:
memory: 4096
cpu: 1024
environment:
HELLO: world
awsIam:
customPolicy:
Version: '2012-10-17'
Statement:
- Effect: Allow
Action:
- dynamodb:GetItem
Resource:
- '*'
integrations:
# Slack notifications for API errors
error-alerts:
type: slack
name: 'API Error Alerts'