From 387df0e3ba326bcbe7dfd8be697f702ea825e27d Mon Sep 17 00:00:00 2001 From: "sahil.kamble@ayanworks.com" Date: Wed, 5 Jun 2024 19:31:02 +0530 Subject: [PATCH] added taskdef.json for mediator Signed-off-by: sahil.kamble@ayanworks.com --- taskdef/mediator-taskdef.json | 50 +++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 taskdef/mediator-taskdef.json diff --git a/taskdef/mediator-taskdef.json b/taskdef/mediator-taskdef.json new file mode 100644 index 0000000..eb4340e --- /dev/null +++ b/taskdef/mediator-taskdef.json @@ -0,0 +1,50 @@ +{ + "family": "DEV_MEDIATOR_TASKDEFINITION", + "containerDefinitions": [ + { + "name": "mediator", + "image": "%REPOSITORY_URI%:MEDIATOR_v_%BUILD_NUMBER%", + "cpu": 256, + "memory": 512, + "portMappings": [ + { + "name": "mediator-3000-tcp", + "containerPort": 3000, + "hostPort": 3000, + "protocol": "tcp", + "appProtocol": "http" + } + ], + "essential": true, + "environment": [], + "environmentFiles": [ + { + "value": "${S3_ARN}", + "type": "s3" + } + ], + "mountPoints": [], + "volumesFrom": [], + "ulimits": [], + "logConfiguration": { + "logDriver": "awslogs", + "options": { + "awslogs-create-group": "true", + "awslogs-group": "/ecs/DEV_MEDIATOR_TASKDEFINITION", + "awslogs-region": "me-central-1", + "awslogs-stream-prefix": "ecs" + } + } + } + + ], + + "executionRoleArn": "arn:aws:iam::${ACCOUNT_ID}:role/ecsTaskExecutionRole", + "networkMode": "awsvpc", + "placementConstraints": [], + "requiresCompatibilities": [ + "FARGATE" + ], + "cpu": "256", + "memory": "512" +}