-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.tf
131 lines (110 loc) · 3.91 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
126
127
128
129
130
131
/**
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
# -------------------------------------------------------------- #
# VARIABLES
# -------------------------------------------------------------- #
variable "project_id" {
type = string
description = "Project the resources will be deployed into."
}
variable "naming_prefix" {
type = string
description = "A prefix string to be appended in front of all deployed resources so they can be easily traced back."
}
variable "source_image" {
type = string
description = "Source image url path for the security appliance being deployed."
}
variable "region" {
type = string
default = "us-central1"
description = "The GCP Region for deployment."
}
variable "zones" {
type = list(string)
default = ["us-central1-a", "us-central1-b", "us-central1-c"]
description = "List of GCP Zones for deployment."
}
variable "traffic_subnet_cidr" {
type = string
default = "10.127.10.0/24"
description = "CIDR range of the subnet where the firewall VMs are inspecting traffic. This VPC will need to be peered to existing VPC's for packet-mirroring, so ensure it is a unique range for your organization."
}
variable "mgmt_network" {
type = string
default = "default"
description = "The name of an existing VPC that will be used for the management interface of the deployed firewall VMs."
}
variable "mgmt_subnet" {
type = string
default = "default"
description = "The name of an existing subnet within this VPC (and available for every chosen zone) that will be used for the management interface of the deployed firewall VMs."
}
variable "machine_type" {
type = string
default = "n1-standard-4"
description = "The machine type for the firewall compute instances."
}
variable "min_instances" {
type = number
default = 2
description = "Minimum compute instances in the cluster."
}
variable "max_instances" {
type = number
default = 3
description = "Maximum compute instances in the cluster."
}
variable "cpu_target" {
type = number
default = 0.75
description = "CPU target for autoscaling."
}
variable "compute_instance_metadata" {
type = map(string)
default = {}
description = "Key/value pairs that are made available within each VM instance."
}
variable "block_project_ssh_keys" {
type = bool
default = false
description = "Ability for customers to block or allow the use of project-wide ssh keys in their VM."
}
variable "create_public_management_ip" {
type = bool
default = false
description = "Allow the creation of a public IP address for the management interface of each VM. IP will be ephemeral instead of static."
}
variable "scopes" {
type = list(string)
default = []
description = "The list of access scopes for the service account attached to the VM."
}
variable "additional_disks" {
type = map(any)
default = {}
description = "Allow the creation of one or more additional persistent disks for the VM instance."
}
variable "health_check_port" {
type = number
default = 80
description = "Allow overriding of the default port for health check."
}
variable "add_protected_network" {
type = bool
default = false
description = "Allow the creation of a protected network interface for the instance template."
}