From the course: Cloud Native Projects: GCP Serverless

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Deploying and running a Python Cloud Function

Deploying and running a Python Cloud Function - Google Cloud Platform Tutorial

From the course: Cloud Native Projects: GCP Serverless

Deploying and running a Python Cloud Function

- [Instructor] So now that we've written our code in the browser, it's time for us to deploy it, run it, and then test it using Cloud Functions for Python. So back into our browser, we have all of our code listed here that we created in the previous video. So now, I'm going to go ahead and hit this DEPLOY button. Now, what this will do is it will actually package the code, deploy it to the Cloud Platform itself as a serverless function, and then prepare it to be ready to use. Now, this can take a while, so let's be patient and let it run. Okay, we can see from the green check mark that our code has deployed and it is available to be run. So let's select the Test function option from the hamburger menu. And in here, we're presented with an HTTP payload to post against our function. So without any ado, let's just click the test function. You'll see if we scroll down here a little bit that we get a hello world example, and…

Contents