Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: repository governance #174

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 7 additions & 14 deletions main.telemetry.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ data "azapi_client_config" "telemetry" {
count = var.enable_telemetry ? 1 : 0
}

data "alz_metadata" "telemetry" {
count = var.enable_telemetry ? 1 : 0
}

data "modtm_module_source" "telemetry" {
count = var.enable_telemetry ? 1 : 0

Expand All @@ -19,14 +15,11 @@ resource "random_uuid" "telemetry" {
resource "modtm_telemetry" "telemetry" {
count = var.enable_telemetry ? 1 : 0

tags = merge({
subscription_id = one(data.azapi_client_config.telemetry).subscription_id
tenant_id = one(data.azapi_client_config.telemetry).tenant_id
module_source = one(data.modtm_module_source.telemetry).module_source
module_version = one(data.modtm_module_source.telemetry).module_version
random_id = one(random_uuid.telemetry).result
alz_library_references = jsonencode(one(data.alz_metadata.telemetry).alz_library_references)
},
var.partner_id != null ? { partner_id = var.partner_id } : {}
)
tags = {
subscription_id = one(data.azapi_client_config.telemetry).subscription_id
tenant_id = one(data.azapi_client_config.telemetry).tenant_id
module_source = one(data.modtm_module_source.telemetry).module_source
module_version = one(data.modtm_module_source.telemetry).module_version
random_id = one(random_uuid.telemetry).result
}
}
Loading