You could use user_data to get cloud-init to run whatever you need to deploy your application. Here is an example.