Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

8.2 KB
Raw Blame
// Shared by batch exports and warehouse destinations: a region in one list but not the other
// fails only at connect time.

// S3-family region list spanning AWS, Google Cloud Storage, Cloudflare R2, and OVHcloud. Non-AWS
// entries are prefixed with their provider; AWS-style codes are left bare because S3-compatible
// providers (MinIO, Wasabi, etc.) commonly reuse them (e.g. `us-east-1`) as a default region.
export const S3_REGION_OPTIONS: { value: string; label: string }[] = [
    // AWS
    { value: 'us-east-1', label: 'US East (N. Virginia)' },
    { value: 'us-east-2', label: 'US East (Ohio)' },
    { value: 'us-west-1', label: 'US West (N. California)' },
    { value: 'us-west-2', label: 'US West (Oregon)' },
    { value: 'af-south-1', label: 'Africa (Cape Town)' },
    { value: 'ap-east-1', label: 'Asia Pacific (Hong Kong)' },
    { value: 'ap-south-1', label: 'Asia Pacific (Mumbai)' },
    { value: 'ap-northeast-3', label: 'Asia Pacific (Osaka-Local)' },
    { value: 'ap-northeast-2', label: 'Asia Pacific (Seoul)' },
    { value: 'ap-southeast-1', label: 'Asia Pacific (Singapore)' },
    { value: 'ap-southeast-2', label: 'Asia Pacific (Sydney)' },
    { value: 'ap-northeast-1', label: 'Asia Pacific (Tokyo)' },
    { value: 'ca-central-1', label: 'Canada (Central)' },
    { value: 'cn-north-1', label: 'China (Beijing)' },
    { value: 'cn-northwest-1', label: 'China (Ningxia)' },
    { value: 'eu-central-1', label: 'Europe (Frankfurt)' },
    { value: 'eu-west-1', label: 'Europe (Ireland)' },
    { value: 'eu-west-2', label: 'Europe (London)' },
    { value: 'eu-south-1', label: 'Europe (Milan)' },
    { value: 'eu-west-3', label: 'Europe (Paris)' },
    { value: 'eu-north-1', label: 'Europe (Stockholm)' },
    { value: 'me-east-1', label: 'Middle East (Dubai)' },
    { value: 'me-south-1', label: 'Middle East (Bahrain)' },
    { value: 'me-central-1', label: 'Middle East (Riyadh)' },
    { value: 'sa-east-1', label: 'South America (São Paulo)' },
    // Google Cloud Storage (via the S3-compatible XML API). https://docs.cloud.google.com/storage/docs/locations
    { value: 'northamerica-northeast1', label: 'GCP — Montréal (northamerica-northeast1)' },
    { value: 'northamerica-northeast2', label: 'GCP — Toronto (northamerica-northeast2)' },
    { value: 'northamerica-south1', label: 'GCP — Querétaro (northamerica-south1)' },
    { value: 'us-central1', label: 'GCP — Iowa (us-central1)' },
    { value: 'us-east1', label: 'GCP — South Carolina (us-east1)' },
    { value: 'us-east4', label: 'GCP — Northern Virginia (us-east4)' },
    { value: 'us-east5', label: 'GCP — Columbus (us-east5)' },
    { value: 'us-south1', label: 'GCP — Dallas (us-south1)' },
    { value: 'us-west1', label: 'GCP — Oregon (us-west1)' },
    { value: 'us-west2', label: 'GCP — Los Angeles (us-west2)' },
    { value: 'us-west3', label: 'GCP — Salt Lake City (us-west3)' },
    { value: 'us-west4', label: 'GCP — Las Vegas (us-west4)' },
    { value: 'southamerica-east1', label: 'GCP — São Paulo (southamerica-east1)' },
    { value: 'southamerica-west1', label: 'GCP — Santiago (southamerica-west1)' },
    { value: 'europe-central2', label: 'GCP — Warsaw (europe-central2)' },
    { value: 'europe-north1', label: 'GCP — Finland (europe-north1)' },
    { value: 'europe-north2', label: 'GCP — Stockholm (europe-north2)' },
    { value: 'europe-southwest1', label: 'GCP — Madrid (europe-southwest1)' },
    { value: 'europe-west1', label: 'GCP — Belgium (europe-west1)' },
    { value: 'europe-west2', label: 'GCP — London (europe-west2)' },
    { value: 'europe-west3', label: 'GCP — Frankfurt (europe-west3)' },
    { value: 'europe-west4', label: 'GCP — Netherlands (europe-west4)' },
    { value: 'europe-west6', label: 'GCP — Zürich (europe-west6)' },
    { value: 'europe-west8', label: 'GCP — Milan (europe-west8)' },
    { value: 'europe-west9', label: 'GCP — Paris (europe-west9)' },
    { value: 'europe-west10', label: 'GCP — Berlin (europe-west10)' },
    { value: 'europe-west12', label: 'GCP — Turin (europe-west12)' },
    { value: 'asia-east1', label: 'GCP — Taiwan (asia-east1)' },
    { value: 'asia-east2', label: 'GCP — Hong Kong (asia-east2)' },
    { value: 'asia-northeast1', label: 'GCP — Tokyo (asia-northeast1)' },
    { value: 'asia-northeast2', label: 'GCP — Osaka (asia-northeast2)' },
    { value: 'asia-northeast3', label: 'GCP — Seoul (asia-northeast3)' },
    { value: 'asia-south1', label: 'GCP — Mumbai (asia-south1)' },
    { value: 'asia-south2', label: 'GCP — Delhi (asia-south2)' },
    { value: 'asia-southeast1', label: 'GCP — Singapore (asia-southeast1)' },
    { value: 'asia-southeast2', label: 'GCP — Jakarta (asia-southeast2)' },
    { value: 'asia-southeast3', label: 'GCP — Bangkok (asia-southeast3)' },
    { value: 'me-central1', label: 'GCP — Doha (me-central1)' },
    { value: 'me-central2', label: 'GCP — Dammam (me-central2)' },
    { value: 'me-west1', label: 'GCP — Tel Aviv (me-west1)' },
    { value: 'australia-southeast1', label: 'GCP — Sydney (australia-southeast1)' },
    { value: 'australia-southeast2', label: 'GCP — Melbourne (australia-southeast2)' },
    { value: 'africa-south1', label: 'GCP — Johannesburg (africa-south1)' },
    { value: 'US', label: 'GCP — US (multi-region)' },
    { value: 'EU', label: 'GCP — EU (multi-region)' },
    { value: 'ASIA', label: 'GCP — Asia (multi-region)' },
    // Cloudflare R2 (location hints)
    { value: 'auto', label: 'Cloudflare R2 — Automatic (AUTO)' },
    { value: 'apac', label: 'Cloudflare R2 — Asia Pacific (APAC)' },
    { value: 'eeur', label: 'Cloudflare R2 — Eastern Europe (EEUR)' },
    { value: 'enam', label: 'Cloudflare R2 — Eastern North America (ENAM)' },
    { value: 'oc', label: 'Cloudflare R2 — Oceania (OC)' },
    { value: 'weur', label: 'Cloudflare R2 — Western Europe (WEUR)' },
    { value: 'wnam', label: 'Cloudflare R2 — Western North America (WNAM)' },
    // OVHcloud
    { value: 'gra', label: 'OVH — Gravelines (GRA)' },
    { value: 'rbx', label: 'OVH — Roubaix (RBX)' },
    { value: 'sbg', label: 'OVH — Strasbourg (SBG)' },
    { value: 'eu-west-par', label: 'OVH — Paris (PAR)' },
    { value: 'eu-south-mil', label: 'OVH — Milan (MIL)' },
    { value: 'de', label: 'OVH — Frankfurt (DE)' },
    { value: 'uk', label: 'OVH — London (UK)' },
    { value: 'waw', label: 'OVH — Warsaw (WAW)' },
    { value: 'bhs', label: 'OVH — Beauharnois (BHS)' },
    { value: 'ca-east-tor', label: 'OVH — Toronto (TOR)' },
    { value: 'sgp', label: 'OVH — Singapore (SGP)' },
    { value: 'ap-southeast-syd', label: 'OVH — Sydney (SYD)' },
    { value: 'ap-south-mum', label: 'OVH — Mumbai (MUM)' },
]

