I have an EC2 instance and a Mongo DB.
Say my DB credentials were as follow:
DB_USERNAME: 'Max',
DB_PASSWORD: 'secretPass',
//DB_HOST: "20.133.122.121",
DB_HOST: "155.5.5.0",
DB_PORT: 27017,
DB_NAME: 'maxowner'
The Custom TCP inbound rule on my EC2 instance is set to my IP address ('My IP') with Port 27017.
I can successfully SSH to my instance using the Mac Terminal.
However, I am unable to access my Mongo DB due to the following error:
I have then tried to connect to the Database using the Studio3T Client and here I am getting the following authentication error:
The Database is all set up properly and working, as I can see through a custom cPanel and also the app is running perfectly fine.
What could be the issue here? I have tried everything..