-
Notifications
You must be signed in to change notification settings - Fork 20
/
variables.tf
121 lines (101 loc) · 2.77 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
#####################################################
# VPC
# Copyright 2020 IBM
#####################################################
variable "create_vpc" {
description = "True to create new VPC. False if VPC is already existing and subnets or address prefixies are to be added"
type = bool
default = true
}
#####################################################
# Optional Parameters
#####################################################
variable "vpc_name" {
description = "Name of the vpc"
type = string
default = null
}
variable "resource_group_id" {
description = "ID of resource group."
type = string
default = null
}
variable "default_address_prefix" {
description = "Default address prefix creation method"
type = string
default = "auto"
}
variable "default_network_acl_name" {
description = "Name of the Default ACL"
type = string
default = null
}
variable "default_security_group_name" {
description = "Name of the Default Security Group"
type = string
default = null
}
variable "default_routing_table_name" {
description = "Name of the Default Routing Table"
type = string
default = null
}
variable "vpc_tags" {
description = "List of Tags for the vpc"
type = list(string)
default = []
}
variable "address_prefixes" {
description = "List of Prefixes for the vpc"
type = list(object({
name = string
location = string
ip_range = string
}))
default = []
}
variable "locations" {
description = "zones per region"
type = list(string)
default = []
}
variable "subnet_name_prefix" {
description = "Prefix to the names of subnets"
type = string
default = null
}
variable "number_of_addresses" {
description = "Number of IPV4 Addresses"
type = number
default = null
}
variable "vpc" {
description = "Name of the Existing VPC to which subnets, gateways are to be attached, only used when `var.create_vpc` is false"
type = string
default = null
}
variable "create_gateway" {
description = "True to create new Gateway"
type = bool
default = false
}
variable "public_gateway_name_prefix" {
description = "Prefix to the names of the Public Gateways"
type = string
default = null
}
variable "floating_ip" {
description = "Floating IP `id`'s or `address`'es that you want to assign to the public gateway"
type = map(string)
default = {}
}
variable "gateway_tags" {
description = "List of Tags for the gateway"
type = list(string)
default = []
}
variable "clean_default_sg_acl" {
description = "Remove all rules from the default VPC security group and VPC ACL (less permissive)"
type = bool
default = false
}