I am trying to send inputs to my python script running on EC2 instance using the AWS API gateway. The workflow is as follows:
Users send an API request to AWS API gateway with parameters. The AWS API gateway then triggers the python script with the arguments passed in the API call.
However, I am unable to find any way in which the AWS API gateway can trigger a python script or pass an argument into an always running python script.
Any guidance on best practices to achieve this