Stopping and Starting EC2 instance wipes data


Hello all,

I recently launched an ec2 instance (m5a-large) and created an additional ebs volume for it at launch based on a snapshot. When I ssh to the instance, I can find all of the data on my home directory. When I stop the instance and start it again, I can no longer find any of my files in my home directory.

I'm not sure why stopping my instance is wiping my data. I would like my files to be present when I stop and start the instance.

asked 5 years ago284 views
1 Answer

Your home directory is probably in the ephemeral storage and not on the new ebs volume.
If you would like to keep it, you would need to move your home directory to the new ebs volume
hope this helps,

answered 5 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions