Currently I have 4 EC2 instances in amazon cloud behind a load balancer and this number will grow up to 20-30. I am looking for the best way to manage source code on all of these instances. There is a http server + php running on all instances.
What I need is a way to update the source code on all of the instances simultaneously. After some research I think I've found a solution - create a NFS server and export the directory with source code to all instances. Every instance will mount this exported directory and use it as document root for apache http server.
Is this approach correct or do you suggest anything else? Is NFS capable of sharing the source code to all EC2 nodes simultaneously?