Stay organized with collections Save and categorize content based on your preferences.
Deploy a Cloud Run service with Cloud Code for VS CodeThis page shows you how to get started quickly with Cloud Code.
You'll set up a Hello World service that runs on Cloud Run using a sample application, deploy your service to Cloud Run, and view the status of your live service's resources.
Before you beginIn the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Note: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.Verify that billing is enabled for your Google Cloud project.
Enable the Cloud Run API.
In the Cloud Code status bar, click the active project name.
In the Quick Pick menu that appears, select New Application.
Choose Cloud Run application as your preferred application type.
From the list of sample applications (Node.js, Python with Flask and Django frameworks, Java, Go), choose a Hello World service.
For example, choosing Node.js: Hello World
creates a starter Node.js Hello World service.
Confirm your service location on disk (or modify it, if necessary) and click Create New Application.
A preview of the README file for your selected service will open in VS Code.
To deploy your service to Cloud Run, follow these steps:
Open the Command Palette (press Ctrl
/Cmd
+Shift
+P
or click View > Command Palette) and then run the Deploy to Cloud Run command.
In the Deploy to Cloud Run pane, set your Google Cloud project.
Accept the remaining default settings and then click Deploy.
Cloud Code builds your image, pushes it to the registry, and deploys your service to Cloud Run.
To view your running service, open the URL displayed at the top of the Deploy to Cloud Run dialog.
You can also view logs from your deployed service with the Log Viewer that comes with Cloud Code.
To view logs, follow these steps:
You can view the status of your Cloud Run services using the Cloud Run service browser:
To delete your project:
Go to the Projects page in the Google Cloud console:
Select the project you created for this quickstart and then click Delete.
Type the project ID to confirm and then click Shut down.
This shuts down the project and schedules it for deletion.
If you're using a pre-existing project and would like to delete resources you created for this quickstart:
Container image: While Cloud Run doesn't charge when the service isn't in use, you might be charged for storing the container image in Artifact Registry. For steps to delete your image, see Deleting images.
Cloud Run service: To delete a Cloud Run service, navigate to Cloud Run in the Google Cloud console using the navigation menu. Select the service you want to delete and then click Delete.
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 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["This guide provides instructions on how to quickly deploy a Hello World service to Cloud Run using Cloud Code for VS Code."],["You'll learn how to create a new Cloud Run application from a selection of sample services and then deploy it using the \"Deploy to Cloud Run\" command."],["The guide explains how to use Cloud Code's Log Viewer to view logs from your deployed service, as well as how to view the status of your Cloud Run service using the Cloud Run service browser."],["Instructions are given on how to clean up resources, whether deleting the entire project or only the container image and Cloud Run service, after the quickstart."],["Finally, it gives pointers to further resources such as language-specific debugging, relevant settings, and running a Kubernetes application with Cloud Code."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4