AWS IAM Authentication uses AWS IAM permissioning to generate a temporary (15 minute) password when connecting to the database.
Ideally, there would be a way to have a credentials provider that generated the credentials for each physical connection.
const pool = new Pool({
user: 'dbuser',
host: 'database.server.com',
database: 'mydb',
port: 3211,
async dynamic(config) {
const password = ''; // retrieve and cache password
return { ...config, password };
}
});
AWS IAM Authentication uses AWS IAM permissioning to generate a temporary (15 minute) password when connecting to the database.
Ideally, there would be a way to have a credentials provider that generated the credentials for each physical connection.