I'm deploying an application with elastic beanstalk, which has its own deploy tool. This tool takes the latest commit, creates a zip from it, and deploys that to the cloud. To verify the deploy on each server, I'd like it to be able to report its own SHA once it has been deployed. There are actually a few valid approaches:
- Add SHA to current commit, with a git hook.
- Alter the EB deploy scripts to include a specific uncommitted file, which can be easily created in a deploy script or git hook.
- Make elastic beanstalk current application version label available to the instance.