Skip to content

Commit

Permalink
Update content safety location in main.tf and variables.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
heblasco committed Apr 22, 2024
1 parent db34e05 commit 6223861
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ module "cog" {
vision_location = var.location_azopenai
content_safety_storage_resource_id = module.st.storage_account_id
deploy_bing = var.deploy_bing
content_safety_location = var.location_content_safety
}

module "cae" {
Expand Down
2 changes: 1 addition & 1 deletion infra/modules/cog/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ resource "azurerm_cognitive_account" "content_safety" {
name = var.content_safety_name
kind = "ContentSafety"
sku_name = "S0"
location = var.location
location = var.content_safety_location
resource_group_name = var.resource_group_name
public_network_access_enabled = true
custom_subdomain_name = var.content_safety_name
Expand Down
1 change: 1 addition & 0 deletions infra/modules/cog/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ variable "vision_location" {}
variable "bing_name" {}
variable "deploy_bing" {}
variable "content_safety_storage_resource_id" {}
variable "content_safety_location" {}
10 changes: 7 additions & 3 deletions infra/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ variable "location_azopenai" {
default = "swedencentral"
}

variable "location_content_safety" {
default = "eastus"
}

variable "log_name" {
default = "log-aihub"
}
Expand Down Expand Up @@ -99,15 +103,15 @@ variable "ca_chat_image" {
}

variable "ca_prep_docs_image" {
default = "ghcr.io/azure/aihub/aihub-prepdocs:1.0.9"
default = "ghcr.io/azure/aihub/aihub-prepdocs:1.0.10"
}

variable "ca_plugin_image" {
default = "ghcr.io/azure/aihub/aihub-plugin:1.0.9"
default = "ghcr.io/azure/aihub/aihub-plugin:1.0.10"
}

variable "ca_aihub_image" {
default = "ghcr.io/azure/aihub/aihub:1.0.10-preview.13"
default = "ghcr.io/azure/aihub/aihub:1.0.10"
}

variable "use_random_suffix" {
Expand Down

0 comments on commit 6223861

Please sign in to comment.