Set storage location of MongoDB installed on AWS EC2 Instance to EBS storage And How do I recover It after instance is stopped terminated

0 votes

I am new to AWS. I have created and Instance and installed MongoDB on It. But I learned from EC2 docs that the data stored on EC2 machines are destroyed once they stop or are terminated. So I have to use EBS for the data storage.

On the 4th step of creating EC2-Instance, I selected the volume enter image description here

But I don't know how to use it. Is it automatically used by EC2-Instance to store the data in it or do we have to manually do it? I know that for changing the database storage we have to change the file named mongod.conf and modify the dbpath there but I don't know what path to give there. and after that also if I destroyed that instance when I will get the EBS storage back. Thanks in advance for the help.

Apr 21, 2022 in AWS by Soham
• 9,710 points
493 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In AWS

0 votes
0 answers
+1 vote
2 answers

How do I run python script on aws EC2 instance(ubuntu)?

I believe that you are using the ...READ MORE

answered Apr 17, 2018 in AWS by Cloud gunner
• 4,670 points
10,366 views
0 votes
0 answers
0 votes
1 answer

Backup solutions for AWS EC2 instances

I've been using Skeddly for several months now to ...READ MORE

answered Sep 12, 2018 in AWS by Priyaj
• 58,020 points
684 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP