@@50kT sr but i can find connection string but cannot make a connection with it. my ec2 cannot resolve that domain. but if i try with shard string, it worked find. do you know why ? Thanks
Don't forget to make sure your MongoDB Atlas region matches your Beanstalk region. That was what was causing errors for me for like a week and I thinking it was the peering connection and route tables having something wrong. I rebuilt the environments probably 5-6 times lol. Turns out I needed to go to "Edit Configuration" in my MongoDB Cluster, and change my region to match my AWS EBS region.
I thought Peering can be cross region now, or am I wrong..? aws.amazon.com/about-aws/whats-new/2017/11/announcing-support-for-inter-region-vpc-peering/
Hmm this isn't me. It was from MongoDB themselves but its buried somewhere and hard to find and I used to need to refer to it when setting up my DBs. I stopped using MongoDB now though.
Hey I'm also working on deploying a Node application on elastic beanstalk but am stuck on the database part. I was going to use mongodb, but from what I understand, to use it in conjunction with elastic beanstalk I'll have to upgrade my atlas plan? Am i correct?
Yea i think there is a minimum tier for setting up on elastic beanstalk. Also you need to match the same region of your atlas cluster and the elastic beanstalk environment
Hi @50kT I am tried last 3 days to connect mongodb atlas and aws ec2 but i am getting error url. in this video i am understand little bit. i am new to this domain currently i am developed simple node express and mongodb atlas project. now i want deploy to aws but i m struggle in that. i deployed node and run in console its worked but not connect in atlas... can u guide its very helpful for my carrier...
You might need to white list your ip address if you're local build can't connect. If your aws server cannot connect make sure the region selected matches (is the same) on both aws and Mongodb atlas. So if aws is on northern California region, mongodb atlas should be northern California as well.
hi you have shown for one shard. how to find connection string?
Click the Connect button, then click "Connect with application", and there you can find connection strings
@@50kT sr but i can find connection string but cannot make a connection with it. my ec2 cannot resolve that domain. but if i try with shard string, it worked find. do you know why ?
Thanks
Don't forget to make sure your MongoDB Atlas region matches your Beanstalk region. That was what was causing errors for me for like a week and I thinking it was the peering connection and route tables having something wrong. I rebuilt the environments probably 5-6 times lol. Turns out I needed to go to "Edit Configuration" in my MongoDB Cluster, and change my region to match my AWS EBS region.
I thought Peering can be cross region now, or am I wrong..? aws.amazon.com/about-aws/whats-new/2017/11/announcing-support-for-inter-region-vpc-peering/
@@93kazem I think on the MongoDb Atlas side it's not available
Thanks for sharing
Would it be possible that you made an updated version of this tutorial
Hmm this isn't me. It was from MongoDB themselves but its buried somewhere and hard to find and I used to need to refer to it when setting up my DBs. I stopped using MongoDB now though.
Hey I'm also working on deploying a Node application on elastic beanstalk but am stuck on the database part. I was going to use mongodb, but from what I understand, to use it in conjunction with elastic beanstalk I'll have to upgrade my atlas plan? Am i correct?
Yea i think there is a minimum tier for setting up on elastic beanstalk. Also you need to match the same region of your atlas cluster and the elastic beanstalk environment
There can be a chance of broken VPC peering, how to mitigate the impact of broken vpc peering ?
Thanks for sharing!!..
Saver!
Hi @50kT I am tried last 3 days to connect mongodb atlas and aws ec2 but i am getting error url. in this video i am understand little bit. i am new to this domain currently i am developed simple node express and mongodb atlas project. now i want deploy to aws but i m struggle in that. i deployed node and run in console its worked but not connect in atlas... can u guide its very helpful for my carrier...
You might need to white list your ip address if you're local build can't connect. If your aws server cannot connect make sure the region selected matches (is the same) on both aws and Mongodb atlas. So if aws is on northern California region, mongodb atlas should be northern California as well.