Amazon provides instance store for EC2 instances. If you use your own AMI, these are not formatted or mounted automatically for you. You need to manually format and mount them.
The available devices are listed here and vary based on type of instance. For example an m1.small will have different available instance store devices than c1.xlarge.
I'm looking for a script which
- Detects what the instance type is. Perhaps by using
curl -s http://169.254.169.254/latest/meta-data/instance-type
- Formats and mounts all devices which are available for that instance type but have not yet been formatted/mounted.
Possible? Done it? Have it?
So, here is what I built for this.