-
Notifications
You must be signed in to change notification settings - Fork 1
/
tasks.tf
39 lines (36 loc) · 1.32 KB
/
tasks.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
resource "aws_ecs_task_definition" "smtp" {
family = "smtp"
container_definitions = "${data.template_file.smtp_task.rendered}"
task_role_arn = "${aws_iam_role.ecs_role.arn}"
execution_role_arn = "${aws_iam_role.ecs_role.arn}"
network_mode = "awsvpc"
requires_compatibilities = ["FARGATE"]
cpu = 256
memory = 512
depends_on = ["aws_iam_role.ecs_role", "data.template_file.smtp_task"]
}
resource "aws_ecs_task_definition" "memcached" {
family = "memcached"
container_definitions = "${data.template_file.memcached_task.rendered}"
task_role_arn = "${aws_iam_role.ecs_role.arn}"
execution_role_arn = "${aws_iam_role.ecs_role.arn}"
network_mode = "awsvpc"
requires_compatibilities = ["FARGATE"]
cpu = 256
memory = 512
depends_on = ["aws_iam_role.ecs_role", "data.template_file.memcached_task"]
}
resource "aws_ecs_task_definition" "sentry-web" {
family = "sentry-web"
container_definitions = "${data.template_file.web_task.rendered}"
task_role_arn = "${aws_iam_role.ecs_role.arn}"
execution_role_arn = "${aws_iam_role.ecs_role.arn}"
network_mode = "awsvpc"
requires_compatibilities = ["FARGATE"]
cpu = 1024
memory = 2048
volume{
name = "sentry-data"
}
depends_on = ["aws_iam_role.ecs_role", "data.template_file.web_task"]
}