-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
106 lines (94 loc) · 3.56 KB
/
main.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
terraform {
required_version = ">= 0.13"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">= 2.0"
}
azapi = {
source = "Azure/azapi"
version = ">= 1.0"
}
}
}
data "azurerm_client_config" "example" {}
module "resource_group" {
source = "./modules/resource_group"
deploy_namespace = var.deploy_namespace
environment = var.environment
}
module "identity" {
source = "./modules/identity"
deploy_namespace = var.deploy_namespace
environment = var.environment
deployment_id = var.deployment_id
resource_group_name = module.resource_group.resource_group_name
location = module.resource_group.location
resource_group_id = module.resource_group.resource_group_id
}
module "key_vault" {
source = "./modules/key_vault"
deploy_namespace = var.deploy_namespace
environment = var.environment
deployment_id = var.deployment_id
location = module.resource_group.location
resource_group_name = module.resource_group.resource_group_name
tenant_id = data.azurerm_client_config.example.tenant_id
}
module "storage" {
source = "./modules/storage"
deploy_namespace = var.deploy_namespace
environment = var.environment
deployment_id = var.deployment_id
location = module.resource_group.location
resource_group_name = module.resource_group.resource_group_name
}
module "data_factory" {
source = "./modules/data_factory"
deploy_namespace = var.deploy_namespace
environment = var.environment
deployment_id = var.deployment_id
location = module.resource_group.location
resource_group_name = module.resource_group.resource_group_name
}
module "purview" {
source = "./modules/purview"
deploy_namespace = var.deploy_namespace
environment = var.environment
deployment_id = var.deployment_id
location = module.resource_group.location
resource_group_name = module.resource_group.resource_group_name
}
module "databricks" {
source = "./modules/databricks"
environment = var.environment
deployment_id = var.deployment_id
deploy_namespace = var.deploy_namespace
resource_group_name = module.resource_group.resource_group_name
location = module.resource_group.location
sku = var.sku
infrastructure_encryption_enabled = var.infrastructure_encryption_enabled
customer_managed_key_enabled = var.customer_managed_key_enabled
managed_disk_cmk_rotation_to_latest_version_enabled = var.managed_disk_cmk_rotation_to_latest_version_enabled
public_network_access_enabled = var.public_network_access_enabled
is_private_endpoint = var.is_private_endpoint
tags = var.tags
}
# module "fabric_capacity" {
# source = "./modules/fabric_capacity"
# basename = var.deploy_namespace
# resource_group_id = module.resource_group.resource_group_id
# location = module.resource_group.location
# tags = var.tags
# admin_email = var.admin_email
# sku = var.fsku
# }
# module "azure_sql_db" {
# source = "./modules/azure_sql_db"
# deploy_namespace = var.deploy_namespace
# resource_group_name = module.resource_group.resource_group_name
# location = module.resource_group.location
# administrator_login = var.administrator_login
# administrator_login_password = var.administrator_login_password
# tags = var.tags
# }