-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathvariables.tf
More file actions
51 lines (43 loc) · 1.01 KB
/
variables.tf
File metadata and controls
51 lines (43 loc) · 1.01 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
variable "key_pair_create" {
description = "Create Key Pair"
type = bool
}
variable "key_pair_name" {
description = "Key Pair Name"
type = string
}
variable "security_group_create" {
description = "Create Security Group"
type = bool
}
variable "security_group_name" {
description = "Security Group Name"
type = string
}
variable "security_group_ingress_rules" {
description = "Security Group Ingress Rules"
type = map(object({
description = string
from_port = number
to_port = number
protocol = string
cidr_blocks = list(string)
}))
}
variable "security_group_egress_rule" {
description = "Security Group Egress Rule"
type = object({
from_port = number
to_port = number
protocol = string
cidr_blocks = list(string)
})
}
variable "instance_create" {
description = "Create EC2 Instance"
type = bool
}
variable "instance_type" {
description = "EC2 Instance Type"
type = string
}