I’m coding a chess engine for a project at school and i need more computing power than my pc can offer. So i turned to AWS and especially EC2. I want to test different algorithms.
I know how to start the instance and how to begin the computing on the instance but as soon as the computing is finished, I would like to send automatically the data files on s3 (i know the command but not how to automatically execute it) and shutdown the instance to avoid paying for nothing.
Thank you for your help,
As pointed out by samtoddler on Jan 11, 2021 : a call to os.shutdown() after the computing provided what I wanted !