Skip to content

Commit 76feccc

Browse files
Clean main.tf and variables.tf
1 parent 6164de9 commit 76feccc

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ resource "random_id" "rid" {
55

66
#GCP Linux VM with Intel OPEA ChatQnA
77
module "linux_vm" {
8-
source = "../.." #intel/gcp-vm/intel
8+
source = "intel/gcp-vm/intel"
99
project = var.project
1010
boot_image_project = "ubuntu-os-cloud"
1111
boot_image_family = "ubuntu-2204-lts"
12-
name = "lmelo-ai-opea-chatqna-${random_id.rid.dec}"
13-
zone = "us-east4-a" #"us-central1-a"
12+
name = "ai-opea-chatqna-${random_id.rid.dec}"
13+
zone = "us-east4-a"
1414
machine_type = "c4-highcpu-48"
1515
allow_stopping_for_update = true
16-
tags = ["lmelo-ai-opea-chatqna-${random_id.rid.dec}"]
16+
tags = ["ai-opea-chatqna-${random_id.rid.dec}"]
1717
user_data = templatefile("./cloud_init.yml", { HUGGINGFACEHUB_API_TOKEN = var.huggingface_token })
1818
access_config = [{
1919
nat_ip = null
@@ -25,7 +25,7 @@ module "linux_vm" {
2525
#Required firewall rules
2626
resource "google_compute_firewall" "rules" {
2727
project = var.project
28-
name = "lmelo-ai-opea-chatqna-${random_id.rid.dec}"
28+
name = "ai-opea-chatqna-${random_id.rid.dec}"
2929
network = "default"
3030
description = "Allows access to OPEA AI ChatQnA"
3131

@@ -34,5 +34,5 @@ resource "google_compute_firewall" "rules" {
3434
ports = ["22","80", "443", "6379", "8001", "6006", "6007", "6000", "7000", "8808", "8000", "8888", "5173", "5174", "9009", "9000"]
3535
}
3636
source_ranges = ["0.0.0.0/0"]
37-
target_tags = ["lmelo-ai-opea-chatqna-${random_id.rid.dec}"]
37+
target_tags = ["ai-opea-chatqna-${random_id.rid.dec}"]
3838
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
variable "project" {
22
type = string
3-
default = "551221341017"
43
description = "Enter GCP Project ID"
54
}
65

76
# Variable for Huggingface Token
87
variable "huggingface_token" {
98
description = "Enter a Huggingface Token to be used to download the models"
10-
default = "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"
9+
default = " <YOUR HUGGINGFACE TOKEN> "
1110
type = string
1211
}

0 commit comments

Comments
 (0)