Python script to put data in S3 storage and kill instance when simulations finish