blog icon indicating copy to clipboard operation
blog copied to clipboard

python rest api serverless tutorial refers to wsgi.handler which appears to be outdated

Open rene00 opened this issue 5 years ago • 0 comments

I'm following https://serverless.com/blog/flask-python-rest-api-serverless-lambda-dynamodb/.

When I run sls deploy I receive the following warning:

$ sls deploy
[...]
Serverless: Warning: Please change "wsgi.handler" to "wsgi_handler.handler" in serverless.yml                                                                             
Serverless: Warning: Using "wsgi.handler" still works but has been deprecated and will be removed                                                                         
Serverless: Warning: More information at https://github.com/logandk/serverless-wsgi/issues/84                                                                             
Serverless: Using Python specified in "runtime": python3.7
[...]

I'm using the python3.7 runtime. I'm unsure if this warning is present with python3.6.

My serverless.yml file.

rene00 avatar Mar 15 '19 09:03 rene00