title: Trigger Python script in EC2 from website
body: <p>I have found similar posts that describe a similar problem but they are not adequate or answer my question.</p>
  <p>I have a website (still local for now, but will be hosted on a S3 bucket). The idea is that this website (React) uploads images to an S3 bucket, then a Python script is triggered in a EC2 instance which makes some modifications to the image, then it uploads the result on a S3 bucket and finally it is displayed on the website.</p>
  <p>My current issue is how to actually run the script on EC2. I had thought to have a Lambda function triggered by the S3 which then runs the script using SSH. However, I have read that this is not recommended.</p>
  <p>What do you thing is the best way to implement this?</p>
  <p>Thanks beforehand for your time!</p>