I am getting this error on my console when i try to launch the basic TypeORM project on node.js
Error: connect ETIMEDOUT 13.112.12.202:5432
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16) {
errno: -60,
code: 'ETIMEDOUT',
syscall: 'connect',
address: '13.112.12.202',
port: 5432
}
My data source file has the following configurations.
DataSource({
type: "postgres",
host: "sugar-index-database-1.cxpnplofhv5c.ap-northeast-1.rds.amazonaws.com",
port: 5432,
username: "postgres",
password: "*****",
database: "sugar-index-database-1",
synchronize: true,
logging: false,
entities: [User],
migrations: [],
subscribers: [],
})
Also, my instance is publicly accessible. And I've made inbound and outbound security rules to enable access.