-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
51 lines (44 loc) · 1.34 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
# Input Variables
# https://www.terraform.io/language/values/variables
variable "name" {
description = "Name of the network to create"
type = string
default = "osinfra-vpc"
}
variable "project" {
description = "The ID of the project in which the resource belongs"
type = string
}
variable "rules" {
description = "List of firewall rule definitions"
type = list(object({
allow = optional(list(object({
ports = list(string)
protocol = string
})), [])
deny = optional(list(object({
ports = list(string)
protocol = string
})), [])
description = optional(string)
direction = string
log_config_enabled = optional(bool, true)
log_config_metadata = optional(string, "INCLUDE_ALL_METADATA")
name = string
priority = optional(number)
ranges = optional(list(string))
source_tags = optional(list(string))
target_tags = optional(list(string))
}))
default = []
}
variable "shared_vpc" {
description = "Enable VPC sharing"
type = bool
default = false
}
variable "shared_vpc_service_projects" {
description = "The set of service projects to attach to the shared VPC"
type = set(string)
default = []
}