mercredi 5 février 2020

How to automatically start, execute and stop EC2?

I want to test my Python library in GPU machine once a day. I decided to use AWS EC2 for testing. However, the fee of gpu machine is very high, so I want to stop the instance after the test ends. Thus, I want to do the following once a day automatically

  1. Start EC2 instance (which is setup manually)
  2. Execute command (test -> push logs to S3)
  3. Stop EC2 (not remove)

How to do this?

Aucun commentaire:

Enregistrer un commentaire