title: Connecting to Aurora MySQL Serverless with Node
body: <p>I'm trying to connect to my Aurora Serverless MySQL DB cluster using the mysql module, but my connection always times out.</p>
  
  <pre><code>const mysql = require('mysql');
  
  //create connection
  const db = mysql.createConnection({
  
      host     : 'database endpoint',
      user     : 'root',
      password : 'pass',
      database : 'testdb'
  
  });
  
  
  //connect
  db.connect((err) =&gt; {
      if(err){
          throw err;
          console.log('connection failed');
      }
      console.log('mysql connected...');
  })
  db.end();
  </code></pre>
  
  <p>My cluster doesn't have a public IP address so I'm trying to use the endpoint.  I've successfully connected to the db using Cloud9, but I can't connect using node.  I must be missing something.</p>