-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
73 lines (64 loc) · 1.25 KB
/
variables.tf
File metadata and controls
73 lines (64 loc) · 1.25 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
variable "ami" {
type = string
description = "AMI For Creating Ec2"
}
variable "instance_type" {
type = string
description = "Instance Type Of ec2"
}
variable "key_name" {
type = string
description = "Key Pair to be used for ec2"
}
variable "availability_zone" {
type = string
description = "AZ of ec2"
}
variable "ec2count" {
type = number
default = 1
description = "Number aws_instances to be created"
}
variable "vpc_id" {
type = string
description = "VPC Id of S.G"
default = null
}
variable "subnet_id" {
type = string
description = "Specify Subnet Id of ec2"
default = null
}
variable "tags" {
type = map(string)
description = "common tags"
}
variable "ec2_name" {
type = string
description = "Name of the ec2 instance"
}
variable "sg_name" {
type = string
description = "SG Name"
}
variable "sg_description" {
type = string
description = "SG Description"
}
variable "sg_inbound_rules" {
type = list(object({
from_port = number,
to_port = number
protocol = string
description = string
cidr_blocks = list(string)
}))
default = [{
from_port = 22
to_port = 22
protocol = "tcp"
description = "Allow SSH Port"
cidr_blocks = ["0.0.0.0/0"]
}
]
}