I have Python code to stop EC2 instances in AWS using lambda function from this link. This Python 2.7 code is working fine when I am using with the Lambda function.
The lambda function to stop instances also can be executed from the API endpoint.
Now how can I stop instances by providing an instance id with the API endpoint in browser instead to provide in the Python code?
Can anyone help me on this?