-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvariables.tf
More file actions
142 lines (118 loc) · 3.72 KB
/
variables.tf
File metadata and controls
142 lines (118 loc) · 3.72 KB
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
variable "deploy_infra" {
description = "The foundational layer of infrastructure for the application to run on"
type = bool
default = true
}
variable "deploy_container_apps" {
description = "Deploy the container app to the foundational infra"
type = bool
default = true
}
variable "app_short_name" {
description = "Application short name (6 characters)"
type = string
}
variable "environment" {
description = "Application environment name"
type = string
}
variable "env_config" {
description = "Environment configuration. Different environments may share the same environment config and the same infrastructure"
type = string
}
variable "hub" {
description = "Hub name (dev or prod)"
type = string
}
variable "docker_image" {
description = "Docker image full path including registry, repository and tag"
type = string
}
variable "hub_subscription_id" {
description = "ID of the hub Azure subscription"
type = string
}
variable "vnet_address_space" {
description = "VNET address space. Must be unique across the hub."
type = string
}
variable "fetch_secrets_from_app_key_vault" {
description = <<EOT
Set to false initially to create and populate the app key vault.
Then set to true to let the container app read secrets from the key vault."
EOT
default = false
type = bool
}
variable "protect_keyvault" {
description = "Ability to recover the key vault or its secrets after deletion"
default = true
type = bool
}
variable "postgres_backup_retention_days" {
description = "The number of days to retain backups for the PostgreSQL Flexible Server."
type = number
default = 30
}
variable "postgres_geo_redundant_backup_enabled" {
description = "Whether geo-redundant backup is enabled for the PostgreSQL Flexible Server."
type = bool
default = true
}
variable "deploy_database_as_container" {
description = "Whether to deploy the database as a container or as an Azure postgres flexible server."
type = bool
default = false
}
variable "postgres_sku_name" {
description = "Value of the PostgreSQL Flexible Server SKU name"
default = "B_Standard_B1ms"
type = string
}
variable "postgres_storage_mb" {
description = "Value of the PostgreSQL Flexible Server storage in MB"
default = 32768
type = number
}
variable "postgres_storage_tier" {
description = "Value of the PostgreSQL Flexible Server storage tier"
default = "P4"
type = string
}
variable "enable_entra_id_authentication" {
description = "Enable authentication for the container app. If true, the app will use Azure AD authentication."
type = bool
default = false
}
variable "use_apex_domain" {
description = "Use apex domain for the Front Door endpoint. Set to true for production."
type = bool
default = false
}
variable "dns_zone_name" {
description = "Value of the DNS zone name to use for the Front Door endpoint"
type = string
default = ""
}
variable "features" {
description = "Feature flags for the deployment"
type = object({
front_door = optional(bool, true)
hub_and_spoke = optional(bool, true)
private_networking = optional(bool, true)
})
}
variable "front_door_profile" {
description = "Name of the front door profile created for this application in the hub subscription"
type = string
default = null
}
variable "seed_demo_data" {
description = "Whether or not to seed the demo data in the database."
type = bool
default = false
}
locals {
region = "uksouth"
resource_group_name = "rg-${var.app_short_name}-${var.env_config}-uks"
}