-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
71 lines (53 loc) · 1.18 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
variable "aws_account" {}
variable "aws_region" {}
variable "environment_name" {}
variable "service_name" {}
variable "version_number" {}
variable "tier" {}
variable "vpc_name" {}
variable "asg_desired_capacity" {
default = "9"
}
variable "asg_max_size" {
default = "10"
}
variable "asg_min_size" {
default = "3"
}
variable "elb_access_logs_interval" {
// Can only be 5 or 60
default = 5
}
variable "image_id" {
default = {
us-east-1 = ""
}
}
variable "instance_type" {
default = "t2.medium"
}
variable "scaling_adjustment_down" {
default = "-1"
}
variable "scaling_adjustment_down_cooldown" {
default = "120"
}
variable "scaling_adjustment_up" {
default = "2"
}
variable "scaling_adjustment_up_cooldown" {
default = "120"
}
variable "uniq_id" {
default = ""
}
locals {
hostname = "${var.environment_name}-${var.service_name}-${data.terraform_remote_state.vpc.aws_region_shortname}"
resource_prefix = "${var.environment_name}-${var.service_name}"
common_tags = {
aws_account = "${var.aws_account}"
aws_region = "${var.aws_region}"
environment_name = "${var.environment_name}"
service_name = "${var.service_name}"
}
}