// AWS-only region subset used for the Redshift COPY S3 staging bucket.
export const AWS_ONLY_REGION_OPTIONS: { value: string; label: string }[] = [
    { value: 'us-east-1', label: 'US East (N. Virginia)' },
    { value: 'us-east-2', label: 'US East (Ohio)' },
    { value: 'us-west-1', label: 'US West (N. California)' },
    { value: 'us-west-2', label: 'US West (Oregon)' },
    { value: 'af-south-1', label: 'Africa (Cape Town)' },
    { value: 'ap-east-1', label: 'Asia Pacific (Hong Kong)' },
    { value: 'ap-south-1', label: 'Asia Pacific (Mumbai)' },
    { value: 'ap-northeast-3', label: 'Asia Pacific (Osaka-Local)' },
    { value: 'ap-northeast-2', label: 'Asia Pacific (Seoul)' },
    { value: 'ap-southeast-1', label: 'Asia Pacific (Singapore)' },
    { value: 'ap-southeast-2', label: 'Asia Pacific (Sydney)' },
    { value: 'ap-northeast-1', label: 'Asia Pacific (Tokyo)' },
    { value: 'ca-central-1', label: 'Canada (Central)' },
    { value: 'cn-north-1', label: 'China (Beijing)' },
    { value: 'cn-northwest-1', label: 'China (Ningxia)' },
    { value: 'eu-central-1', label: 'Europe (Frankfurt)' },
    { value: 'eu-west-1', label: 'Europe (Ireland)' },
    { value: 'eu-west-2', label: 'Europe (London)' },
    { value: 'eu-south-1', label: 'Europe (Milan)' },
    { value: 'eu-west-3', label: 'Europe (Paris)' },
    { value: 'eu-north-1', label: 'Europe (Stockholm)' },
    { value: 'me-south-1', label: 'Middle East (Bahrain)' },
    { value: 'me-central-1', label: 'Middle East (Riyadh)' },
    { value: 'sa-east-1', label: 'South America (São Paulo)' },
]