
Your account could not be loaded.
Move From LeadZ Platform → Your Own Server
Complete guide to migrating from the hosted platform to AWS or Azure. Includes infrastructure code, deployment scripts, CI/CD pipelines, data migration, DNS cutover, and a full checklist.
Step 0 — Export Your Data First (Do This Now)
Exports: Customers, Jobs, Invoices, Estimates, Leads, Technicians, Settings, Payments, Notes, and more.
What Changes When You Self-Host
| Component | Hosted Platform (now) | Self-Hosted (after) |
|---|---|---|
| Authentication | Platform auth server | Your own JWT backend |
| Database | Platform-managed DB | PostgreSQL 15 on RDS/Azure DB |
| File Storage | Platform storage | S3 / Azure Blob |
| API / Functions | Platform functions runtime | Deno server you control |
| Frontend SDK | @base44/sdk npm package | Self-hosted API client (drop-in) |
| Platform relay | Your SendGrid account | |
| Real-time (WebSocket) | Platform WebSockets | Your Deno WebSocket server |
| Domain | app.platform.com | crm.yourdomain.com |
AWS vs Azure — Cost & Feature Comparison
~$150-350/mo estimated
Services Used
- ECS Fargate (containers)
- RDS PostgreSQL Multi-AZ
- ElastiCache Redis
- S3 + CloudFront CDN
- ALB Load Balancer
- Secrets Manager
- CloudWatch Logs
Pros
- + Largest ecosystem
- + Best Terraform support
- + Mature CI/CD (CodePipeline)
- + Global edge locations
Cons
- - More complex setup
- - IAM can be confusing
- - Many services to manage
~$130-300/mo estimated
Services Used
- Container Apps (serverless)
- PostgreSQL Flexible Server
- Azure Cache for Redis
- Blob Storage + CDN
- Key Vault (secrets)
- Log Analytics
- ACR (container registry)
Pros
- + Container Apps auto-scale to zero
- + Bicep is simpler than Terraform
- + Excellent AD/SSO integration
- + Good Canadian data residency
Cons
- - Less community resources
- - Portal can be overwhelming
- - Slightly higher DB costs
Migration Timeline
Planning & Setup
Choose cloud provider, create account, install tools, get API keys
Infrastructure
Run Terraform/Bicep, provision DB/Redis/Storage, apply schema
App Deployment
Build & push Docker images, deploy to ECS/Container Apps, test
Validate & Cutover
Staging test, import data, DNS cutover, monitor
# ── macOS (Homebrew) ────────────────────────────────────── brew install terraform awscli azure-cli docker node git postgresql # ── Ubuntu/Debian ───────────────────────────────────────── # Docker curl -fsSL https://get.docker.com | sh sudo usermod -aG docker $USER # AWS CLI curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o awscliv2.zip unzip awscliv2.zip && sudo ./aws/install # Azure CLI curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash # Terraform wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list sudo apt update && sudo apt install terraform # Node.js 20 (for import script) curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash - sudo apt install -y nodejs # Verify versions terraform --version # >= 1.6 aws --version # >= 2.0 az --version # >= 2.55 docker --version # >= 24.0 node --version # >= 20.0
Need Hands-On Migration Help?
The LeadZ team offers white-glove cloud migrations: full infrastructure setup, data migration, testing, and DNS cutover — managed for you.
support@lead-z.ca