Your AWS DB is probably not localhost? Also, cloud dbs tend to have additional security measuers, e.g. SSL using certificates. I suggest trying to find the relevant DB URL for the service you use.
š 1
o
Oluwasetemi Ojo
08/03/2021, 11:38 AM
I created a EC2 instance and setup mongodb there and have a nodejs app running in the instance.
Oluwasetemi Ojo
08/03/2021, 11:39 AM
The DB url is working fine because I can read data but not create