mirror of
https://github.com/StanGirard/quivr.git
synced 2024-09-11 13:15:41 +03:00
feat(chat-service): added task definition
This commit is contained in:
parent
b894f8e7e5
commit
d001ec70df
102
.aws/task_definition_preview-chat.json
Normal file
102
.aws/task_definition_preview-chat.json
Normal file
@ -0,0 +1,102 @@
|
|||||||
|
{
|
||||||
|
"taskDefinitionArn": "arn:aws:ecs:eu-west-3:253053805092:task-definition/quivr-preview-chat:1",
|
||||||
|
"containerDefinitions": [
|
||||||
|
{
|
||||||
|
"name": "quivr-chat",
|
||||||
|
"image": "253053805092.dkr.ecr.eu-west-3.amazonaws.com/quivr:600ff1ede02741c66853cc3e4e7f5001aaba3bc2",
|
||||||
|
"cpu": 0,
|
||||||
|
"portMappings": [
|
||||||
|
{
|
||||||
|
"name": "quivr-chat-5050-tcp",
|
||||||
|
"containerPort": 5050,
|
||||||
|
"hostPort": 5050,
|
||||||
|
"protocol": "tcp",
|
||||||
|
"appProtocol": "http"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"essential": true,
|
||||||
|
"command": [
|
||||||
|
"uvicorn",
|
||||||
|
"chat_service:app",
|
||||||
|
"--host",
|
||||||
|
"0.0.0.0",
|
||||||
|
"--port",
|
||||||
|
"5050"
|
||||||
|
],
|
||||||
|
"environment": [],
|
||||||
|
"environmentFiles": [
|
||||||
|
{
|
||||||
|
"value": "arn:aws:s3:::quivr-env-variables/preview.env",
|
||||||
|
"type": "s3"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"mountPoints": [],
|
||||||
|
"volumesFrom": [],
|
||||||
|
"logConfiguration": {
|
||||||
|
"logDriver": "awslogs",
|
||||||
|
"options": {
|
||||||
|
"awslogs-create-group": "true",
|
||||||
|
"awslogs-group": "/ecs/quivr-preview-chat",
|
||||||
|
"awslogs-region": "eu-west-3",
|
||||||
|
"awslogs-stream-prefix": "ecs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"family": "quivr-preview-chat",
|
||||||
|
"taskRoleArn": "arn:aws:iam::253053805092:role/ecsTaskExecutionRole",
|
||||||
|
"executionRoleArn": "arn:aws:iam::253053805092:role/ecsTaskExecutionRole",
|
||||||
|
"networkMode": "awsvpc",
|
||||||
|
"revision": 1,
|
||||||
|
"volumes": [],
|
||||||
|
"status": "ACTIVE",
|
||||||
|
"requiresAttributes": [
|
||||||
|
{
|
||||||
|
"name": "com.amazonaws.ecs.capability.logging-driver.awslogs"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ecs.capability.execution-role-awslogs"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "com.amazonaws.ecs.capability.ecr-auth"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.19"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ecs.capability.env-files.s3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "com.amazonaws.ecs.capability.task-iam-role"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ecs.capability.execution-role-ecr-pull"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.18"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ecs.capability.task-eni"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.29"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"placementConstraints": [],
|
||||||
|
"compatibilities": [
|
||||||
|
"EC2",
|
||||||
|
"FARGATE"
|
||||||
|
],
|
||||||
|
"requiresCompatibilities": [
|
||||||
|
"FARGATE"
|
||||||
|
],
|
||||||
|
"cpu": "256",
|
||||||
|
"memory": "512",
|
||||||
|
"runtimePlatform": {
|
||||||
|
"cpuArchitecture": "X86_64",
|
||||||
|
"operatingSystemFamily": "LINUX"
|
||||||
|
},
|
||||||
|
"registeredAt": "2023-08-18T09:01:56.187Z",
|
||||||
|
"registeredBy": "arn:aws:iam::253053805092:root",
|
||||||
|
"tags": []
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user