-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
58 lines (52 loc) · 1.66 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
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "=3.95.0"
}
}
required_version = "1.7.4"
}
provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "rg_sl_prod" {
name = "rg-sl-prod"
location = "West US"
}
locals {
vincent_mahnke = {
full_name = "Vincent Mahnke"
initials = join("", [for x in split(" ", "Vincent Mahnke") : lower(substr(x, 0, 1))])
tenant_id = "41eb501a-f671-4ce0-a5bf-b64168c3705f"
object_id = "7dac8181-b972-4612-8738-094828b1a3ff"
phone_country_code = "49"
phone_number = "1721358162"
email_address = "[email protected]"
}
top_level_domain = "studio-lovelies.com"
}
module "application_insights" {
source = "./application_insights"
resource_group = azurerm_resource_group.rg_sl_prod
}
module "website" {
source = "./website"
top_level_domain = local.top_level_domain
resource_group = azurerm_resource_group.rg_sl_prod
alerted_user = local.vincent_mahnke
application_insights_connection_string = module.application_insights.connection_string
secrets = {
discord_webhook_url = var.discord_webhook_url
smtp_host = var.smtp_host
smtp_port = var.smtp_port
smtp_username = var.smtp_username
smtp_password = var.smtp_password
smtp_from = var.smtp_from
}
}
module "networking" {
source = "./networking"
resource_group = azurerm_resource_group.rg_sl_prod
web_app = module.website.web_app
}