Deployment
Deployment Overview
Strategies for deploying Monorepo Boilerplate.
Monorepo Boilerplate supports flexible deployment strategies to fit different infrastructure needs. Whether you prefer container orchestration or Infrastructure as Code (IaC) on AWS, the monorepo is ready.
Supported Strategies
1. Containerized (Docker & Kubernetes)
Ideal for environments that already run Kubernetes or require vendor-agnostic container orchestration. We provide Dockerfiles for all applications.
2. AWS CDK (Infrastructure as Code)
For teams deeply integrated with AWS, we support deploying the entire stack using AWS CDK. This approach defines all infrastructure (ECS, RDS, ElastiCache, etc.) in TypeScript, allowing it to live alongside the application code.
Build Process
Regardless of the strategy, the build process typically involves:
- Turborepo Pruning: Extracting only the necessary files for a specific app (e.g.,
turbo prune --scope=@monorepo/api --docker). - Docker Build: Building the container image.
- Push: Pushing the image to a registry (ECR, Docker Hub).