Skip to content

Commit

Permalink
Discover RDS Flow: fix mfa required check (#48880)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
marcoandredinis authored Nov 13, 2024
1 parent e17b269 commit 197ba06
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

Expand Down

0 comments on commit 197ba06

Please sign in to comment.