Learn how to set up and deploy a sample Hello World application to Cloud Run and view the status of your live service's resources.
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
roles/resourcemanager.projectCreator), which contains the
resourcemanager.projects.create permission. Learn how to grant
roles.
Verify that billing is enabled for your Google Cloud project.
Python (Flask): Hello World creates a starter
Python (Flask) Hello World app.To deploy your application to Cloud Run:
Ctrl/Cmd+Shift+P).
This brings up the Cloud Run Deploy UI.To edit your application:
app.py file that implements the service
behavior.You can also view logs from your deployed application with the Log Viewer that comes with Cloud Code.
To view logs:
To avoid incurring charges to your Google Cloud account for the resources used on this page, follow these steps:
If you're using a pre-existing project and want to delete the resources you created for this quickstart:
Container image: While Cloud Run doesn't charge when a service isn't in use, you might still be charged for storing the container image in Artifact Registry. To delete your image, open the Artifact Registry page, select the repository that contains your image, select your image, click Delete, and then click Delete.Open the Artifact Registry page
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-11-10 UTC.