-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
34 lines (30 loc) · 1.03 KB
/
main.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
provider "azurerm" {
features {}
subscription_id = "1e65ba5d-ab67-48bc-9e82-cc2279934dca"
}
resource "azurerm_resource_group" "rg" {
name = "${var.resource_name}-rg"
location = var.location
}
module "budget" {
source = "./modules/budget"
resource_name = var.resource_name
location = azurerm_resource_group.rg.location
resource_group_id = azurerm_resource_group.rg.id
}
module "network" {
source = "./modules/network"
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
resource_name = var.resource_name
}
module "vm" {
source = "./modules/vm"
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
resource_name = var.resource_name
subnet_id = module.network.subnet_id
public_ip_id = module.network.public_ip_id
network_interface_id = module.network.network_interface_id
availability_set_id = module.network.availability_set_id
}