-
-
Notifications
You must be signed in to change notification settings - Fork 639
Open
Description
Hi,
I was wondering if you could provide some guidance. I'm using TypeORM and I'm trying to connect to an RDS Aurora MySQL instance using IAM authentication. I'm not sure if I have the correct syntax in the authPlugins object. I'm getting the following error:
Access denied for user 'xxxxxxxxxx'@'yyyyyyyyyyy' (using password: YES)
Aurora MySQL engine is 5.7.mysql_aurora.2.04.5
const signer = new AWS.RDS.Signer({
region,
username,
hostname,
port: 3306
});
createConnection({
host,
username,
database,
entities: [..., ....],
ssl: 'Amazon RDS',
extra: {
authPlugins: {
mysql_clear_password: () => () =>
signer.getAuthToken({
username,
region,
hostname,
port: 3306
})
}
}
});
AleF83, BlackTafita, cliedeman and kangwooc
Metadata
Metadata
Assignees
Labels
No labels