Updating user-data for EC2 instances under an autoscaling group
<p>I want to modify / update the user-data for an EC2 instance. This is attached to an autoscaling cluster. </p>

<hr>

<p>I understand that the instance needs to be <code>stopped</code> before the <code>user-data</code> can be updated. The problem I am facing is, when I stop the instance to update <code>user-data</code> autoscaler automatically brings a new instance back up. </p>

<hr>

<p>Is there a way to update <code>user-data</code> without removing the EC2 instance from the autoscaling group?</p>