How can i re run user data on aws ec2 from the console?

Viewed 4644
2 Answers

Did this using an SSH session. Took a copy of the user data as a script and reran it from the CL.

curl http://instance-data/latest/user-data > user-data.sh
chmod u+x user-data.sh
sudo ./user-data.sh

Just be sure that when you rerun the user-data.sh script that you edit out any commands you might not want to rerun.

Related