Build your first AWS Lambda function and attach an endpoint using AWS Api-gateway !

import requests
url = "https://ryv7b6l14f.execute-api.us-east-2.amazonaws.com/default/myFirstLambdaFunction"
r = requests.post(url,data={'key1':'value1', 'key2':"value2", 'key3':'value1'})
print(r)
print(r.json())

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store