-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequirements.tf
35 lines (28 loc) · 1.08 KB
/
requirements.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
34
data "azurerm_subscription" "this" {
subscription_id = var.subscription_id
}
data "azurerm_resource_group" "scaleset" {
name = var.scaleset_rg_name
}
data "azurerm_resource_group" "loadbalancer" {
name = var.loadbalancer_rg_name
}
data "azurerm_virtual_network" "this" {
name = var.vnet_name
resource_group_name = var.vnet_rg_name
}
data "azurerm_subnet" "scaleset" {
name = var.scaleset_subnet_name
resource_group_name = data.azurerm_virtual_network.this.resource_group_name
virtual_network_name = data.azurerm_virtual_network.this.name
}
data "azurerm_subnet" "loadbalancer" {
name = var.loadbalancer_subnet_name
resource_group_name = data.azurerm_virtual_network.this.resource_group_name
virtual_network_name = data.azurerm_virtual_network.this.name
}
data "azurerm_storage_account" "boot_diagnostics" {
count = var.scaleset_boot_diagnostics_enabled ? 1 : 0
name = var.scaleset_boot_diagnostics_storage_account_name
resource_group_name = var.scaleset_boot_diagnostics_storage_account_rg_name
}