title: How to run a shell script on all amazon ec2 instances that are part of a autoscaling group?
body: <p>Can anyone please tell me how to run a shell script on all the ec2 instances that are part of an auto scaling group?</p>
  
  <p>The scenario is that I have a script that I want to run on many ec2 instances that are turned on automatically as part of auto scaling group. The native approach is to SSH to each instance and run the script. I am looking for a way by which it can run automatically on all the instances when I run it on one of the ec2 instance or any better way of doing this? </p>
  
  <p>Thanks in advance.</p>