-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhyperscale.tf
68 lines (56 loc) · 2.75 KB
/
hyperscale.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
data "azurerm_subnet" "devcc-back" {
name = "devcc-back"
virtual_network_name = "devcc-vnet"
resource_group_name = "network-dev-rg"
}
data "azurerm_private_dns_zone" "mssql" {
name = "privatelink.database.windows.net"
resource_group_name = "network-management-rg"
provider = azurerm.mgmt
}
module "mssql" {
source = "git::https://github.com/canada-ca-terraform-modules/terraform-azurerm-mssql?ref=v3.0.0.1"
mssql_name = "sqlservername001"
location = "canadacentral"
environment = "dev"
resource_group_name = "hosting-sql-dev-rg"
administrator_login = ""
administrator_login_password = ""
active_directory_administrator_login_username = ""
active_directory_administrator_object_id = ""
active_directory_administrator_tenant_id = ""
kv_enable = true
kv_name = "hostingops-sql-dev-kv"
kv_resource_group_name = "hostingops-sql-dev-rg"
sa_resource_group_name = "hostingops-sql-dev-rg"
#Database Configurations
db_names = {
"hyperscalebasic" = { sku = "HS_Gen5_2" }
"hyperscaleallconfigs" = { sku = "HS_Gen5_2", collation = "SQL_Latin1_General_CP1_CI_AS", max_size_gb = 32, min_capacity = 0.5, str_days = 7, ltr_monthly_retention = "P1Y", ltr_weekly_retention = "P1W", ltr_yearly_retention = "P1Y", ltr_week_of_year = "52", read_replica_count = 0 }
}
db_owners = ["HostingDevSQL"] #Your AD Group or cloud username @cloud.statcan.ca
#[Optional] Private Endpoint Configurations
# private_endpoints = {
# "pe-backcc" = { subnet_id = data.azurerm_subnet.devcc-back.id, private_dns_zone_ids = [data.azurerm_private_dns_zone.mssql.id] }
# }
#[Optional] Elastic Pool Configurations
# ep_names = {
# "standard_dev_pool_01" = { max_size_gb = 4.8828125, sku = "BasicPool", tier = "Basic", capacity = 50, max_capacity = 5, min_capacity = 0}
# }
#[Optional] Configurations
#emails = ["[email protected]"]
#mssql_version = "12.0"
#retention_days = 90
#job_agent_credentials = { username = "username", password = "password" }
#express_va_enabled = ttrue
#[Optional] Firewall Configurations
#firewall_rules = []
#subnets = [data.azurerm_subnet.devcc-back.id]
#ssl_minimal_tls_version_enforced = "1.2"
#connection_policy = "Default"
#[Optional] User Assigned Managed Identity Configurations
#primary_mi_id = "abcdefg1234567"
tags = {
"tier" = "k8s"
}
}