aamirl
aamirl

Reputation: 1550

AWS + Elastic Beanstalk + MongoDB

I am trying to setup my microservices architecture using AWS Elastic Beanstalk and Docker. That is very easy to do, but when I launch the environment, it launches into the default VPC, thus giving public IP's to the instances. Right now, that's not too much of a concern.

What I am having a problem with is how to set up the MongoDB architecture. I have read: recommended way to install mongodb on elastic beanstalk but still remain unsure on how to set this up.

So far I have tried:

I am trying to launch all this in us-west-1. It's been two days now and I have no idea where to go or what the right way is to tackle this issue. I want the databases to be private (no public access) with a NAT gateway, so ideally my third method seems what I want, but I cannot seem to add the new EB instances/load balancer into the newly-created MongoDB VPC. This is the setup I'm going for: http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/images/default-vpc-diagram.png but I am trying to use the templates to do this.

What am I doing wrong here? Any help would be much, much appreciated. I have read up a lot about this but still am not sure where to go from here.

Thanks a lot in advance!

Upvotes: 3

Views: 1261

Answers (1)

Ally Haire
Ally Haire

Reputation: 2548

Im having this same issue. There seems to be a complete lack of documentation on how to connect an Elastic Beanstalk node.js / express app with the aws Quickstart mongodb cluster set up documentation. When I run the aws mongo quickstart though it launches a NAT which is public and also a private primary node... maybe this is part of your issue?

Upvotes: 1

Related Questions