-
Notifications
You must be signed in to change notification settings - Fork 47
/
variables.tf
99 lines (81 loc) · 2.05 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
################################
###### QUICK EDIT'S HERE ######
################################
###### CLUSTER OPTIONS ######
# Customize the Cluster Name
variable "cluster_name" {
description = "ECS Cluster Name"
default = "web-app"
}
# Customize your ECR Registry Name
variable "app_repository_name" {
description = "ECR Repository Name"
default = "web-app"
}
###### APPLICATION OPTIONS ######
variable "container_name" {
description = "Container app name"
default = "micro-api"
}
# Number of containers
variable "desired_tasks" {
description = "Number of containers desired to run app task"
default = 2
}
variable "min_tasks" {
description = "Minimum"
default = 2
}
variable "max_tasks" {
description = "Maximum"
default = 4
}
variable "cpu_to_scale_up" {
description = "CPU % to Scale Up the number of containers"
default = 80
}
variable "cpu_to_scale_down" {
description = "CPU % to Scale Down the number of containers"
default = 30
}
# Desired CPU
variable "desired_task_cpu" {
description = "Desired CPU to run your tasks"
default = "256"
}
# Desired Memory
variable "desired_task_memory" {
description = "Desired memory to run your tasks"
default = "512"
}
# Listener Application Load Balancer Port
variable "alb_port" {
description = "Origin Application Load Balancer Port"
default = "80"
}
# Target Group Load Balancer Port
variable "container_port" {
description = "Destination Application Load Balancer Port"
default = "80"
}
###### GITHUB OPTIONS ######
# Github Repository Owner
variable "git_repository_owner" {
description = "Github Repository Owner"
default = "msfidelis"
}
# Github Repository Project Name
variable "git_repository_name" {
description = "Project name on Github"
default = "micro-api"
}
# Default Branch
variable "git_repository_branch" {
description = "Github Project Branch"
default = "master"
}
# Customize your AWS Region
variable "aws_region" {
description = "AWS Region for the VPC"
default = "us-east-1"
}