/
variables.tf
89 lines (73 loc) · 1.77 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
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
variable "ami" {
type = string
description = "AMI ID to use for EC2 instances"
}
variable "git_url" {
type = string
description = "URL to git clone for ssh-based cloning"
}
variable "infra_env" {
type = string
description = "infrastructure environment"
}
variable "infra_role" {
type = string
description = "Server role, e.g. http vs queue"
default = "http"
}
variable "instance_type" {
type = string
description = "EC2 instance type, e.g. t3.large"
}
variable "security_groups" {
type = list(string)
description = "Security groups to assign the servers"
}
variable "ssh_key_name" {
type = string
description = "Name of the EC2 key pair"
}
variable "tags" {
type = map(string)
default = {}
description = "launch template tags"
}
variable "instance_tags" {
type = map(string)
default = {}
description = "tags for the ec2 instances"
}
variable "volume_tags" {
type = map(string)
default = {}
description = "tags for the ebs volumes attached to instances"
}
variable "asg_subnets" {
type = list(string)
description = "list of private subnet ID's to allow ASG to place instances"
}
variable "alb_subnets" {
type = list(string)
default = []
description = "list of public subnet ID's to allow the load balancer to use"
}
variable "vpc_id" {
type = string
description = "vpc to add ALB into"
}
variable "artifact_bucket" {
type = string
description = "Application artifact bucket"
}
variable "min_size" {
type = number
description = "ASG minimum size"
}
variable "max_size" {
type = number
description = "ASG maximum size"
}
variable "desired_capacity" {
type = number
description = "ASG desired capacity"
}