🚀
Serverless Full-Stack
CloudFront → Cognito → API Gateway → Lambda → DynamoDB with authentication.
What you can build with this
A complete production web application with user sign-up, sign-in, and protected APIs — all serverless. Cognito manages user accounts. Your frontend is served globally via CloudFront. API calls require a valid login session. Lambda functions handle requests and store data in DynamoDB.
Deployment timing
After you run the deploy command, resources come online at different times. Check the validation steps in order.
| Resource | Ready in |
|---|---|
| Cognito User Pool | 1–2 min |
| API Gateway endpoint | Ready at stack completion |
| Lambda Function | Ready at stack completion |
| DynamoDB Table | Ready at stack completion |
| CloudFront fully propagated | 5–15 min after CREATE_COMPLETE |
DNS / Certificate note: CloudFront requires an ACM certificate in us-east-1 for custom domains. CloudFront distributions take 5–15 minutes to propagate globally after creation or configuration changes.
CloudFormation parameters
These are the values you will fill in when deploying the exported template. Changing these does not break the template — that is the point.
| Parameter | What to provide | Example |
|---|---|---|
| UserPoolName | Cognito user pool name — this is your user database | my-app-users |
| AppClientName | Name of the Cognito app client | my-app-client |
| TableName | DynamoDB table name | app-data |
| LambdaS3Bucket | S3 bucket containing your Lambda zip | my-artifacts |
| LambdaS3Key | Path to Lambda zip in S3 | functions/api.zip |