Skip to content

Commit 20baf1a

Browse files
committed
Add healthchecks for pretix and pycon backend
1 parent 14ae2ec commit 20baf1a

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

infrastructure/applications/pretix/main.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,16 @@ resource "aws_ecs_task_definition" "pretix" {
165165
"awslogs-stream-prefix" = "pretix"
166166
}
167167
}
168+
169+
healthCheck = {
170+
retries = 3
171+
command = [
172+
"CMD-SHELL",
173+
"curl -f http://localhost/healthcheck/ || exit 1"
174+
]
175+
timeout = 3
176+
interval = 10
177+
}
168178
},
169179
])
170180

infrastructure/applications/pycon_backend/web_task.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ resource "aws_ecs_task_definition" "web" {
4949
retries = 3
5050
command = [
5151
"CMD-SHELL",
52-
"echo 1"
52+
"curl -f http://localhost:8000/health/ || exit 1"
5353
]
5454
timeout = 3
5555
interval = 10

0 commit comments

Comments
 (0)