forked from appleboy/drone-terraform-in-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
154 lines (126 loc) · 3.02 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
variable "aws_access_key" {
description = "aws access key."
}
variable "aws_secret_key" {
description = "aws secret key."
}
variable "aws_region" {
description = "aws region."
default = "us-east-1"
}
variable "environment" {
default = "staging"
}
# Route53 root zone
variable "route53_zone" {
default = "test.com"
}
variable "identifier" {
default = "drone-rds"
description = "Identifier for your DB"
}
variable "storage" {
default = "10"
description = "Storage size in GB"
}
variable "engine" {
default = "mysql"
description = "Engine type, example values mysql, postgres"
}
variable "engine_version" {
description = "Engine version"
default = {
mysql = "5.7.21"
postgres = "9.6.8"
}
}
variable "instance_class" {
default = "db.t2.micro"
description = "Instance class"
}
variable "instance_type" {
description = "EC2 Instance Type."
default = "t2.micro"
}
variable "db_name" {
default = "drone"
description = "db name"
}
variable "username" {
default = "drone"
description = "database user name"
}
variable "amis" {
type = "map"
#
# Launching an Amazon ECS Container Instance
# https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html
#
default = {
us-east-2 = "ami-956e52f0"
us-east-1 = "ami-5253c32d"
us-west-2 = "ami-d2f489aa"
us-west-1 = "ami-6b81980b"
eu-west-2 = "ami-3622cf51"
eu-west-3 = "ami-ca75c4b7"
eu-west-1 = "ami-c91624b0"
eu-central- = "ami-10e6c8fb"
ap-northeast-2 = "ami-7c69c112"
ap-northeast-1 = "ami-f3f8098c"
ap-southeast-2 = "ami-bc04d5de"
ap-southeast-1 = "ami-b75a6acb"
ca-central-1 = "ami-da6cecbe"
ap-south-1 = "ami-c7072aa8"
sa-east-1 = "ami-a1e2becd"
us-gov-west-1 = "ami-03920462"
}
}
variable "alb_port" {
description = "ALB frond end port"
default = "80"
}
variable "task_cpu" {
description = "cpu usage of ecs task"
default = "512"
}
variable "task_memory" {
description = "memory usage of ecs task"
default = "1024"
}
variable "container_cpu" {
description = "cpu usage of ecs container"
default = "128"
}
variable "container_memory" {
description = "memory usage of ecs container"
default = "512"
}
variable "drone_server_port" {
description = "drone server port."
default = "8000"
}
variable "drone_agent_port" {
description = "drone agent comunicate port."
default = "9000"
}
variable "drone_github_client" {
description = "drone github client."
}
variable "drone_github_secret" {
description = "drone github secret."
}
variable "drone_secret" {
description = "drone secret."
default = "1234567890"
}
variable "drone_version" {
description = "drone version."
default = "0.8"
}
variable "drone_desired_count_agent" {
description = "drone agent desired."
default = "2"
}
variable "ssh_public_key" {
description = "The public key material. SSH public key file format as specified in RFC4716"
}