From 197ba0617541bcfaa61ec5b338c8e74f3bedfa32 Mon Sep 17 00:00:00 2001 From: Marco Dinis Date: Wed, 13 Nov 2024 10:49:29 +0000 Subject: [PATCH] Discover RDS Flow: fix mfa required check (#48880) Aurora based RDS instances (mysql or postgres) were not being correctly parsed and would cause the isMFARequired check to fail because it was lacking the protocol. This PR fixes it. --- web/packages/teleport/src/Discover/SelectResource/databases.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/packages/teleport/src/Discover/SelectResource/databases.tsx b/web/packages/teleport/src/Discover/SelectResource/databases.tsx index beee77726ecd6..4ef154e0225d2 100644 --- a/web/packages/teleport/src/Discover/SelectResource/databases.tsx +++ b/web/packages/teleport/src/Discover/SelectResource/databases.tsx @@ -462,8 +462,10 @@ export const DATABASES: ResourceSpec[] = [ export function getDatabaseProtocol(engine: DatabaseEngine): DbProtocol { switch (engine) { case DatabaseEngine.Postgres: + case DatabaseEngine.AuroraPostgres: return 'postgres'; case DatabaseEngine.MySql: + case DatabaseEngine.AuroraMysql: return 'mysql'; }