-
Notifications
You must be signed in to change notification settings - Fork 3
/
r-search-service.tf
32 lines (26 loc) · 1.08 KB
/
r-search-service.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
resource "azurerm_search_service" "search_service" {
name = local.search_name
resource_group_name = var.resource_group_name
location = var.location
sku = var.sku
replica_count = var.replica_count
partition_count = var.partition_count
allowed_ips = var.allowed_ips
public_network_access_enabled = var.public_network_access_enabled
identity {
type = "SystemAssigned"
}
dynamic "timeouts" {
for_each = var.terraform_timeouts != null ? ["enabled"] : []
content {
create = var.terraform_timeouts.create
read = var.terraform_timeouts.read
update = var.terraform_timeouts.update
delete = var.terraform_timeouts.delete
}
}
semantic_search_sku = var.semantic_search_sku
local_authentication_enabled = var.local_authentication_enabled
authentication_failure_mode = !var.ad_authentication_enabled || (var.ad_authentication_enabled && !var.local_authentication_enabled) ? null : var.authentication_failure_mode
tags = merge(local.default_tags, var.extra_tags)
}