forked from valentinc94/aws-ecs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
94 lines (78 loc) · 1.86 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
variable "aws_region" {
description = "The AWS region things are created in"
default = "us-west-2"
}
variable "ecs_task_execution_role_name" {
description = "ECS task execution role name"
default = "myEcsTaskExecutionRole"
}
variable "ecs_auto_scale_role_name" {
description = "ECS auto scale role Name"
default = "myEcsAutoScaleRole"
}
variable "az_count" {
description = "Number of AZs to cover in a given region"
default = "2"
}
variable "app_image" {
description = "Docker image to run in the ECS cluster"
default = "nginx:latest"
}
variable "app_port" {
description = "Port exposed by the docker image to redirect traffic to"
default = 80
}
variable "app_count" {
description = "Number of docker containers to run"
default = 3
}
variable "health_check_path" {
default = "/"
}
variable "fargate_cpu" {
description = "Fargate instance CPU units to provision (1 vCPU = 1024 CPU units)"
default = "1024"
}
variable "fargate_memory" {
description = "Fargate instance memory to provision (in MiB)"
default = "2048"
}
variable "api_version" {
type = string
default = "latest"
description = "The api_version of the API"
}
variable "aws_account_id"{}
variable "aws_profile"{}
variable "aws_access_key"{}
variable "aws_secret_key"{}
variable "github_token" {
type = string
}
# development
variable "branch" {
type = string
description = "Branch of the GitHub repository, _e.g._ `master`"
default = "development"
}
# atua-back
variable "name" {
type = string
description = "Name of the application"
default = "atua-back"
}
variable "db_port" {
type = string
}
variable "db_name" {
type = string
}
variable "db_user" {
type = string
}
variable "db_password" {
type = string
}
variable "django_secret_key" {
type = string
}