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
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.