I'm trying to setup an Elastic Beanstalk with mongodb. I got a solution from this link. But it is not working for me. I'm using " 64-bit Amazon Linux 2014.03 v1.0.4.". When I'm trying to install mongodb using the solution of the link, it stops the instance with the following error.
Error: failed to connect to [localhost:27017]
at null.<anonymous> (/var/app/current/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/server.js:546:74)
at EventEmitter.emit (events.js:106:17)
at null.<anonymous> (/var/app/current/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:150:15)
at EventEmitter.emit (events.js:98:17)
at Socket.<anonymous> (/var/app/current/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connection/connection.js:533:10)
at Socket.EventEmitter.emit (events.js:95:17)
at net.js:440:14
at process._tickCallback (node.js:415:13)
I followed the instruction and put the content in aws.config file as told. Please help.
See Question&Answers more detail:os