-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.tf
69 lines (58 loc) · 1.72 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
terraform {
required_providers {
azuread = {
source = "hashicorp/azuread"
version = "2.47.0"
}
azurerm = {
source = "hashicorp/azurerm"
version = "3.94.0"
}
}
}
module "users" {
source = "./modules/users"
entraid_tenant_domain = var.entraid_tenant_domain
generic_password = var.generic_password
}
module "conditional_access" {
source = "./modules/conditional-access/mfa"
group_ids = module.users.group_ids
}
module "named_location" {
source = "./modules/conditional-access/named-location"
ip_ranges = var.conditional_policy_named_location_ips
}
module "access_review" {
count = var.create_access_review ? 1 : 0
source = "./modules/access-review"
entraid_tenant_domain = var.entraid_tenant_domain
}
module "custom_role_entra" {
source = "./modules/custom-roles/entra"
}
module "custom_role_azure_resource_manager" {
source = "./modules/custom-roles/arm"
}
resource "azurerm_resource_group" "lifecycleworkflow" {
name = "rg-lifecycleworkflow"
location = var.location
}
module "lifecycle_workflow" {
count = var.create_lcw ? 1 : 0
source = "./modules/lifecycle-workflow"
entraid_tenant_domain = var.entraid_tenant_domain
location = var.location
resource_group_name = azurerm_resource_group.lifecycleworkflow.name
}
# module "access_packages" {
# source = "./modules/access-packages"
# }
### Scenarios ###
module "scenario_adding_stuff_to_groups" {
source = "./modules/scenarios/adding-stuff-to-groups"
entraid_tenant_domain = var.entraid_tenant_domain
}
module "scenario_group_nesting" {
source = "./modules/scenarios/group-nesting"
}