-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.tf
29 lines (24 loc) · 946 Bytes
/
data.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
data "azurerm_client_config" "current" {}
data "azurerm_subnet" "kubesubnet" {
name = var.aks_subnet_name
virtual_network_name = azurerm_virtual_network.test.name
resource_group_name = data.azurerm_resource_group.rg.name
depends_on = [azurerm_virtual_network.test]
}
data "azurerm_subnet" "appgwsubnet" {
name = local.app_gateway_subnet_name
virtual_network_name = azurerm_virtual_network.test.name
resource_group_name = data.azurerm_resource_group.rg.name
depends_on = [azurerm_virtual_network.test]
}
data "azurerm_resource_group" "rg" {
name = var.resource_group_name
}
data "azurerm_resource_group" "iam_rg" {
name = var.managed_identity_resource_group_name
}
# User Assigned Identities
data "azurerm_user_assigned_identity" "app-gw-id" {
resource_group_name = data.azurerm_resource_group.iam_rg.name
name = var.managed_identity_name
}