-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
57 lines (49 loc) · 1.12 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
variable "instance_type" {
description = "Name of the project"
type = string
default = "t2.micro"
}
variable "key_name" {
description = "Name of the key pair"
type = string
default = "aws_access_key"
}
variable "public_instance_per_subnet" {
description = "Number of amazon linux host"
type = number
default = 3
}
variable "private_instance_per_subnet" {
description = "Number of amazon linux host"
type = number
default = 2
}
variable "private_key_location" {
description = "Location of the private key"
type = string
default = "/Users/shamimmd/.ssh/aws_access_key.pem"
}
variable "public_instance_sg_ports" {
description = "Define the ports and protocols for the security group"
type = list(any)
default = [
{
"port" : 22,
"protocol" : "tcp"
},
]
}
variable "private_instance_sg_ports" {
description = "Define the ports and protocols for the security group"
type = list(any)
default = [
{
"port" : 22,
"protocol" : "tcp"
},
{
"port" : -1,
"protocol" : "icmp"
}
]
}