-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathvariables.tf
125 lines (103 loc) · 4.05 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
118
119
120
121
122
123
124
125
variable address_space {
default = "10.32.100.0/23"
}
variable application_name {
description = "Value of 'application' resource tag"
default = "Kubernetes"
}
variable application_owner {
description = "Value of 'owner' resource tag"
default = "" # Empty string takes objectId of current user
}
variable configure_access_control {
description = "Assumes the Terraform user is an owner of the subscription. Turning this off reduces functionality somewhat"
default = true
type = bool
}
variable configure_kubernetes {
type = bool
default = false
description = "Whether to configure Kubernetes using the Terraform Kubernetes provider"
}
variable deploy_aks {
type = bool
default = true
description = "Whether to deploy AKS & Kubernetes. False will deploy network infrastructure only."
}
variable deploy_bastion {
type = bool
default = false
description = "Whether to deploy managed bastion"
}
# Turn this off if you can't open required ports (65200-65535, ApplicationGatewaySubnetInboundTrafficBlockedByNetworkSecurityGroup)
# https://docs.microsoft.com/en-us/azure/application-gateway/configuration-infrastructure#network-security-groups
variable deploy_application_gateway {
type = bool
default = true
description = "Whether to deploy Application Gateway"
}
variable dns_host_suffix {
default = "mycicd"
}
variable kube_config_path {
description = "Path to the kube config file (e.g. .kube/config)"
default = ""
}
variable kubernetes_version {
default = ""
}
variable location {
description = "The location/region where the resources will be created."
default = "westeurope"
}
variable node_size {
default = "Standard_D2s_v3"
}
variable nsg_reassign_wait_minutes {
type = number
default = 0
}
variable peer_network_has_gateway {
type = bool
default = false
}
variable peer_network_id {
description = "Virtual network to be peered with. This is usefull to run Terraform from and be able to access a private API server."
default = ""
}
variable private_cluster_enabled {
type = bool
default = true
}
variable resource_prefix {
description = "The prefix to put in front of resource names created"
default = "k8s"
}
variable resource_suffix {
description = "The suffix to put at the of resource names created"
default = "" # Empty string triggers a random suffix
}
variable resource_environment {
description = "The logical environment (tier) resource will be deployed in"
default = "" # Empty string defaults to workspace name
}
variable run_id {
description = "The ID that identifies the pipeline / workflow that invoked Terraform"
default = ""
}
variable ssh_public_key_file {
type = string
default = "~/.ssh/id_rsa.pub"
}
variable subscription_id {
description = "Configure subscription_id independent from ARM_SUBSCRIPTION_ID"
default = null
}
variable tenant_id {
description = "Configure tenant_id independent from ARM_TENANT_ID"
default = null
}
variable workspace_location {
description = "The location/region where the monitoring workspaces will be created."
default = "westeurope"
}