A user data script for running an app on EC2 instances