This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var AWS = require('aws-sdk'); | |
AWS.config.update({ region: 'your-region-ie:eu-central-1' }); | |
var mysql = require('mysql'); | |
// Better to use environment variables, but for the example we'll leave it like this | |
var dbClusterIdentifier = 'your-cluster'; | |
var clusterEndpoint = 'your-cluster.cluster-identifier.your-region.rds.amazonaws.com'; | |
var user = 'username'; | |
var password = 'password'; |