-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
39 lines (34 loc) · 1.1 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
35
36
37
38
39
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "3.81.0"
}
}
}
locals {
workload = "bigfactory"
}
resource "azurerm_resource_group" "default" {
name = "rg-${local.workload}"
location = var.location
}
module "storage" {
source = "./modules/storage"
location = azurerm_resource_group.default.location
resource_group_name = azurerm_resource_group.default.name
}
module "servicebus" {
source = "./modules/servicebus"
workload = local.workload
resource_group_name = azurerm_resource_group.default.name
location = azurerm_resource_group.default.location
}
module "eventgrid" {
source = "./modules/eventgrid"
resource_group_name = azurerm_resource_group.default.name
location = azurerm_resource_group.default.location
storage_id = module.storage.storage_id
service_bus_namespace_id = module.servicebus.servicebus_namespace_id
service_bus_queue_endpoint_id = module.servicebus.servicebus_queue_id
}