feat(backend-defaults): add AWS RDS IAM authentication support for PostgreSQL

Signed-off-by: Roland Fuszenecker <roland.fuszenecker@seon.io>
This commit is contained in:
Roland Fuszenecker
2026-03-30 20:34:14 +02:00
parent c193ef1f9f
commit c69e03ce3d
6 changed files with 617 additions and 0 deletions
+29
View File
@@ -632,6 +632,35 @@ export interface Config {
*/
ipAddressType?: 'PUBLIC' | 'PRIVATE' | 'PSC';
}
| {
/**
* The specific config for AWS RDS connections with IAM authentication.
* Requires the `@aws-sdk/rds-signer` package to be installed.
* The IAM role or user must have the `rds-db:connect` permission for the database user.
*/
type: 'rds';
/**
* The hostname of the RDS instance.
*/
host: string;
/**
* The port number the database is listening on. Defaults to 5432.
*/
port?: number;
/**
* The database user to authenticate as. This user must have the `rds_iam` role granted.
*/
user: string;
/**
* The AWS region where the RDS instance is located.
* Falls back to the AWS_REGION or AWS_DEFAULT_REGION environment variables if not set.
*/
region?: string;
/**
* Other connection settings
*/
[key: string]: unknown;
}
| {
/**
* The rest config for default, regular connections