-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaz-ml.tf
33 lines (31 loc) · 1.32 KB
/
az-ml.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Acoording to Doku associated resources are:
# - Azure Storage Account
# - Azure Application Insights
# - Azure Key Vault
resource "azurerm_storage_account" "meya_terraform" {
count = var.ML_Service == "No" ? 0 : 1
name = "meyastgeaccount"
resource_group_name = azurerm_resource_group.meya_terraform.name
location = azurerm_resource_group.meya_terraform.location
account_tier = "Standard"
account_replication_type = "GRS"
tags = {
environment = "staging"
}
}
resource "azurerm_application_insights" "meya_terraform" {
count = var.ML_Service == "No" ? 0 : 1
name = "meyaappinsights"
location = azurerm_resource_group.meya_terraform.location
resource_group_name = azurerm_resource_group.meya_terraform.name
application_type = "web"
}
resource "azurerm_key_vault" "meya_terraform" {
count = var.ML_Service == "No" ? 0 : 1
name = "meyakeyvault"
location = azurerm_resource_group.meya_terraform.location
resource_group_name = azurerm_resource_group.meya_terraform.name
enabled_for_disk_encryption = true
tenant_id = var.ARM_TENANT_ID
sku_name = "standard"
}