Serverless Framework Example for Google Cloud Function with Python

google

#1

Hello,

is it possible to use python with the serverless framework in connection to the Google Cloud Functions. I could only find an example with Node.js. I even tried a little bit around but it doesn’t work with python.

Thanks for your help.

Cheers
Crashy


#2

Any update on this topic?
I am not sure, if the Python Runtime for Google Cloud Functions is already supported by the serverless framework?
Documentation only mentions Node.js.
But sometimes docs are behind the implementation…


#3

Hey @Franky

yes this is possible. However the docs seemed to be outdated and only talk about the NodeJS runtime. SLS at the moment (AFAIR) also lacks a python runtime template for GCP cloud functions.

You can check this GH issue which shows you an example serverless.yml.

Based on this I was able to get everything working.