-
Notifications
You must be signed in to change notification settings - Fork 2
/
vars.tf
98 lines (93 loc) · 2.93 KB
/
vars.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
##########################
## Networking Variables ##
##########################
variable "vpc_cidr" {
description = "CIDR block for the VPC to use"
default = "10.0.0.0/16"
}
variable "internet_cidr" {
description = "CIDR for internet access"
default = "0.0.0.0/0"
}
variable "az_count" {
description = "Number of AZs for an AWS region. This can be used as the subnet count also."
default = "2"
}
variable "public_subnet_count" {
description = "Number of public subnets for the VPC"
default = "2"
}
variable "private_subnet_count" {
description = "Number of private subnets for the VPC"
default = "2"
}
########################
## ECS Task Variables ##
########################
variable "role_arn" {
description = "The role arn that allows access to ECS and ECR"
default = "arn:aws:iam::540854239492:role/ecsTaskExecutionRole"
}
variable "task_network_mode" {
description = "The network mode in which the ECS task runs"
default = "awsvpc"
}
variable "token" {
description = "Token to connect to the Discord server"
}
variable "bot_family" {
description = "The effective name of the task definition"
default = "discord_bot"
}
variable "website_family" {
description = "The effective name of the task definition"
default = "website"
}
variable "game_family" {
description = "The effective name of the task definition"
default = "game"
}
variable "bot_image" {
description = "Docker image for discord-bot task in the ECS cluster"
default = "540854239492.dkr.ecr.us-west-2.amazonaws.com/eg-repo:latest"
}
variable "egeeio_image" {
description = "Docker image for egeeio-website task in the ECS cluster"
default = "540854239492.dkr.ecr.us-west-2.amazonaws.com/eg-website:latest"
}
variable "game_image" {
description = "Docker image for jumpdude-game task in the ECS cluster"
default = "540854239492.dkr.ecr.us-west-2.amazonaws.com/eg-jumper:latest"
}
variable "website_port" {
description = "Port for egeeio-website task to expose traffic to"
default = 4200
}
variable "game_port" {
description = "Port for jumpdude-game task to expose traffic to"
default = 8080
}
variable "discord_bot_cpu" {
description = "discord-bot task instance CPU units to provision (0.25 vCPU = 256 CPU units)"
default = "256"
}
variable "game_cpu" {
description = "game task instance CPU units to provision (0.25 vCPU = 256 CPU units)"
default = "256"
}
variable "website_cpu" {
description = "website task instance CPU units to provision (0.25 vCPU = 256 CPU units)"
default = "256"
}
variable "website_memory" {
description = "website task instance instance memory to provision in MiB"
default = "512"
}
variable "discord_bot_memory" {
description = "discord-bot task instance instance memory to provision in MiB"
default = "512"
}
variable "game_memory" {
description = "game task instance instance memory to provision in MiB"
default = "512"
}