From ca6ed8bdefd6dba25e37d207552a651a336cbd3a Mon Sep 17 00:00:00 2001 From: Wai Lin Oo <41633762+wailinoo1@users.noreply.github.com> Date: Thu, 8 Feb 2024 10:04:11 +0630 Subject: [PATCH] Create task-definition.json --- .aws/task-definition.json | 47 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .aws/task-definition.json diff --git a/.aws/task-definition.json b/.aws/task-definition.json new file mode 100644 index 0000000..8a80f6d --- /dev/null +++ b/.aws/task-definition.json @@ -0,0 +1,47 @@ +{ + "family": "node", + "containerDefinitions": [ + { + "name": "node", + "image": "896836667748.dkr.ecr.ap-southeast-1.amazonaws.com/wlo-node:7811633309", + "cpu": 0, + "portMappings": [ + { + "name": "nodejs-8080", + "containerPort": 8080, + "hostPort": 8080, + "protocol": "tcp", + "appProtocol": "http" + } + ], + "essential": true, + "environment": [], + "environmentFiles": [], + "mountPoints": [], + "volumesFrom": [], + "ulimits": [], + "logConfiguration": { + "logDriver": "awslogs", + "options": { + "awslogs-create-group": "true", + "awslogs-group": "/ecs/node", + "awslogs-region": "ap-southeast-1", + "awslogs-stream-prefix": "ecs" + }, + "secretOptions": [] + } + } + ], + "taskRoleArn": "arn:aws:iam::896836667748:role/ecsTaskExecutionRole", + "executionRoleArn": "arn:aws:iam::896836667748:role/ecsTaskExecutionRole", + "networkMode": "awsvpc", + "requiresCompatibilities": [ + "FARGATE" + ], + "cpu": "1024", + "memory": "3072", + "runtimePlatform": { + "cpuArchitecture": "X86_64", + "operatingSystemFamily": "LINUX" + } +}