-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
72 lines (62 loc) · 1.51 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
# Company Name
variable "company_name" {
type = string
default = "Daves_Construction"
}
# US and Canada AZs
variable "locations" {
type = list(object({
east_us = string
east_us_2 = string
north_central_us = string
canada_east = string
}))
default = [{
east_us = "East US"
east_us_2 = "East US 2"
north_central_us = "North Central US"
canada_east = "Canada East"
}]
}
# Resource Group Name
variable "resource-group-name" {
type = string
default = "webserver-rg-lab01"
}
# Network Security Groups
variable "security-groups" {
type = list(string)
default = [
"gateway-subnet-sg",
"webserver-subnet-sg",
"database-subnet-sg"
]
}
# Virtual Network IPs
variable "vnet-ip-addresses" {
description = "The ip addresses used in the VNET."
type = list(object({
addresses_space = string
gateway_subnet_prefix = string
webserver_subnet_prefix = string
database_subnet_prefix = string
}))
default = [{
addresses_space = "10.0.0.0/16"
gateway_subnet_prefix = "10.0.1.0/24"
webserver_subnet_prefix = "10.0.2.0/24"
database_subnet_prefix = "10.0.3.0/24"
}]
}
variable "subnet-names" {
type = list(object({
gateway_subnet_name = string
webserver_subnet_name = string
database_subnet_name = string
}))
default = [{
gateway_subnet_name = "GatewaySubnet"
webserver_subnet_name = "webserver-subnet"
database_subnet_name = "database-subnet"
}]
}