-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.tf
51 lines (40 loc) · 1.65 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
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "=2.53.0"
}
}
}
provider "azurerm" {
features {
}
}
data "azurerm_client_config" "current" {}
resource "azurerm_resource_group" "resource_Group" {
name = var.resource_group_name
location = var.resource_group_location
}
module "application_insights" {
source = "./appinsights"
application_insights_name = var.application_insights_name
application_insights_location = azurerm_resource_group.resource_Group.location
resource_group_name = azurerm_resource_group.resource_Group.name
application_type = "web"
depends_on = [
azurerm_resource_group.resource_Group
]
}
module "keyvault" {
source = "./keyvault"
keyvault_name = var.keyvault_name
resource_group_name = azurerm_resource_group.resource_Group.name
keyvault_location = azurerm_resource_group.resource_Group.location
keyvault_tenant_id = data.azurerm_client_config.current.tenant_id
keyvault_owner_identifiers = var.keyvault_owner_identifiers
keyvault_applicationInsights_ConnectionString = module.application_insights.application_insights_connection_string
keyvault_applicationInsights_InstrumentationKey = module.application_insights.application_insights_instrumentation_key
depends_on = [
azurerm_resource_group.resource_Group
]
}