-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvariables.tf
77 lines (60 loc) · 1.47 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
##############
# Common Vars
##############
variable "prefix" {
type = string
description = "(optional) prefix for basic network infra"
default = "default"
}
variable "tags" {
type = map(string)
description = "(optional) the key/value pairs to associate with the VPC and Subnet"
}
###########
# VPC Vars
###########
variable "snat_enable" {
type = bool
description = "(optional) SNAT should be used or not"
default = false
}
variable "vpc_cidr" {
type = string
description = "(required) IP range for the VPC"
}
##############
# Subnet Vars
##############
variable "subnet_cidr" {
type = string
description = "(required) IP range for the subnet"
}
variable "gateway_ip" {
type = string
description = "(required) gateway of the subnet"
}
variable "dns_nameservers" {
type = list(string)
description = "(optional) an array of DNS name servers used by hosts in the subnet"
default = [
"100.125.4.25",
"8.8.8.8"
]
}
variable "ntp_addresses" {
type = list(string)
description = "(optional) an array of NTP server addresses configured for the subnet"
default = [
"10.100.0.33",
"10.100.0.34"
]
}
variable "availability_zone" {
type = string
description = "(optional) the availability zone (AZ) to which the subnet belongs"
default = "eu-de-01"
}
variable "dhcp_enable" {
type = bool
description = "(optional) DHCP function is enabled for the subnet"
}