when do user data scripts run code example Example: # /bin/bash for launching ec2 Click to copy#!/bin/bash yum update -y service httpd start chkconfig httpd on