This repository has been archived by the owner on Jun 26, 2023. It is now read-only.
forked from aztfmod/terraform-azurerm-caf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
eventgrid.tf
executable file
·78 lines (64 loc) · 2.91 KB
/
eventgrid.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
module "eventgrid_domain" {
source = "./modules/messaging/eventgrid/eventgrid_domain"
for_each = local.messaging.eventgrid_domain
global_settings = local.global_settings
client_config = local.client_config
settings = each.value
location = can(local.global_settings.regions[each.value.region]) ? local.global_settings.regions[each.value.region] : local.combined_objects_resource_groups[try(each.value.resource_group.lz_key, local.client_config.landingzone_key)][try(each.value.resource_group.key, each.value.resource_group_key)].location
remote_objects = {
resource_group = local.combined_objects_resource_groups
vnets = local.combined_objects_networking
private_dns = local.combined_objects_private_dns
}
}
output "eventgrid_domain" {
value = module.eventgrid_domain
}
module "eventgrid_topic" {
source = "./modules/messaging/eventgrid/eventgrid_topic"
for_each = local.messaging.eventgrid_topic
global_settings = local.global_settings
client_config = local.client_config
settings = each.value
location = can(local.global_settings.regions[each.value.region]) ? local.global_settings.regions[each.value.region] : local.combined_objects_resource_groups[try(each.value.resource_group.lz_key, local.client_config.landingzone_key)][try(each.value.resource_group.key, each.value.resource_group_key)].location
remote_objects = {
resource_group = local.combined_objects_resource_groups
}
}
output "eventgrid_topic" {
value = module.eventgrid_topic
}
module "eventgrid_event_subscription" {
source = "./modules/messaging/eventgrid/eventgrid_event_subscription"
for_each = local.messaging.eventgrid_event_subscription
global_settings = local.global_settings
client_config = local.client_config
settings = each.value
remote_objects = {
all = local.remote_objects,
functions = local.combined_objects_function_apps,
eventhubs = local.combined_objects_event_hubs,
servicebus_topic = local.combined_objects_servicebus_topics,
servicebus_queues = local.combined_objects_servicebus_queues,
storage_accounts = local.combined_objects_storage_accounts,
hybrid_connections = local.combined_objects_relay_hybrid_connection,
storage_account_queues = local.combined_objects_storage_account_queues
}
}
output "eventgrid_event_subscription" {
value = module.eventgrid_event_subscription
}
module "eventgrid_domain_topic" {
source = "./modules/messaging/eventgrid/eventgrid_domain_topic"
for_each = local.messaging.eventgrid_domain_topic
global_settings = local.global_settings
client_config = local.client_config
settings = each.value
remote_objects = {
resource_group = local.combined_objects_resource_groups
eventgrid_domain = local.combined_objects_eventgrid_domains
}
}
output "eventgrid_domain_topic" {
value = module.eventgrid_domain_topic
}