-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheventgrid.tf
More file actions
32 lines (27 loc) · 959 Bytes
/
eventgrid.tf
File metadata and controls
32 lines (27 loc) · 959 Bytes
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
module "eventgrid" {
source = "cloudnationhq/eg/azure"
version = "~> 1.4"
naming = local.naming
config = {
name = "${module.naming.eventgrid_domain.name}-${var.name_suffix}"
location = var.location
resource_group = var.resource_group_name
tags = var.tags
event_subscriptions = {
for kv in var.keyvaults : ("${kv.name}-${var.name_suffix}") => {
scope = kv.id
event_delivery_schema = "EventGridSchema"
included_event_types = [
"Microsoft.KeyVault.SecretExpired",
"Microsoft.KeyVault.SecretNearExpiry",
"Microsoft.KeyVault.SecretNewVersionCreated"
]
webhook_endpoint = {
url = module.runbooks.webhook["az-aa-client-secret-rotation-event"].uri
max_events_per_batch = 1
preferred_batch_size_in_kilobytes = 64
}
}
}
}
}