зеркало из
1
0
Форкнуть 0
terraform-azurerm-vnet/telemetry.tf

25 строки
736 B
Terraform
Исходник Обычный вид История

2024-11-12 10:51:49 +03:00
data "azurerm_client_config" "telemetry" {
count = var.enable_telemetry ? 1 : 0
}
data "modtm_module_source" "telemetry" {
count = var.enable_telemetry ? 1 : 0
module_path = path.module
}
resource "random_uuid" "telemetry" {
count = var.enable_telemetry ? 1 : 0
}
resource "modtm_telemetry" "telemetry" {
count = var.enable_telemetry ? 1 : 0
tags = {
subscription_id = one(data.azurerm_client_config.telemetry).subscription_id
tenant_id = one(data.azurerm_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
}
}