mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
Update connecting.mdx (#3266)
Changes tested myself and inspired by documention on aws rds signer https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-rds-signer/
This commit is contained in:
parent
6be857e9d3
commit
e30b41d481
@ -101,9 +101,9 @@ const signerOptions = {
|
||||
username: 'api-user',
|
||||
}
|
||||
|
||||
const signer = new RDS.Signer()
|
||||
const signer = new RDS.Signer(signerOptions)
|
||||
|
||||
const getPassword = () => signer.getAuthToken(signerOptions)
|
||||
const getPassword = () => signer.getAuthToken()
|
||||
|
||||
const pool = new Pool({
|
||||
user: signerOptions.username,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user