-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
116 lines (104 loc) · 2.95 KB
/
variables.tf
File metadata and controls
116 lines (104 loc) · 2.95 KB
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
variable "AmiName" {
default = "ixnetworkweb-ami-26-0-2601-56-9a24b482-4431-4f1c-806a-fb54f21acf51"
description = "AMI name used for deploying instances"
type = string
}
variable "AmiOwner" {
default = "aws-marketplace"
description = "Owner of AMI used for deploying instances"
type = string
}
variable "Eth0SecurityGroupId" {
description = "Id of the security group associated with first network interface"
type = string
}
variable "Eth0SubnetId" {
description = "Id of the subnet associated with the first network interface"
type = string
}
variable "InstanceId" {
default = "app"
description = "Id of the instance of this module that ensures uniqueness"
type = string
}
variable "InstanceName" {
default = null
description = "Custom instance name used to override the default automatically generated name"
type = string
}
variable "InstanceType" {
default = "t3.xlarge"
description = "Instance type of VM"
type = string
validation {
condition = contains([ "t3.xlarge", "t3.2xlarge",
"t3a.xlarge", "t3a.2xlarge",
"m6i.xlarge", "m6i.2xlarge",
"m6a.xlarge", "m6a.2xlarge",
"m6in.xlarge", "m6in.2xlarge",
"m5.xlarge", "m5.2xlarge",
"m5a.xlarge", "m5a.2xlarge",
"m5n.xlarge", "m5n.2xlarge",
"c6i.xlarge", "c6i.2xlarge",
"c6a.xlarge", "c6a.2xlarge",
"c6in.xlarge", "c6in.2xlarge",
"c5.xlarge", "c5.2xlarge",
"c5a.xlarge", "c5a.2xlarge",
"c5n.xlarge", "c5n.2xlarge"
], var.InstanceType)
error_message = <<EOF
InstanceType must be one of the following types:
t3a.xlarge, t3a.2xlarge,
m6i.xlarge, m6i.2xlarge,
m6a.xlarge, m6a.2xlarge,
m6in.xlarge, m6in.2xlarge,
m5.xlarge, m5.2xlarge,
m5a.xlarge, m5a.2xlarge,
m5n.xlarge, m5n.2xlarge,
c6i.xlarge, c6i.2xlarge,
c6a.xlarge, c6a.2xlarge,
c6in.xlarge, c6in.2xlarge,
c5.xlarge, c5.2xlarge,
c5a.xlarge, c5a.2xlarge,
c5n.xlarge, c5n.2xlarge
EOF
}
}
variable "SleepDelay" {
default = "7m"
description = "Time duration to delay to allow application to perform internal initialization required before use"
type = string
}
variable "Tag" {
default = "ixnetwork"
description = "App ID tag of application using the deployment"
type = string
}
variable "UserEmailTag" {
default = "terraform@example.com"
description = "Email address tag of user creating the deployment"
type = string
validation {
condition = length(var.UserEmailTag) >= 14
error_message = "UserEmailTag minimum length must be >= 14."
}
}
variable "UserLoginTag" {
default = "terraform"
description = "Login ID tag of user creating the deployment"
type = string
validation {
condition = length(var.UserLoginTag) >= 4
error_message = "UserLoginTag minimum length must be >= 4."
}
}
variable "UserProjectTag" {
default = "module"
description = "Project tag of user creating the deployment"
type = string
}
variable "Version" {
default = "26.0.0"
description = "Versioning of the application using the deployment"
type = string
}