forked from terraform-azurerm-examples/example-hub
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
77 lines (64 loc) · 1.89 KB
/
variables.tf
File metadata and controls
77 lines (64 loc) · 1.89 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
// Note that some of the .tf files also have variable and output blocks to make them individually complete
variable "subscription_id" {
description = "The subscription guid. Recommended when using service principals interactively."
type = string
default = ""
}
variable "hub" {
type = string
description = "Used for both the vnet and the resource group, and to prefix resources."
default = "hub"
}
variable "hub_vnet_address_space" {
description = "List of address spaces for the virtual network. One /24 address space is expected."
type = list(string)
default = ["10.0.0.0/24"]
}
variable "dns_servers" {
description = "Optional list of DNS server IP addresses."
type = list(string)
default = null
}
// -----------------------------------------------------------
variable "vpn_client" {
description = "Boolean to control creation of vpn_client_configuration block."
type = bool
default = false
}
variable "vpn_client_address_space" {
description = "List of address spaces for the vpn client."
type = list(string)
default = ["192.168.76.0/24"]
}
variable "vpn_client_cert" {
description = "Base 64 encoded X.509 PEM cert."
type = string
default = "base64_x509_caCert.pem"
}
variable "vpn_client_cert_name" {
description = "Description for the root cert."
type = string
default = "SelfSignedCertificate"
}
// -----------------------------------------------------------
variable "location" {
default = "West Europe"
}
variable "tags" {
type = object({
owner = string
business_unit = string
costcode = number
downtime = string
env = string
enforce = bool
})
default = {
owner = null
business_unit = null
costcode = null
downtime = null
env = null
enforce = null
}
}