improve grammer and remove nat
This commit is contained in:
parent
207f1b0399
commit
de5ed466d7
4 changed files with 4 additions and 30 deletions
|
|
@ -30,11 +30,12 @@ Next, run:
|
|||
|
||||
### Deploy Langflow on Google Cloud Platform
|
||||
|
||||
Follow our step-by-step guide to deploy Langflow on Google Cloud Platform (GCP) using Google Cloud Shell. The guide is available in the [Langflow in Google Cloud Platform](GCP_DEPLOYMENT.md) document.
|
||||
Follow our step-by-step guide to deploy Langflow on Google Cloud Platform (GCP) using Google Cloud Shell. The guide is available in the [**Langflow in Google Cloud Platform**](GCP_DEPLOYMENT.md) document.
|
||||
|
||||
Alternatively, click the "Open in Cloud Shell" button below to launch Google Cloud Shell, clone the Langflow repository, and start an interactive tutorial that will guide you through the process of setting up the necessary resources and deploying Langflow on your GCP project.
|
||||
Alternatively, click the **"Open in Cloud Shell"** button below to launch Google Cloud Shell, clone the Langflow repository, and start an **interactive tutorial** that will guide you through the process of setting up the necessary resources and deploying Langflow on your GCP project.
|
||||
|
||||
[](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/genome21/langflow&working_dir=scripts&shellonly=true&tutorial=walkthroughtutorial_spot.md)
|
||||
|
||||
[](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/genome21/langflow&working_dir=scripts&shellonly=true&tutorial=GCP_SETUP_TUTORIAL.md)
|
||||
|
||||
## 🎨 Creating Flows
|
||||
|
||||
|
|
|
|||
|
|
@ -38,17 +38,6 @@ if [[ -z "$firewall_iap_exists" ]]; then
|
|||
gcloud compute firewall-rules create allow-iap --network $VPC_NAME --allow tcp:80,tcp:443 --source-ranges 35.235.240.0/20 --direction INGRESS
|
||||
fi
|
||||
|
||||
# Create the Cloud Router and NAT Gateway
|
||||
cloud_router_exists=$(gcloud compute routers list --filter="name=$CLOUD_ROUTER_NAME" --format="value(name)")
|
||||
if [[ -z "$cloud_router_exists" ]]; then
|
||||
gcloud compute routers create $CLOUD_ROUTER_NAME --network $VPC_NAME --region $REGION
|
||||
fi
|
||||
|
||||
nat_exists=$(gcloud compute routers list --filter="name=$CLOUD_ROUTER_NAME" --format="value(nats.name)")
|
||||
if [[ -z "$nat_exists" ]]; then
|
||||
gcloud compute routers nats create $NAT_GATEWAY_NAME --router $CLOUD_ROUTER_NAME --auto-allocate-nat-external-ips --nat-all-subnet-ip-ranges --enable-logging --region $REGION
|
||||
fi
|
||||
|
||||
# Define the startup script as a multiline Bash here-doc
|
||||
STARTUP_SCRIPT=$(cat <<'EOF'
|
||||
#!/bin/bash
|
||||
|
|
|
|||
|
|
@ -38,17 +38,6 @@ if [[ -z "$firewall_iap_exists" ]]; then
|
|||
gcloud compute firewall-rules create allow-iap --network $VPC_NAME --allow tcp:80,tcp:443 --source-ranges 35.235.240.0/20 --direction INGRESS
|
||||
fi
|
||||
|
||||
# Create the Cloud Router and NAT Gateway
|
||||
cloud_router_exists=$(gcloud compute routers list --filter="name=$CLOUD_ROUTER_NAME" --format="value(name)")
|
||||
if [[ -z "$cloud_router_exists" ]]; then
|
||||
gcloud compute routers create $CLOUD_ROUTER_NAME --network $VPC_NAME --region $REGION
|
||||
fi
|
||||
|
||||
nat_exists=$(gcloud compute routers list --filter="name=$CLOUD_ROUTER_NAME" --format="value(nats.name)")
|
||||
if [[ -z "$nat_exists" ]]; then
|
||||
gcloud compute routers nats create $NAT_GATEWAY_NAME --router $CLOUD_ROUTER_NAME --auto-allocate-nat-external-ips --nat-all-subnet-ip-ranges --enable-logging --region $REGION
|
||||
fi
|
||||
|
||||
# Define the startup script as a multiline Bash here-doc
|
||||
STARTUP_SCRIPT=$(cat <<'EOF'
|
||||
#!/bin/bash
|
||||
|
|
|
|||
|
|
@ -67,11 +67,6 @@ If you want to remove the resources created during this tutorial, you can use th
|
|||
|
||||
```sql
|
||||
gcloud compute instances delete langflow-dev --zone us-central1-a --quiet
|
||||
|
||||
gcloud compute routers nats delete nat-gateway --router nat-client --region us-central1 --quiet
|
||||
|
||||
gcloud compute routers delete nat-client --region us-central1 --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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue