-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
126 lines (99 loc) · 2.2 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
variable "access_key" {
description = " The AWS access key"
default = "<access_key>"
}
variable "secret_key" {
description = "The AWS secret key"
default = "<secret_key>"
}
variable "ssh_key_name" {
description = "default ssh key name"
default = "<ssh_key_name>"
}
variable "region" {
type = "string"
description = "The AWS region"
default = "eu-west-1"
}
variable "default_ami_id" {
description = "ami id for instance"
default = "ami-11b2dd62"
}
variable "default_instance_type" {
description = "instace type"
default = "t2.micro"
}
variable "default_availability_zone" {
description = "default_availability_zone name"
default = "eu-west-1a"
}
variable "default_cookbooks_list" {
type = "list"
description = "list of default cookbooks"
default = ["timezone-ii", "opsworks_route53", "opsworks_hostname", "opsworks_resolvconf"]
}
# rds variables
variable "identifier" {
default = "mydb-rds"
description = "Identifier for your DB"
}
variable "storage" {
default = "10"
description = "Storage size in GB"
}
variable "engine" {
default = "postgres"
description = "Engine type, example values mysql, postgres"
}
variable "engine_version" {
description = "Engine version"
default = {
mysql = "5.6.22"
postgres = "9.4.1"
}
}
variable "instance_class" {
default = "db.t2.micro"
description = "Instance class"
}
variable "db_name" {
default = "awesomeapi"
description = "db name"
}
variable "username" {
default = "myuser"
description = "User name"
}
variable "password" {
description = "password, provide through your ENV variables"
default = "sureshptest"
}
# elasticache variables
variable "project" {
default = "olacabs"
}
variable "environment" {
default = "production"
}
variable "parameter_group" {
default = "default.redis3.2"
}
variable "desired_clusters" {
default = "1"
}
variable "instance_type" {
default = "cache.t2.micro"
}
variable "engine_version_ec" {
default = "3.2.4"
}
variable "automatic_failover_enabled" {
default = false
}
variable "alarm_cpu_threshold" {
default = "75"
}
variable "alarm_memory_threshold" {
# 10MB
default = "10000000"
}