git clone https://github.com/hiepnguyendt/Auto-fetching-instance-credentialsand-connecting.git

nano .env


npm start

Now, you are connecting to RDS PostgreSQL by Auto-fetching instance credentials from AWS Secret Manager.
If you got error when you run code. You should check AWS_regin in the AWS CLI