First of all install chalice (pip install chalice)
To run it just run:
> chalice deployyou'll see something like this:
Creating Rest API
Resources deployed:
- Lambda ARN: arn:aws:lambda:me-south-1:SOMENUMBER:function:appname-dev-func
- Lambda ARN: arn:aws:lambda:me-south-1:SOMENUMBER:function:appname-dev
- Rest API URL: https://VALUE.execute-api.me-south-1.amazonaws.com/api/then just
> curl -X GET https://VALUE.execute-api.me-south-1.amazonaws.com/api/to get response from the lambda