- Use an authenticator app (like Google Authenticator or 1Password) to protect your account. -
-- Name:{' '} - {factor.friendly_name ?? 'No name provided'} -
-
+ No authenticator apps yet. {factor.friendly_name ?? 'No name provided'}
Added on {dayjs(factor.created_at).format(DATETIME_FORMAT)}
Resource config ARN: {resource_access_manager_resource_config_arn}
+ )} + {resource_access_manager_share_arn && ( +Resource share ARN: {resource_access_manager_share_arn}
+ )} +No accounts connected
+No connections yet
- Are you sure you want to delete the AWS account connection for{' '} - {selectedAccount?.aws_account_id}? + This removes the PrivateLink connection for {selectedAccount?.aws_account_id}. + Applications using this private path will lose access.
Database:{' '}
diff --git a/apps/studio/data/aws-accounts/aws-account-create-mutation.ts b/apps/studio/data/aws-accounts/aws-account-create-mutation.ts
index 9bfe6bedf8c4b..060e6f9e56629 100644
--- a/apps/studio/data/aws-accounts/aws-account-create-mutation.ts
+++ b/apps/studio/data/aws-accounts/aws-account-create-mutation.ts
@@ -56,7 +56,7 @@ export const useAWSAccountCreateMutation = ({
},
async onError(data, variables, context) {
if (onError === undefined) {
- toast.error(`Failed to create AWS account: ${data.message}`)
+ toast.error(`Failed to create connection: ${data.message}`)
} else {
onError(data, variables, context)
}
diff --git a/apps/studio/data/aws-accounts/aws-account-delete-mutation.ts b/apps/studio/data/aws-accounts/aws-account-delete-mutation.ts
index 9389d2eca9533..2fc22aa974a0b 100644
--- a/apps/studio/data/aws-accounts/aws-account-delete-mutation.ts
+++ b/apps/studio/data/aws-accounts/aws-account-delete-mutation.ts
@@ -63,7 +63,7 @@ export const useAWSAccountDeleteMutation = ({
},
async onError(data, variables, context) {
if (onError === undefined) {
- toast.error(`Failed to delete AWS account: ${data.message}`)
+ toast.error(`Failed to delete connection: ${data.message}`)
} else {
onError(data, variables, context)
}
diff --git a/apps/studio/data/aws-accounts/aws-accounts-query.ts b/apps/studio/data/aws-accounts/aws-accounts-query.ts
index 19f2208ef0a34..ca378da61fdf9 100644
--- a/apps/studio/data/aws-accounts/aws-accounts-query.ts
+++ b/apps/studio/data/aws-accounts/aws-accounts-query.ts
@@ -11,11 +11,14 @@ type AWSAccountsVariables = {
projectRef?: string
}
-// [Joshen] API types should be updated with these 2 parameters, so remove once verified
+// [Joshen] API types should be updated with these parameters, so remove once verified
export type AWSAccount =
components['schemas']['GetPrivateLinkResponse']['private_link_associations'][number] & {
database_type?: 'PRIMARY' | 'READ_REPLICA'
database_identifier?: string
+ resource_access_manager_resource_config_id?: string
+ resource_access_manager_resource_config_arn?: string
+ resource_access_manager_share_arn?: string
}
async function getAWSAccounts({ projectRef }: AWSAccountsVariables, signal?: AbortSignal) {
diff --git a/apps/studio/pages/account/security.tsx b/apps/studio/pages/account/security.tsx
index db7ec4be0b798..95ceb21923920 100644
--- a/apps/studio/pages/account/security.tsx
+++ b/apps/studio/pages/account/security.tsx
@@ -1,6 +1,3 @@
-import { Lock } from 'lucide-react'
-import { Badge, Card, CardContent, CardHeader } from 'ui'
-import { Admonition } from 'ui-patterns/Admonition'
import { PageContainer } from 'ui-patterns/PageContainer'
import {
PageHeader,
@@ -15,15 +12,12 @@ import AccountLayout from '@/components/layouts/AccountLayout/AccountLayout'
import { AppLayout } from '@/components/layouts/AppLayout/AppLayout'
import { DefaultLayout } from '@/components/layouts/DefaultLayout'
import { UnknownInterface } from '@/components/ui/UnknownInterface'
-import { useMfaListFactorsQuery } from '@/data/profile/mfa-list-factors-query'
import { useIsFeatureEnabled } from '@/hooks/misc/useIsFeatureEnabled'
import type { NextPageWithLayout } from '@/types'
const Security: NextPageWithLayout = () => {
const showSecuritySettings = useIsFeatureEnabled('account:show_security_settings')
- const { data } = useMfaListFactorsQuery({ enabled: showSecuritySettings })
-
if (!showSecuritySettings) {
return