-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathex_var.tf
49 lines (38 loc) · 937 Bytes
/
ex_var.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
#Ec2 variables
variable "ec2_instance_type" {
type = string
description = "The instance type of the ec2"
default = "t2.micro"
}
variable "instance_count" {
description = "Number of instances to provision."
type = number
default = 3
}
variable "ami_id" {
type = string
description = "The ami id of the ec2 in us-east-1"
default = "ami-0b5eea76982371e91"
}
variable "user_data_replace" {
default = true
}
#Webserver sg
variable "cidr_blocks" {
default = ["0.0.0.0/0"]
}
#VPC
variable "public_subnet" {
type = list(string)
default = []
}
variable "public_subnet_cidrs" {
type = list(string)
description = "Public Subnet CIDR values"
default = [] # ["172.31.32.0/20", "172.31.48.0/20", "172.31.64.0/20"]
}
variable "azs" {
type = list(string)
description = "Availability Zones"
default = ["us-east-1a", "us-east-1b", "us-east-1e"]
}