From 566399b0ae7585618244421b2f7908dfc07a7ea9 Mon Sep 17 00:00:00 2001 From: lucasmelogithub Date: Fri, 11 Oct 2024 16:47:16 -0500 Subject: [PATCH] Remove port 22, enhance variables file --- examples/gen-ai-xeon-opea-chatqna/main.tf | 4 ++-- examples/gen-ai-xeon-opea-chatqna/variables.tf | 3 ++- examples/gen-ai-xeon-opea-codegen/main.tf | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/gen-ai-xeon-opea-chatqna/main.tf b/examples/gen-ai-xeon-opea-chatqna/main.tf index f7c2a54..d0c2f10 100644 --- a/examples/gen-ai-xeon-opea-chatqna/main.tf +++ b/examples/gen-ai-xeon-opea-chatqna/main.tf @@ -14,7 +14,7 @@ module "linux_vm" { machine_type = "c4-highcpu-48" allow_stopping_for_update = true tags = ["ai-opea-chatqna-${random_id.rid.dec}"] - user_data = templatefile("./cloud_init.yml", { HUGGINGFACEHUB_API_TOKEN = var.huggingface_token }) + user_data = templatefile("./cloud_init.yml", { HUGGINGFACEHUB_API_TOKEN = var.huggingface_token }) access_config = [{ nat_ip = null public_ptr_domain_name = null @@ -31,7 +31,7 @@ resource "google_compute_firewall" "rules" { allow { protocol = "tcp" - ports = ["22","80", "443", "6379", "8001", "6006", "6007", "6000", "7000", "8808", "8000", "8888", "5173", "5174", "9009", "9000"] + ports = ["80", "443", "6379", "8001", "6006", "6007", "6000", "7000", "8808", "8000", "8888", "5173", "5174", "9009", "9000"] } source_ranges = ["0.0.0.0/0"] target_tags = ["ai-opea-chatqna-${random_id.rid.dec}"] diff --git a/examples/gen-ai-xeon-opea-chatqna/variables.tf b/examples/gen-ai-xeon-opea-chatqna/variables.tf index 9c0608f..5c227c1 100644 --- a/examples/gen-ai-xeon-opea-chatqna/variables.tf +++ b/examples/gen-ai-xeon-opea-chatqna/variables.tf @@ -1,11 +1,12 @@ variable "project" { type = string + #default = "" description = "Enter GCP Project ID" } # Variable for Huggingface Token variable "huggingface_token" { description = "Enter a Huggingface Token to be used to download the models" - default = " " + #default = "" type = string } \ No newline at end of file diff --git a/examples/gen-ai-xeon-opea-codegen/main.tf b/examples/gen-ai-xeon-opea-codegen/main.tf index 8b1d59f..30aa09a 100644 --- a/examples/gen-ai-xeon-opea-codegen/main.tf +++ b/examples/gen-ai-xeon-opea-codegen/main.tf @@ -31,7 +31,7 @@ resource "google_compute_firewall" "rules" { allow { protocol = "tcp" - ports = ["22", "80", "443", "6379", "8001", "6006", "6007", "6000", "7000", "8808", "8000", "8888", "5173", "5174", "9009", "9000", "8028", "7778"] + ports = ["80", "443", "6379", "8001", "6006", "6007", "6000", "7000", "8808", "8000", "8888", "5173", "5174", "9009", "9000", "8028", "7778"] } source_ranges = ["0.0.0.0/0"] target_tags = ["ai-opea-codegen-${random_id.rid.dec}"]