So I created a free-tier Amazon EC2 ubuntu 12.04 instance. I set up a LAMPP stack on it and use it for a couple of testing websites.
Currently, all the data is stored on the server itself, including the website data. I believe this is bad practice.
I've been reading about using an EBS volume for website data and only using the server storage for applications/config etc. When I run df -h
I get this:
Filesystem Size Used Avail Use% Mounted on /dev/xvda1 7.9G 1.8G 5.7G 24% / udev 288M 12K 287M 1% /dev tmpfs 60M 176K 59M 1% /run none 5.0M 0 5.0M 0% /run/lock none 296M 0 296M 0% /run/shm
I read the docs on adding a volume to my EC2 instance and having got to the create EBS volume but I noticed I already have an EBS volume - the one that is the connection to my EC2 instance.
And in my AWS control panel, I have this
My question is should I create a separate EBS volume for website storage or just have everything on the current volume? If I do, will I get billed for going beyond the free tier (I understand the free tier limit is 30GB, but how many volumes?)? If I don't how would I increase the size of the current volume - it is currently only 8GB.
If adding a new volume, what sort of snapshot should I use?