-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
76 lines (60 loc) · 2.81 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
variable "project_id" {
type = string
default = "playground-s-11-f81e0589"
}
variable "credentials_file_path" {
type = string
default = "playground-s-11-f81e0589-4903e00b13ea.json"
}
variable "region" {
type = string
default = "us-central1"
}
variable "main_zone" {
type = string
default = "us-central1-b"
}
#============================= SUBNETWORKS VARIABLES ===================================
#--------------------------------- PRESENTATION ----------------------------------------
variable "presentation_ip_range" {
description = "IP range of Presentation subnetwork"
type = string
default = "10.1.0.0/16"
}
#--------------------------------- APPLICATION -----------------------------------------
variable "application_ip_range" {
description = "IP range of Application subnetwork"
type = string
default = "10.2.0.0/16"
}
#----------------------------------- DATABASE ------------------------------------------
variable "database_ip_range" {
description = "IP range of Database subnetwork"
type = string
default = "10.3.0.0/16"
}
#================================== ROUTES VARIABLE ====================================
variable "igw_destination" {
description = "The destination range of outgoing packets that this route applies to. Only IPv4 is supported"
type = string
default = "0.0.0.0/0"
}
#============================ FIREWALL RULES VARIABLES =================================
#------------------------------ PRESENTATION FIREWALL ----------------------------------
variable "presentation_firewall_ranges" {
description = "If direction <INGRESS> are specified, the firewall will apply only to traffic that has source IP address in these ranges. If direction <EGRESS> are specified, the firewall will apply only to traffic that has destination IP address in these ranges."
type = list(string)
default = ["0.0.0.0/0"]
}
#------------------------------ APPLICATION FIREWALL -----------------------------------
variable "application_firewall_ranges" {
description = "If direction <INGRESS> are specified, the firewall will apply only to traffic that has source IP address in these ranges. If direction <EGRESS> are specified, the firewall will apply only to traffic that has destination IP address in these ranges."
type = list(string)
default = ["10.0.1.0/24"]
}
#------------------------------ DATABASE FIREWALL --------------------------------------
variable "database_firewall_ranges" {
description = "If direction <INGRESS> are specified, the firewall will apply only to traffic that has source IP address in these ranges. If direction <EGRESS> are specified, the firewall will apply only to traffic that has destination IP address in these ranges."
type = list(string)
default = ["10.0.2.0/24"]
}