diff --git a/scripts/taskdef/mediator-taskdef.json b/scripts/taskdef/mediator-taskdef.json new file mode 100644 index 0000000..e0a9247 --- /dev/null +++ b/scripts/taskdef/mediator-taskdef.json @@ -0,0 +1,50 @@ +{ + "family": "${FAMILY}", + "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/${FAMILY}", + "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" +}