Question

I have hosted a wordpress blog on AWS using EC2 instance t1.micro (Ubuntu).

I am not an expert on linux administration. However, after going through few tutorials, I was able to manage to have wordpress successfully running.

I noticed a warning on AWS console that "In case if your EC2 instance terminates, you will lose your data including wordpress files and data stored by MySql service."

Does that mean I should use S3 service for storing data to avoid any accidental data loss? Or my data will remain safe in an EBS volume even if my EC2 instance terminates?

Was it helpful?

Solution

By default, the root volume of an EC2 instance will be deleted if the instance is terminated. It can only be terminated automatically if its running as a spot instance. Otherwise it can only be terminated if you do it.

Now with that in mind, EBS volumes are not failure proof. They have a small chance of failing. To recover from this, you should either create regular snapshots of your EBS volume, or back up the contents of your instance to s3 or other storage service.

OTHER TIPS

You can setup snspshot lifecycle policy to create scheduled volume snapshots.

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-lifecycle.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top