how to see if user data has run aws ec2 code example Example: # /bin/bash for launching ec2 #!/bin/bash yum update -y service httpd start chkconfig httpd on