Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
use new module telemetry solution
Browse files Browse the repository at this point in the history
  • Loading branch information
lonegunmanb committed Jul 31, 2024
1 parent 73d86d9 commit f8d2645
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion examples/azureopenai-private-endpoints/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ terraform {
}
modtm = {
source = "Azure/modtm"
version = ">= 0.1.8, < 1.0"
version = "~> 0.3"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/azureopenai-public-endpoint/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ terraform {
}
modtm = {
source = "Azure/modtm"
version = ">= 0.1.8, < 1.0"
version = "~> 0.3"
}
}
}
Expand Down
23 changes: 10 additions & 13 deletions module_telemetry.tf
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
resource "modtm_telemetry" "this" {
tags = {
data "azurerm_client_config" "telemetry" {}

avm_git_commit = "85058677c04067d191d46e38e173e11d00caafa2"
avm_git_file = "module_telemetry.tf"
avm_git_last_modified_at = "2024-01-29 15:15:29"
avm_git_org = "Azure"
avm_git_repo = "terraform-azurerm-openai"
avm_yor_name = "this"
avm_yor_trace = "bbfeb8dc-4a52-40ab-b156-4e709a8e867e"
}
ephemeral_number = 26737
data "modtm_module_source" "telemetry" {
module_path = path.module
}

lifecycle {
ignore_changes = [ephemeral_number]
resource "modtm_telemetry" "this" {
tags = {
subscription_id = data.azurerm_client_config.telemetry.subscription_id
tenant_id = data.azurerm_client_config.telemetry.tenant_id
module_source = data.modtm_module_source.telemetry.module_source
module_version = data.modtm_module_source.telemetry.module_version
}
}
2 changes: 1 addition & 1 deletion providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ terraform {
}
modtm = {
source = "Azure/modtm"
version = ">= 0.1.8, < 1.0"
version = "~> 0.3"
}
random = {
source = "hashicorp/random"
Expand Down

0 comments on commit f8d2645

Please sign in to comment.