I've started to fiddle around EC2, and I can't seem to understand the "AWS way" of setting up a server.
I'm using Ubuntu server 10.10 64 bit, from an official AMI by Canonical. There is an EBD drive connected to the server.
I need a standard LAMP configuration.
What I currently did (after installing the lamp stack) in order to preserve the concept of "instances are not saved when shut down" is:
- Format the additional EBS drive as XFS
- Move /var/lib/mysql, /var/log/mysql to the XFS EBS drive
- Created fstab entries for mounting these directories from the EBS drive to /var/lib/mysql and /var/log/mysql respectively
- Placed the code for the site (the Virtual Host directory) on the EBS drive
- Placed video files that the site will show in the EBS drive as well
Are all of these actions - correct (or suggested) when working with EC2 ?
Have I missed some other actions I should have taken ?
Thank you.