Is there a way to distinguish between sets of EC2 instances?
My use case is that I have a bunch of web tier machines and a bunch of search tier machines; currently the only way to track what each instance is doing is in a roll-your-own asset directory, like LDAP or a database.
Ideally, I'd like to be able to determine the role of a machine from the metadata available from the AWS APIs.
Currently, the only approach I've come up with is to have different machine roles in different security groups (even if it's not strictly required). Is there a better way?