The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: add `AWS_NEW` provider (#33697)
angelico9b34521bedb0
diff --git a/apps/studio/components/interfaces/ProjectCreation/ProjectCreation.utils.ts b/apps/studio/components/interfaces/ProjectCreation/ProjectCreation.utils.tsindex bf52844efd8..07d460f1bce 100644--- a/apps/studio/components/interfaces/ProjectCreation/ProjectCreation.utils.ts+++ b/apps/studio/components/interfaces/ProjectCreation/ProjectCreation.utils.ts@@ -2,11 +2,13 @@ import type { CloudProvider, Region } from 'shared-data'import { AWS_REGIONS, FLY_REGIONS } from 'shared-data'export function getAvailableRegions(cloudProvider: CloudProvider): Region {- if (cloudProvider === 'AWS') {- return AWS_REGIONS- } else if (cloudProvider === 'FLY') {- return FLY_REGIONS+ switch (cloudProvider) {+ case 'AWS':+ case 'AWS_NEW':+ return AWS_REGIONS+ case 'FLY':+ return FLY_REGIONS+ default:+ throw new Error('Invalid cloud provider')}-- throw new Error('Invalid cloud provider')}diff --git a/apps/studio/data/projects/new-project.constants.ts b/apps/studio/data/projects/new-project.constants.tsindex 82a51c5f84b..aad9488de61 100644--- a/apps/studio/data/projects/new-project.constants.ts+++ b/apps/studio/data/projects/new-project.constants.ts@@ -20,7 +20,7 @@ export const instanceSizeSpecs: Record<cpu: '2-core',priceHourly: 0.01344,priceMonthly: 10,- cloud_providers: [PROVIDERS.AWS.id, PROVIDERS.FLY.id],+ cloud_providers: [PROVIDERS.AWS.id, PROVIDERS.AWS_NEW.id, PROVIDERS.FLY.id],},small: {label: 'Small',@@ -28,7 +28,7 @@ export const instanceSizeSpecs: Record<cpu: '2-core',priceHourly: 0.0206,priceMonthly: 15,- cloud_providers: [PROVIDERS.AWS.id, PROVIDERS.FLY.id],+ cloud_providers: [PROVIDERS.AWS.id, PROVIDERS.AWS_NEW.id, PROVIDERS.FLY.id],},medium: {label: 'Medium',@@ -36,7 +36,7 @@ export const instanceSizeSpecs: Record<cpu: '2-core',priceHourly: 0.0822,priceMonthly: 60,- cloud_providers: [PROVIDERS.AWS.id, PROVIDERS.FLY.id],+ cloud_providers: [PROVIDERS.AWS.id, PROVIDERS.AWS_NEW.id, PROVIDERS.FLY.id],},large: {label: 'Large',@@ -44,7 +44,7 @@ export const instanceSizeSpecs: Record<cpu: '2-core',priceHourly: 0.1517,priceMonthly: 110,- cloud_providers: [PROVIDERS.AWS.id, PROVIDERS.FLY.id],+ cloud_providers: [PROVIDERS.AWS.id, PROVIDERS.AWS_NEW.id, PROVIDERS.FLY.id],},xlarge: {label: 'XL',@@ -52,7 +52,7 @@ export const instanceSizeSpecs: Record<cpu: '4-core',priceHourly: 0.2877,priceMonthly: 210,- cloud_providers: [PROVIDERS.AWS.id, PROVIDERS.FLY.id],+ cloud_providers: [PROVIDERS.AWS.id, PROVIDERS.AWS_NEW.id, PROVIDERS.FLY.id],},'2xlarge': {label: '2XL',@@ -60,7 +60,7 @@ export const instanceSizeSpecs: Record<cpu: '8-core',priceHourly: 0.562,priceMonthly: 410,- cloud_providers: [PROVIDERS.AWS.id, PROVIDERS.FLY.id],+ cloud_providers: [PROVIDERS.AWS.id, PROVIDERS.AWS_NEW.id, PROVIDERS.FLY.id],},'4xlarge': {label: '4XL',@@ -68,7 +68,7 @@ export const instanceSizeSpecs: Record<cpu: '16-core',priceHourly: 1.32,priceMonthly: 960,- cloud_providers: [PROVIDERS.AWS.id, PROVIDERS.FLY.id],+ cloud_providers: [PROVIDERS.AWS.id, PROVIDERS.AWS_NEW.id, PROVIDERS.FLY.id],},'8xlarge': {label: '8XL',@@ -76,7 +76,7 @@ export const instanceSizeSpecs: Record<cpu: '32-core',priceHourly: 2.562,priceMonthly: 1870,- cloud_providers: [PROVIDERS.AWS.id],+ cloud_providers: [PROVIDERS.AWS.id, PROVIDERS.AWS_NEW.id],},'12xlarge': {label: '12XL',@@ -84,7 +84,7 @@ export const instanceSizeSpecs: Record<cpu: '48-core',priceHourly: 3.836,priceMonthly: 2800,- cloud_providers: [PROVIDERS.AWS.id],+ cloud_providers: [PROVIDERS.AWS.id, PROVIDERS.AWS_NEW.id],},'16xlarge': {label: '16XL',@@ -92,6 +92,6 @@ export const instanceSizeSpecs: Record<cpu: '64-core',priceHourly: 5.12,priceMonthly: 3730,- cloud_providers: [PROVIDERS.AWS.id],+ cloud_providers: [PROVIDERS.AWS.id, PROVIDERS.AWS_NEW.id],},}diff --git a/apps/studio/lib/constants/infrastructure.ts b/apps/studio/lib/constants/infrastructure.tsindex f5dcdb6e88a..553bd77e97d 100644--- a/apps/studio/lib/constants/infrastructure.ts+++ b/apps/studio/lib/constants/infrastructure.ts@@ -39,6 +39,13 @@ export const PROVIDERS = {default_region: AWS_REGIONS_DEFAULT,regions: { ...AWS_REGIONS },},+ AWS_NEW: {+ id: 'AWS_NEW',+ name: 'AWS (Revamped)',+ DEFAULT_SSH_KEY: 'supabase-app-instance',+ default_region: AWS_REGIONS_DEFAULT,+ regions: { ...AWS_REGIONS },+ },} as constexport const PROJECT_STATUS: {diff --git a/packages/shared-data/regions.ts b/packages/shared-data/regions.tsindex f92b7afa5fe..50213795744 100644--- a/packages/shared-data/regions.ts+++ b/packages/shared-data/regions.ts@@ -1,4 +1,4 @@-export type CloudProvider = 'FLY' | 'AWS'+export type CloudProvider = 'FLY' | 'AWS' | 'AWS_NEW'export type Region = typeof AWS_REGIONS | typeof FLY_REGIONSexport const AWS_REGIONS = {