File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -99,17 +99,16 @@ const { RDS } = require('aws-sdk')
99
99
const signerOptions = {
100
100
credentials: {
101
101
accessKeyId: ' YOUR-ACCESS-KEY' ,
102
- secretAccessKey: ' YOUR-SECRET-ACCESS-KEY'
102
+ secretAccessKey: ' YOUR-SECRET-ACCESS-KEY' ,
103
103
},
104
104
region: ' us-east-1' ,
105
105
hostname: ' example.aslfdewrlk.us-east-1.rds.amazonaws.com' ,
106
106
port: 5432 ,
107
- username: ' api-user'
107
+ username: ' api-user' ,
108
108
}
109
109
110
110
const signer = new RDS.Signer ()
111
111
112
- /** @returns {string} */
113
112
const getPassword = () => signer .getAuthToken (signerOptions)
114
113
115
114
const pool = new Pool ({
@@ -118,7 +117,7 @@ const pool = new Pool({
118
117
user: signerOptions .username ,
119
118
database: ' my-db' ,
120
119
password: getPassword,
121
- });
120
+ })
122
121
```
123
122
124
123
### Programmatic Connection to Sockets
You can’t perform that action at this time.
0 commit comments