Skip to content

Commit

Permalink
update ecs task definition
Browse files Browse the repository at this point in the history
  • Loading branch information
linxiaoxin committed Sep 29, 2024
1 parent ba8fb51 commit 3e043ee
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions aws/task-definition.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"taskDefinitionArn": "arn:aws:ecs:ap-southeast-1:730335183958:task-definition/quemistry-ms-quiz:2",
"taskDefinitionArn": "arn:aws:ecs:ap-southeast-1:730335183958:task-definition/quemistry-ms-statistics:1",
"containerDefinitions": [
{
"name": "statistics_ms",
Expand All @@ -9,42 +9,36 @@
"memoryReservation": 512,
"portMappings": [
{
"name": "statistics_ms-8080-tcp",
"name": "statistics_ms-80-tcp",
"containerPort": 80,
"hostPort": 80,
"protocol": "tcp",
"appProtocol": "http"
}
],
"essential": true,
"environment": [],
"environmentFiles": [],
"mountPoints": [],
"volumesFrom": [],
"secrets": [
"environment": [
{
"name": "DB_URL",
"valueFrom": "arn:aws:ssm:ap-southeast-1:730335183958:parameter/cicd/prod/postgre/database/url"
},
{
"name": "DB_USER",
"valueFrom": "arn:aws:ssm:ap-southeast-1:730335183958:parameter/cicd/prod/postgre/database/quiz-ms/username"
"valueFrom": "arn:aws:ssm:ap-southeast-1:730335183958:parameter/cicd/prod/postgre/database/statistics-ms/username"
},
{
"name": "DB_PASSWORD",
"valueFrom": "arn:aws:ssm:ap-southeast-1:730335183958:parameter/cicd/prod/postgre/database/quiz-ms/password"
},
{
"name": "QUESTION_SERVICE_URL",
"valueFrom": "arn:aws:ssm:ap-southeast-1:730335183958:parameter/cicd/prod/api/question-ms/url"
"valueFrom": "arn:aws:ssm:ap-southeast-1:730335183958:parameter/cicd/prod/postgre/database/statistics-ms/password"
}
],
"ulimits": [],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "/ecs/quemistry-ms-quiz",
"awslogs-group": "/ecs/quemistry-ms-statistics",
"mode": "non-blocking",
"awslogs-create-group": "true",
"max-buffer-size": "25m",
"awslogs-region": "ap-southeast-1",
"awslogs-stream-prefix": "ecs"
},
Expand All @@ -53,10 +47,10 @@
"systemControls": []
}
],
"family": "quemistry-ms-quiz",
"executionRoleArn": "arn:aws:iam::730335183958:role/EcsFargateExecutionRole",
"family": "quemistry-ms-statistics",
"executionRoleArn": "arn:aws:iam::730335183958:role/ecsTaskExecutionRole",
"networkMode": "awsvpc",
"revision": 2,
"revision": 1,
"volumes": [],
"status": "ACTIVE",
"requiresAttributes": [
Expand All @@ -73,7 +67,7 @@
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.19"
},
{
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.21"
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.28"
},
{
"name": "ecs.capability.execution-role-ecr-pull"
Expand Down Expand Up @@ -103,4 +97,4 @@
"operatingSystemFamily": "LINUX"
},
"tags": []
}
}

0 comments on commit 3e043ee

Please sign in to comment.