Skip to content

Commit deb35f9

Browse files
authored
Merge pull request #34 from Rohit-Intel-Cloud/owner_email_computed
make owner email as computed field, update examples
2 parents b1a2327 + 98c8d96 commit deb35f9

File tree

13 files changed

+13
-35
lines changed

13 files changed

+13
-35
lines changed

examples/gen-ai-xeon-opea-chatqna/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ idc_region = "us-region-2"
1818
ssh_key_name = "<SSH_KEY>"
1919
instance_name = "genai-chatqna-demo3"
2020
ssh_pubkey_path = "<PATH_TO_SSH_PUBKEY>"
21-
ssh_user_email = "<USER_EMAIL>"
2221
instance_type = "vm-large"
2322
filesystem_name = "shri-fs6"
2423
filesystem_size_in_tb = 1

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

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,14 @@ provider "intelcloud" {
2828
# }
2929
# }
3030

31-
# resource "intelcloud_sshkey" "example" {
32-
# metadata = {
33-
# name = var.ssh_key_name
34-
# }
35-
# spec = {
36-
# ssh_public_key = file(var.ssh_pubkey_path)
37-
# owner_email = var.ssh_user_email
38-
# }
39-
# }
31+
resource "intelcloud_sshkey" "example" {
32+
metadata = {
33+
name = var.ssh_key_name
34+
}
35+
spec = {
36+
ssh_public_key = file(var.ssh_pubkey_path)
37+
}
38+
}
4039

4140
resource "intelcloud_instance" "example" {
4241
name = var.instance_name
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
idc_region = "us-staging-1"
22
ssh_key_name = "shrimac"
33
instance_name = "genai-chatqna-demo3"
4-
ssh_pubkey_path = <path-to-your-public-key-file>
5-
ssh_privatekey_path = <path-to-your-private-key-file>
6-
ssh_user_email = "[email protected]"
4+
ssh_pubkey_path = "/Users/snadgowd/.ssh/id_ed25519.pub"
75
instance_type = "vm-large"
86
filesystem_name = "shri-fs6"
97
filesystem_size_in_tb = 1

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ variable "ssh_privatekey_path" {
1010
type = string
1111
}
1212

13-
variable "ssh_user_email" {
14-
type = string
15-
}
16-
1713
variable "instance_name" {
1814
type = string
1915
}

examples/gen-ai-xeon-opea-codegen/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@ Change the `cloud_init.yaml` file to add your hugging face token (you can create
1212
```shell
1313
- echo 'export HUGGINGFACEHUB_API_TOKEN=<HUGGINGFACE_API_TOKEN>' | sudo tee -a /etc/profile.d/opea.sh
1414
```
15-
Change the `terraform.tfvars` file to add your `ssh_keyname` , `ssh_pubkey_path` and `ssh_user_email`
15+
Change the `terraform.tfvars` file to add your `ssh_keyname` , `ssh_pubkey_path`
1616
```shell
1717
idc_region = "us-region-2"
1818
ssh_key_name = "<SSH_KEY>"
1919
instance_name = "genai-chatqna-demo3"
2020
ssh_pubkey_path = "<PATH_TO_SSH_PUBKEY>"
21-
ssh_user_email = "<USER_EMAIL>"
2221
instance_type = "vm-large"
2322
filesystem_name = "shri-fs6"
2423
filesystem_size_in_tb = 1

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ provider "intelcloud" {
3434
# }
3535
# spec = {
3636
# ssh_public_key = file(var.ssh_pubkey_path)
37-
# owner_email = var.ssh_user_email
3837
# }
3938
# }
4039

examples/gen-ai-xeon-opea-codegen/terraform.tfvars

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ ssh_key_name = "shrimac"
33
instance_name = "genai-codegen-demo3"
44
ssh_pubkey_path = <path-to-your-public-key-file>
55
ssh_privatekey_path = <path-to-your-private-key-file>
6-
ssh_user_email = "<email>"
76
instance_type = "vm-large"
87
filesystem_name = "shri-fs6"
98
filesystem_size_in_tb = 1

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ variable "ssh_privatekey_path" {
1010
type = string
1111
}
1212

13-
variable "ssh_user_email" {
14-
type = string
15-
}
16-
1713
variable "instance_name" {
1814
type = string
1915
}

examples/resources/all_resources/main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ resource "idc_sshkey" "sshkey-1" {
3535
}
3636
spec = {
3737
ssh_public_key = file(var.ssh_pubkey_path)
38-
owner_email = var.ssh_user_email
3938
}
4039
}
4140

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
idc_region = "us-region-2"
22
ssh_pubkey_path = "/Users/snadgowd/.ssh/id_ed25519.pub"
3-
ssh_user_email = "[email protected]"
43
instance_type = "vm-small"
54
filesystem_size_in_gb = 90

0 commit comments

Comments
 (0)