Right now I have a setup with a load balancer that starts new instances of a server (debian) if needed be on the Amazon EC2 cloud. On this setup I have a script that needs to be running on only one of these servers.
Having multiple snapshots could very easily end up being a pain when it comes to updating the system, so my question is how would I go about making a startup script that only runs on the first of the servers?
Is it possible to pull information from Amazon from the command line that could be used to determine this?