-
Notifications
You must be signed in to change notification settings - Fork 10
/
variables.tf
executable file
·152 lines (129 loc) · 3.43 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
variable "instance_name" {
description = "Name of the ECS instance and the associated volume"
type = string
}
variable "instance_count" {
description = "Number of instances to launch"
default = 1
type = number
}
variable "new_eip" {
description = "Whether or not attach new Elastic IP (public IP) to ECS"
default = false
type = bool
}
variable "eip_bandwidth" {
description = "Bandwidth of the EIP in Mbit/s"
default = null
type = number
}
variable "existing_eip" {
description = "Existing IPs (public IPs) to be attached to ECS"
default = []
type = list(any)
}
variable "ext_net_name" {
description = "External network name (do not change)"
default = "admin_external_net"
type = string
}
variable "flavor_name" {
description = "The flavor type of instance to start"
type = string
}
variable "network_id" {
description = "The network ID to launch in"
type = string
default = ""
}
variable "network_name" {
description = "The network ID to launch in"
type = string
default = null
}
variable "subnet_id" {
description = "The subnet ID to launch in"
type = string
default = ""
}
variable "security_groups" {
description = "A list of security group IDs to associate with"
type = list(string)
}
variable "key_name" {
description = "The key pair name"
type = string
}
variable "availability_zone" {
description = "The availability zone to launch where"
type = string
}
variable "metadata" {
description = "A mapping of metadata to assign to the resource"
default = {}
type = map(string)
}
variable "tags" {
description = "A mapping of tags to assign to the resource"
default = {}
type = map(string)
}
variable "user_data" {
description = "The user data to provide when launching the instance"
default = ""
type = string
}
variable "dns_record" {
description = "Whether or not create a DNS record for these instances"
default = false
type = bool
}
variable "domain_id" {
description = "ID of the domain if dns_record is set to true"
default = ""
type = string
}
variable "domain_name" {
description = "Name of the domain if dns_record is set to true"
default = ""
type = string
}
variable "record_ttl" {
description = "TTL of the A record if dns_record is set to true"
default = "300"
type = number
}
variable "block_devices" {
description = "List of block devices to attach/create to the ECS instance(s)"
type = list(object({
uuid = string
source_type = string
destination_type = string
volume_size = number
volume_type = string
boot_index = number
delete_on_termination = bool
}))
}
variable "allowed_address_pairs" {
description = "Source/destination check configuration (1.1.1.1/0 for global disable source/destination checks, or list of subnet)"
default = []
type = list(object({
ip_address = string
mac_address = string
}))
}
variable "ip_address" {
description = "Fixed IP Address"
default = null
type = string
}
variable "scheduler_hints" {
description = "Provide the Nova scheduler with hints on how the instance should be launched"
default = []
type = list(object({
group = string
tenancy = string
deh_id = string
}))
}