Skip to content

Commit aa5cbbe

Browse files
Remove port 22, enhance variables file (#49)
1 parent 2ea928e commit aa5cbbe

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

examples/gen-ai-xeon-opea-chatqna/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module "linux_vm" {
1414
machine_type = "c4-highcpu-48"
1515
allow_stopping_for_update = true
1616
tags = ["ai-opea-chatqna-${random_id.rid.dec}"]
17-
user_data = templatefile("./cloud_init.yml", { HUGGINGFACEHUB_API_TOKEN = var.huggingface_token })
17+
user_data = templatefile("./cloud_init.yml", { HUGGINGFACEHUB_API_TOKEN = var.huggingface_token })
1818
access_config = [{
1919
nat_ip = null
2020
public_ptr_domain_name = null
@@ -31,7 +31,7 @@ resource "google_compute_firewall" "rules" {
3131

3232
allow {
3333
protocol = "tcp"
34-
ports = ["22","80", "443", "6379", "8001", "6006", "6007", "6000", "7000", "8808", "8000", "8888", "5173", "5174", "9009", "9000"]
34+
ports = ["80", "443", "6379", "8001", "6006", "6007", "6000", "7000", "8808", "8000", "8888", "5173", "5174", "9009", "9000"]
3535
}
3636
source_ranges = ["0.0.0.0/0"]
3737
target_tags = ["ai-opea-chatqna-${random_id.rid.dec}"]
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
variable "project" {
22
type = string
3+
#default = "<Enter your GCP project ID>"
34
description = "Enter GCP Project ID"
45
}
56

67
# Variable for Huggingface Token
78
variable "huggingface_token" {
89
description = "Enter a Huggingface Token to be used to download the models"
9-
default = " <YOUR HUGGINGFACE TOKEN> "
10+
#default = "<YOUR HUGGINGFACE TOKEN>"
1011
type = string
1112
}

examples/gen-ai-xeon-opea-codegen/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ resource "google_compute_firewall" "rules" {
3131

3232
allow {
3333
protocol = "tcp"
34-
ports = ["22", "80", "443", "6379", "8001", "6006", "6007", "6000", "7000", "8808", "8000", "8888", "5173", "5174", "9009", "9000", "8028", "7778"]
34+
ports = ["80", "443", "6379", "8001", "6006", "6007", "6000", "7000", "8808", "8000", "8888", "5173", "5174", "9009", "9000", "8028", "7778"]
3535
}
3636
source_ranges = ["0.0.0.0/0"]
3737
target_tags = ["ai-opea-codegen-${random_id.rid.dec}"]

0 commit comments

Comments
 (0)