From def50e4a0872ca079f9f3bd7ca73e967bce1ab65 Mon Sep 17 00:00:00 2001 From: wyhong3103 Date: Sun, 18 Feb 2024 16:03:32 +0800 Subject: [PATCH] Add deploy to ecs job --- backend/task-definition.json | 46 ++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 backend/task-definition.json diff --git a/backend/task-definition.json b/backend/task-definition.json new file mode 100644 index 0000000..a122400 --- /dev/null +++ b/backend/task-definition.json @@ -0,0 +1,46 @@ +{ + "family": "sudoku-recognition", + "containerDefinitions": [ + { + "name": "sudoku-recognition", + "image": "445845167593.dkr.ecr.ap-southeast-2.amazonaws.com/sudoku-recognition:3fab393334f5abbc56cad23343fd1f1f0f1b2095", + "cpu": 0, + "portMappings": [ + { + "name": "sudoku-recognition-3030-tcp", + "containerPort": 3030, + "hostPort": 3030, + "protocol": "tcp", + "appProtocol": "http" + } + ], + "essential": true, + "environment": [], + "environmentFiles": [], + "mountPoints": [], + "volumesFrom": [], + "ulimits": [], + "logConfiguration": { + "logDriver": "awslogs", + "options": { + "awslogs-create-group": "true", + "awslogs-group": "/ecs/sudoku-recognition", + "awslogs-region": "ap-southeast-2", + "awslogs-stream-prefix": "ecs" + }, + "secretOptions": [] + } + } + ], + "executionRoleArn": "arn:aws:iam::445845167593:role/ecsTaskExecutionRole", + "networkMode": "bridge", + "requiresCompatibilities": [ + "EC2" + ], + "cpu": "1024", + "memory": "922", + "runtimePlatform": { + "cpuArchitecture": "X86_64", + "operatingSystemFamily": "LINUX" + } +} \ No newline at end of file