-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
117 lines (88 loc) · 2.27 KB
/
variables.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
107
108
109
110
111
112
113
114
115
116
117
# Locals
locals {
# Common tags to be assigned to all resources
common_tags = {
"Project" = var.tag_project
"Environment" = terraform.workspace
"ManagedBy" = var.tag_managed_by
}
# Terraform
environment_qualifier = terraform.workspace != "prod" ? " (${upper(terraform.workspace)})" : ""
# Universal Viewer
viewer_hostnames = {
dev = "bfinationalarchiveviewer-dev.bfi.org.uk"
prod = "bfinationalarchiveviewer.bfi.org.uk"
}
viewer_base_uri = "https://${local.viewer_hostnames[terraform.workspace]}"
# Media Player
player_hostnames = {
prod = "collections-online.dpi.bfi.org.uk"
}
player_base_uri = "https://${local.player_hostnames[terraform.workspace]}"
# Auth0
auth0_tenant_name = "British Film Institute${local.environment_qualifier}"
auth0_hostnames = {
dev = "bfi-iiif-dev.eu.auth0.com",
prod = "bfi-iiif.eu.auth0.com"
}
auth0_base_uri = "https://${local.auth0_hostnames[terraform.workspace]}"
auth0_email_address = "${var.auth0_email_from_user}@${var.auth0_email_from_domain}"
}
# Tags
variable "tag_project" {
default = "Identity"
}
variable "tag_managed_by" {
default = "Terraform"
}
# Auth0
variable "auth0_support_address" {
default = "help@bfi.org.uk"
}
variable "auth0_support_url" {
default = "https://www.bfi.org.uk/contact-us"
}
variable "auth0_universal_login_primary_colour" {
default = "#000000"
}
variable "auth0_universal_login_background_colour" {
default = "#FFFFFF"
}
variable "auth0_email_from_user" {
default = "collectionssystems"
}
variable "auth0_email_from_domain" {
default = "bfi.org.uk"
}
variable "auth0_email_smtp_host" {
}
variable "auth0_email_smtp_port" {
default = 587
}
variable "auth0_email_smtp_username" {
}
variable "auth0_email_smtp_password" {
}
variable "auth0_password_policy" {
default = "excellent" # none, low, fair, good, excellent
}
variable "auth0_password_min_length" {
default = 12
}
variable "auth0_password_dictionary_enabled" {
default = true
}
variable "auth0_password_dictionary" {
default = [
"bfi", "british", "film", "institute"
]
}
variable "auth0_no_personal_info_enabled" {
default = true
}
variable "auth0_password_history_enabled" {
default = true
}
variable "auth0_password_history_size" {
default = 5
}