Supabase blocked in India? Here's how we migrated to AWS/GCP without rewriting the app
If your app relies on Supabase and you're seeing failures in India — auth breaking, DB timeouts, storage not working — you're probably affected by the domain-level blocking of supabase.com.
The good news: Supabase is open-source and can be deployed on your own infrastructure — including AWS or Google Cloud — without rebuilding your app.
We recently migrated multiple projects. Here's exactly how it works.
Why This Is Possible
Supabase is built on open, composable components:
- PostgreSQL
- PostgREST
- GoTrue (Auth)
- Realtime
- Storage service
Because of this architecture, you're not locked into the hosted platform. You can deploy your own Supabase stack on:
- AWS (EC2 / ECS)
- Google Cloud (Compute Engine / Cloud Run)
- Any Docker-capable VM
How to Install Supabase on AWS or Google Cloud
On AWS
- Launch EC2 (Ubuntu 22.04 recommended)
- Open ports 80, 443, and required API ports
On GCP
- Create Compute Engine VM
- Allow HTTP/HTTPS traffic
Minimum recommendation: 2 vCPU · 4 GB RAM (more for production workloads)
sudo apt update
sudo apt install docker.io docker-compose -y
sudo systemctl enable docker
git clone https://github.com/supabase/supabase
cd supabase/docker
cp .env.example .env
Update in .env:
- JWT secret
- DB password
- Site URL
- SMTP settings
Then start:
docker compose up -d
This launches: PostgreSQL · Auth (GoTrue) · Realtime · PostgREST · Storage · Kong (API gateway)
Steps We Followed for Migration
1️⃣ Database Export
- Dump schema
- Dump data
- Ensure extensions included
- Preserve RLS policies
- Backup functions & triggers
2️⃣ Import into New Instance
- Restore schema
- Restore data
- Re-enable RLS
- Validate constraints & indexes
3️⃣ Auth Migration
- Export
auth.users - Preserve password hashes
- Reconfigure JWT
- Test login/signup
4️⃣ Storage Migration
- Sync bucket files
- Reconfigure storage path
- Validate public/private access
5️⃣ Edge Functions & AI
If using:
- Supabase Edge Functions
- AI workflows
- OpenClaw-based pipelines
- Webhooks
- No-code tools
- Vibe coding stacks
We redeploy functions and update service keys accordingly.
6️⃣ Update App Configuration
Replace:
SUPABASE_URL
SUPABASE_ANON_KEY
SUPABASE_SERVICE_ROLE_KEY
Redeploy app. Test:
- Login
- CRUD operations
- Realtime
- File uploads
What We Need to Begin 🚀
To start the migration smoothly, we typically need:
From there, we handle the rest.
Reach out at hi@gptindia.pro and we'll get your backend back online.