Google Cloud Functions is a serverless execution environment for building and connecting cloud
services.Below are the steps for creating Cloud Functions in GCP.
Login to Google Cloud Console and navigate to "Cloud Functions" in COMPUTE section.
Click on "CREATE FUNCTION".
Provide Function details as listed below.
Name: first-cloud-function
Memory allocated: 256 MB
Trigger: HTTP
Authentication: Allow unauthenticated invocations
Source code: Inline editor
Runtime: Python 3.7
Write below code in main.py
Provide name of Function to execute.
gcptutorials_function
Click "CREATE"
Click on first-cloud-function
In Trigger tab click on the URL
In browser you should be able to see function response