Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/gen-ai-xeon-opea-chatqna/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}"]
Expand Down
3 changes: 2 additions & 1 deletion examples/gen-ai-xeon-opea-chatqna/variables.tf
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
variable "project" {
type = string
#default = "<Enter your GCP project ID>"
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 = " <YOUR HUGGINGFACE TOKEN> "
#default = "<YOUR HUGGINGFACE TOKEN>"
type = string
}
2 changes: 1 addition & 1 deletion examples/gen-ai-xeon-opea-codegen/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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}"]
Expand Down
Loading