Skip to content

Commit 52ee9d6

Browse files
authored
Merge pull request #6 from data-platform-hq/fix/change-to-demos_sql_azure_ad_object_id-variable
2 parents a28facf + 7cf058f commit 52ee9d6

File tree

5 files changed

+13
-190
lines changed

5 files changed

+13
-190
lines changed

README.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,9 @@ This module is provisioning Azure WWI Demo
2828

2929
| Name | Source | Version |
3030
|------|--------|---------|
31-
| <a name="module_debezium"></a> [debezium](#module\_debezium) | data-platform-hq/debezium/azurerm | 1.1.0 |
32-
| <a name="module_eventhub"></a> [eventhub](#module\_eventhub) | data-platform-hq/eventhub/azurerm | 1.2.0 |
33-
| <a name="module_logic_app_workflow_api"></a> [logic\_app\_workflow\_api](#module\_logic\_app\_workflow\_api) | data-platform-hq/logic-app-workflow/azurerm | 1.3.0 |
3431
| <a name="module_mssql_database"></a> [mssql\_database](#module\_mssql\_database) | data-platform-hq/mssql-database/azurerm | 1.2.0 |
35-
| <a name="module_mssql_server"></a> [mssql\_server](#module\_mssql\_server) | data-platform-hq/mssql-server/azurerm | 1.5.0 |
32+
| <a name="module_mssql_server"></a> [mssql\_server](#module\_mssql\_server) | data-platform-hq/mssql-server/azurerm | 1.5.1 |
3633
| <a name="module_mssql_tde_key"></a> [mssql\_tde\_key](#module\_mssql\_tde\_key) | data-platform-hq/key-vault-key/azurerm | 1.1.0 |
37-
| <a name="module_resource_group_debezium"></a> [resource\_group\_debezium](#module\_resource\_group\_debezium) | data-platform-hq/resource-group/azurerm | 1.4.0 |
3834
| <a name="module_resource_group_wwi_demo"></a> [resource\_group\_wwi\_demo](#module\_resource\_group\_wwi\_demo) | data-platform-hq/resource-group/azurerm | 1.4.0 |
3935
| <a name="module_wwi_demo_secrets"></a> [wwi\_demo\_secrets](#module\_wwi\_demo\_secrets) | data-platform-hq/key-vault-secret/azurerm | 1.2.0 |
4036
| <a name="module_wwi_demo_virtual_machine"></a> [wwi\_demo\_virtual\_machine](#module\_wwi\_demo\_virtual\_machine) | data-platform-hq/linux-vm/azurerm | 1.1.0 |
@@ -55,18 +51,9 @@ This module is provisioning Azure WWI Demo
5551
| Name | Description | Type | Default | Required |
5652
|------|-------------|------|---------|:--------:|
5753
| <a name="input_admin_password"></a> [admin\_password](#input\_admin\_password) | Azure Admin Password to use | `string` | `null` | no |
58-
| <a name="input_container_config"></a> [container\_config](#input\_container\_config) | Version and capacity config for container | <pre>map(object({<br> image = string<br> cpu = string<br> memory = string<br> }))</pre> | <pre>{<br> "debezium": {<br> "cpu": "4",<br> "image": "debezium/connect:1.9",<br> "memory": "2"<br> }<br>}</pre> | no |
59-
| <a name="input_custom_eventhub_components_names"></a> [custom\_eventhub\_components\_names](#input\_custom\_eventhub\_components\_names) | Specifies the custom name of the resources in Eventhub module | <pre>object({<br> namespace = optional(string)<br> namespace_rule = optional(string)<br> topic = optional(string)<br> topic_rule = optional(string)<br> })</pre> | `{}` | no |
60-
| <a name="input_custom_resource_group_name"></a> [custom\_resource\_group\_name](#input\_custom\_resource\_group\_name) | Custom name for Resource Group | `string` | `null` | no |
61-
| <a name="input_debezium_enabled"></a> [debezium\_enabled](#input\_debezium\_enabled) | Boolean flag to specify whether Container Instance with Debezium is provisioned | `bool` | `false` | no |
62-
| <a name="input_debezium_encryption_key"></a> [debezium\_encryption\_key](#input\_debezium\_encryption\_key) | Boolean flag to specify whether Container Instance with Debezium is CMK encrypted | `bool` | `false` | no |
63-
| <a name="input_debezium_mssql_db_name"></a> [debezium\_mssql\_db\_name](#input\_debezium\_mssql\_db\_name) | Name of target Database which would be used by Debezium | `string` | `""` | no |
64-
| <a name="input_debezium_mssql_tables"></a> [debezium\_mssql\_tables](#input\_debezium\_mssql\_tables) | Tables with CDC enabled in target Database | `list(string)` | `[]` | no |
54+
| <a name="input_demos_sql_azure_ad_object_id"></a> [demos\_sql\_azure\_ad\_object\_id](#input\_demos\_sql\_azure\_ad\_object\_id) | The login username of the Azure AD Administrator of this SQL Server. | `string` | `null` | no |
6555
| <a name="input_env"></a> [env](#input\_env) | Environment name | `string` | n/a | yes |
66-
| <a name="input_eventhub_enabled"></a> [eventhub\_enabled](#input\_eventhub\_enabled) | Boolean flag to specify whether Azure Event Hub is provisioned | `bool` | `false` | no |
67-
| <a name="input_eventhub_topics"></a> [eventhub\_topics](#input\_eventhub\_topics) | Map of eventhub topics | <pre>map(object({<br> partition_count = string<br> message_retention = string<br> permissions = list(string)<br> }))</pre> | `{}` | no |
6856
| <a name="input_key_vault_id"></a> [key\_vault\_id](#input\_key\_vault\_id) | Azure Key Vault ID to use | `string` | n/a | yes |
69-
| <a name="input_key_vault_name"></a> [key\_vault\_name](#input\_key\_vault\_name) | Azure Key Vault Name to use | `string` | n/a | yes |
7057
| <a name="input_location"></a> [location](#input\_location) | Azure location | `string` | n/a | yes |
7158
| <a name="input_microsoft_wwi_demo_enabled"></a> [microsoft\_wwi\_demo\_enabled](#input\_microsoft\_wwi\_demo\_enabled) | Boolean flag that determines whether Microsoft WWI Demo in provisioned within Environment | `bool` | `false` | no |
7259
| <a name="input_mssql_database"></a> [mssql\_database](#input\_mssql\_database) | Map of databases to be deployed in Azure SQL | `map(any)` | `{}` | no |
@@ -79,17 +66,14 @@ This module is provisioning Azure WWI Demo
7966
| <a name="input_resource_group"></a> [resource\_group](#input\_resource\_group) | The name of the resource group in which to create MSSQL Server | `string` | n/a | yes |
8067
| <a name="input_secrets_expiration_date"></a> [secrets\_expiration\_date](#input\_secrets\_expiration\_date) | Expiration UTC datetime (Y-m-d'T'H:M:S'Z') | `string` | `"2024-12-21T00:00:00Z"` | no |
8168
| <a name="input_sql_azure_ad_admin_login"></a> [sql\_azure\_ad\_admin\_login](#input\_sql\_azure\_ad\_admin\_login) | The login username of the Azure AD Administrator of this SQL Server. | `string` | `null` | no |
82-
| <a name="input_sql_azure_ad_admin_object_id"></a> [sql\_azure\_ad\_admin\_object\_id](#input\_sql\_azure\_ad\_admin\_object\_id) | The login username of the Azure AD Administrator of this SQL Server. | `string` | `null` | no |
8369
| <a name="input_sql_server_admin_login"></a> [sql\_server\_admin\_login](#input\_sql\_server\_admin\_login) | The administrator login name for Azure SQL server | `string` | `"dpaf"` | no |
8470
| <a name="input_tags"></a> [tags](#input\_tags) | Resource tags | `map(any)` | `{}` | no |
85-
| <a name="input_tenant_id"></a> [tenant\_id](#input\_tenant\_id) | Azure Tenant ID to use | `string` | n/a | yes |
8671
| <a name="input_wwi_demo_subnet_id"></a> [wwi\_demo\_subnet\_id](#input\_wwi\_demo\_subnet\_id) | Microsoft WWI subnet | `string` | `null` | no |
8772

8873
## Outputs
8974

9075
| Name | Description |
9176
|------|-------------|
92-
| <a name="output_eventhub"></a> [eventhub](#output\_eventhub) | Eventhub related outputs |
9377
| <a name="output_mssql_database"></a> [mssql\_database](#output\_mssql\_database) | MSSQL Database elated outputs |
9478
| <a name="output_mssql_server"></a> [mssql\_server](#output\_mssql\_server) | MSSQL Server related outputs |
9579
| <a name="output_random_password"></a> [random\_password](#output\_random\_password) | Password for Admin Login on WWI SQL Server |

debezium.tf

Lines changed: 0 additions & 70 deletions
This file was deleted.

mssql.tf

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module "mssql_server" {
22
count = var.mssql_enabled ? 1 : 0
33
source = "data-platform-hq/mssql-server/azurerm"
4-
version = "1.5.0"
4+
version = "1.5.1"
55

66
project = var.project
77
env = var.env
@@ -10,15 +10,15 @@ module "mssql_server" {
1010
tags = var.tags
1111
resource_group = var.resource_group
1212

13-
admin_login = var.sql_server_admin_login
14-
admin_password = coalesce(var.admin_password, random_password.sql_server_admin_password[0].result)
15-
azure_ad_admin_login = var.sql_azure_ad_admin_login
16-
azure_ad_admin_object_id = var.sql_azure_ad_admin_object_id
17-
ip_rules = var.mssql_server_ip_rules
18-
tde_encryption_enabled = var.mssql_tde_key_enabled
19-
key_vault_id = var.key_vault_id
20-
key_vault_key_id = try(module.mssql_tde_key[0].key_id, "")
21-
mssql_defender_state = var.mssql_defender_state
13+
admin_login = var.sql_server_admin_login
14+
admin_password = coalesce(var.admin_password, random_password.sql_server_admin_password[0].result)
15+
azure_ad_admin_login = var.sql_azure_ad_admin_login
16+
azure_ad_object_id = var.demos_sql_azure_ad_object_id
17+
ip_rules = var.mssql_server_ip_rules
18+
tde_encryption_enabled = var.mssql_tde_key_enabled
19+
key_vault_id = var.key_vault_id
20+
key_vault_key_id = try(module.mssql_tde_key[0].key_id, "")
21+
mssql_defender_state = var.mssql_defender_state
2222
}
2323

2424
module "mssql_database" {

outputs.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
output "eventhub" {
2-
value = try(module.eventhub[0][*], null)
3-
description = "Eventhub related outputs"
4-
}
5-
61
output "mssql_server" {
72
value = try(module.mssql_server[0][*], null)
83
description = "MSSQL Server related outputs"

variables.tf

Lines changed: 1 addition & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -24,104 +24,18 @@ variable "tags" {
2424
default = {}
2525
}
2626

27-
# Eventhubs
28-
variable "custom_eventhub_components_names" {
29-
type = object({
30-
namespace = optional(string)
31-
namespace_rule = optional(string)
32-
topic = optional(string)
33-
topic_rule = optional(string)
34-
})
35-
description = "Specifies the custom name of the resources in Eventhub module"
36-
default = {}
37-
}
38-
39-
variable "custom_resource_group_name" {
40-
type = string
41-
description = "Custom name for Resource Group"
42-
default = null
43-
}
44-
4527
# Key Vault Config
4628
variable "key_vault_id" {
4729
type = string
4830
description = "Azure Key Vault ID to use"
4931
}
5032

51-
variable "key_vault_name" {
52-
type = string
53-
description = "Azure Key Vault Name to use"
54-
}
55-
56-
variable "tenant_id" {
57-
type = string
58-
description = "Azure Tenant ID to use"
59-
}
60-
6133
variable "secrets_expiration_date" {
6234
type = string
6335
description = "Expiration UTC datetime (Y-m-d'T'H:M:S'Z')"
6436
default = "2024-12-21T00:00:00Z"
6537
}
6638

67-
# Event Hub
68-
variable "eventhub_enabled" {
69-
type = bool
70-
description = "Boolean flag to specify whether Azure Event Hub is provisioned"
71-
default = false
72-
}
73-
74-
variable "eventhub_topics" {
75-
type = map(object({
76-
partition_count = string
77-
message_retention = string
78-
permissions = list(string)
79-
}))
80-
description = "Map of eventhub topics"
81-
default = {}
82-
}
83-
84-
# Debezium
85-
variable "debezium_enabled" {
86-
type = bool
87-
description = "Boolean flag to specify whether Container Instance with Debezium is provisioned"
88-
default = false
89-
}
90-
91-
variable "debezium_encryption_key" {
92-
type = bool
93-
description = "Boolean flag to specify whether Container Instance with Debezium is CMK encrypted "
94-
default = false
95-
}
96-
97-
variable "debezium_mssql_db_name" {
98-
type = string
99-
description = "Name of target Database which would be used by Debezium"
100-
default = ""
101-
}
102-
103-
variable "debezium_mssql_tables" {
104-
type = list(string)
105-
description = "Tables with CDC enabled in target Database"
106-
default = []
107-
}
108-
109-
variable "container_config" {
110-
type = map(object({
111-
image = string
112-
cpu = string
113-
memory = string
114-
}))
115-
description = "Version and capacity config for container"
116-
default = {
117-
"debezium" = {
118-
image = "debezium/connect:1.9",
119-
cpu = "4",
120-
memory = "2"
121-
}
122-
}
123-
}
124-
12539
# MSSQL
12640
variable "mssql_server_name" {
12741
type = string
@@ -152,7 +66,7 @@ variable "sql_azure_ad_admin_login" {
15266
default = null
15367
}
15468

155-
variable "sql_azure_ad_admin_object_id" {
69+
variable "demos_sql_azure_ad_object_id" {
15670
type = string
15771
description = "The login username of the Azure AD Administrator of this SQL Server."
15872
default = null

0 commit comments

Comments
 (0)