-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathvariables.input.tf
More file actions
106 lines (91 loc) · 3.94 KB
/
Copy pathvariables.input.tf
File metadata and controls
106 lines (91 loc) · 3.94 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
variable "azure_devops_personal_access_token" {
description = "The personal access token for Azure DevOps"
type = string
sensitive = true
}
variable "azure_devops_organization_name" {
description = "The name of your Azure DevOps organization. This is the section of the url after 'dev.azure.com' or before '.visualstudio.com'. E.g. enter 'my-org' for 'https://dev.azure.com/my-org'"
type = string
}
variable "use_separate_repository_for_templates" {
description = "Controls whether to use a separate repository to store pipeline templates. This is an extra layer of security to ensure that the azure credentials can only be leveraged for the specified workload"
type = bool
default = true
}
variable "bootstrap_subscription_id" {
description = "Azure Subscription ID for the bootstrap resources (e.g. storage account, identities, etc). Leave empty to use the az login subscription"
type = string
default = ""
validation {
condition = var.bootstrap_subscription_id == "" ? true : can(regex("^[0-9a-fA-F-]{36}$", var.bootstrap_subscription_id))
error_message = "The bootstrap subscription ID must be a valid GUID"
}
}
variable "service_name" {
description = "Used to build up the default resource names (e.g. rg-<service_name>-mgmt-uksouth-001)"
type = string
default = "alz"
validation {
condition = can(regex("^[a-z0-9]+$", var.service_name))
error_message = "The service name must only contain lowercase letters and numbers"
}
}
variable "environment_name" {
description = "Used to build up the default resource names (e.g. rg-alz-<environment_name>-uksouth-001)"
type = string
default = "mgmt"
validation {
condition = can(regex("^[a-z0-9]+$", var.environment_name))
error_message = "The environment name must only contain lowercase letters and numbers"
}
}
variable "postfix_number" {
description = "Used to build up the default resource names (e.g. rg-alz-mgmt-uksouth-<postfix_number>)"
type = number
default = 1
}
variable "azure_devops_use_organisation_legacy_url" {
description = "Use the legacy Azure DevOps URL (<organisation>.visualstudio.com) instead of the new URL (dev.azure.com/<organization>). This is ignored if an fqdn is supplied for version_control_system_organization"
type = bool
default = false
}
variable "azure_devops_create_project" {
description = "Create the Azure DevOps project if it does not exist"
type = bool
default = true
}
variable "azure_devops_project_name" {
description = "The name of the Azure DevOps project to use or create for the deployment"
type = string
}
variable "use_self_hosted_agents" {
description = "Controls whether to use self-hosted agents for the pipelines"
type = bool
default = true
}
variable "azure_devops_agents_personal_access_token" {
description = "Personal access token for Azure DevOps self-hosted agents (the token requires the 'Agent Pools - Read & Manage' scope and should have the maximum expiry). Only required if 'use_self_hosted_runners' is 'true'"
type = string
sensitive = true
default = ""
}
variable "use_private_networking" {
description = "Controls whether to use private networking for the agent to storage account communication"
type = bool
default = true
}
variable "allow_storage_access_from_my_ip" {
description = "Allow access to the storage account from the current IP address. We recommend this is kept off for security"
type = bool
default = false
}
variable "apply_approvers" {
description = "Apply stage approvers to the action / pipeline, must be a list of SPNs separate by a comma (e.g. abcdef@microsoft.com,ghijklm@microsoft.com)"
type = list(string)
default = []
}
variable "create_branch_policies" {
description = "Controls whether to create branch policies for the repositories"
type = bool
default = true
}