Deploying applications on EC2 instances