scripts/gcp/walkthroughtutorial.md
Duration: 45 minutes Author: Robert Wilkins III
In this tutorial, you will learn how to deploy Langflow on Google Cloud Platform (GCP) using Google Cloud Shell.
This tutorial assumes you have a GCP account and basic knowledge of Google Cloud Shell. If you're not familiar with Cloud Shell, you can review the Cloud Shell documentation.
Before you start, make sure you have the following prerequisites:
[Select your GCP project]<walkthrough-project-setup billing="true" apis="compute.googleapis.com,container.googleapis.com"> </walkthrough-project-setup>
In the next step, you'll configure the GCP environment and deploy Langflow.
Run the deploy_langflow_gcp.sh script to configure the GCP environment and deploy Langflow:
gcloud config set project <walkthrough-project-id/>
bash ./deploy_langflow_gcp.sh
The script will:
<walkthrough-pin-section-icon></walkthrough-pin-section-icon>
The process may take approximately 30 minutes to complete. Rest assured that progress is being made, and you'll be able to proceed once the process is finished.
In the next step, you'll learn how to connect to the Langflow VM.
To connect to your new Langflow VM, follow these steps:
or 3. Run the following command to display the URL for your Langflow environment:
export LANGFLOW_IP=$(gcloud compute instances list --filter="NAME=langflow-dev" --format="value(EXTERNAL_IP)")
echo http://$LANGFLOW_IP:7860
Congratulations! You have successfully deployed Langflow on Google Cloud Platform.
<walkthrough-conclusion-trophy></walkthrough-conclusion-trophy>
If you want to remove the resources created during this tutorial, you can use the following commands:
gcloud compute instances delete langflow-dev --zone us-central1-a --quiet
The following network settings and services are used during this walkthrough. If you plan to continue using the project after the walkthrough, you may keep these configurations in place.
However, if you decide to remove them after completing the walkthrough, you can use the following gcloud commands:
<walkthrough-pin-section-icon></walkthrough-pin-section-icon>
These commands will delete the firewall rules and network configurations created during the walkthrough. Make sure to run them only if you no longer need these settings.
gcloud compute firewall-rules delete allow-tcp-7860 --quiet
gcloud compute firewall-rules delete allow-iap --quiet
gcloud compute networks subnets delete default --region us-central1 --quiet
gcloud compute networks delete default --quiet