python - Changing default runtime serverless v1.0 -


trying use serverless v1.0 alpha, cannot set runtime variable. tried setting in serverless.yaml as:

service: want_python provider: aws functions:     hello:         runtime: python         handler: handler.hello 

but shows runtime of nodejs. tried python2.7 , did not work well. can work no problem in v0.5 changing runtime in s-function.json, figured same...folder files such:

$ ls -lha handler.py serverless.env.yaml serverless.yaml 

handler.py , serverless.env.yaml boilerplate.

thanks!

starting serverless v1.0-beta.1 you're able use python.

you can create python service way:

sls create -t aws-python 

then you'll serverless.yml have provider , runtime configured this:

provider:    name: aws   runtime: python2.7 

Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

android - CoordinatorLayout, FAB and container layout conflict -