Making it possible to run one-off square

This commit is contained in:
2022-09-15 09:20:17 -07:00
parent 46cfb440ef
commit 8130f89d91
8 changed files with 380 additions and 51 deletions

View File

@@ -37,6 +37,18 @@ resource "aws_ecs_task_definition" "integreat_background_worker" {
task_role_arn = var.task_role_arn
}
resource "aws_ecs_task_definition" "square_import_job" {
family = "square_import_job_${var.stage}"
container_definitions = file("${var.stage}-square-import-job-taskdef.json")
memory = 8192
cpu = 2048
network_mode = "awsvpc"
requires_compatibilities = ["FARGATE"]
execution_role_arn = var.execution_role_arn
task_role_arn = var.task_role_arn
}
resource "aws_ecs_service" "integreat_app" {
name = "integreat_app_${var.stage}"
cluster = var.ecs_cluster