title: TimeoutError when connecting aws postgres instance thru nodeJS
body: <p>Database connects successfully when connecting via</p>
  <ol>
  <li>pgadmin</li>
  <li>psql</li>
  </ol>
  <p>But causing <em>TimeoutError: query timed out</em> while connecting it using sequelize/pg from nodeJS</p>
  <p>sequelize approach followed is as shown below,
  <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const Sequelize = require('sequelize');
  const sequelize = new Sequelize(process.env.DB_NAME, process.env.DB_USER, process.env.DB_PWD, {
    host: process.env.DB_HOST,
    dialect: 'postgres',
    logging: process.env.DB_SHOW_LOGS === 'true',
    port: process.env.DB_PORT,
    pool: {
      max: 5,
      min: 0,
      acquire: 30000,
      idle: 10000
    },
  });</code></pre>
  </div>
  </div>
  </p>
  <p>Any insight ?
  Thanks in advance!</p>