Skip to content

Commit

Permalink
task-definition.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedkhaled4d committed Jan 26, 2024
1 parent 7015b17 commit 5c0a2d6
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 47 deletions.
46 changes: 0 additions & 46 deletions .aws/task-definition.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ env:
ECS_SERVICE: ${{ secrets.MY_ECS_SERVICE }} # set this to your Amazon ECS service name
ECS_CLUSTER: ${{ secrets.MY_ECS_CLUSTER }} # set this to your Amazon ECS cluster name
ECS_TASK_DEFINITION:
${{ secrets.MY_ECS_TASK_DEFINITION }} # set this to the path to your Amazon ECS task definition
task-definition.json # set this to the path to your Amazon ECS task definition
# file, e.g. .aws/task-definition.json
CONTAINER_NAME:
${{ secrets.MY_CONTAINER_NAME }} # set this to the name of the container in the
Expand Down
84 changes: 84 additions & 0 deletions task-definition.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"taskDefinitionArn": "arn:aws:ecs:eu-west-1:891377307981:task-definition/eayni-api:1",
"containerDefinitions": [
{
"name": "eayni-apps",
"image": "891377307981.dkr.ecr.eu-west-1.amazonaws.com/eayni-apps",
"cpu": 0,
"portMappings": [
{
"name": "8080",
"containerPort": 80,
"hostPort": 80,
"protocol": "tcp",
"appProtocol": "http"
}
],
"essential": true,
"environment": [
{
"name": "MONGODB_URI",
"value": "mongodb+srv://itsalmah2018:[email protected]/eayni"
}
],
"environmentFiles": [],
"mountPoints": [],
"volumesFrom": [],
"ulimits": [],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/ecs/eayni-api",
"awslogs-region": "eu-west-1",
"awslogs-stream-prefix": "ecs"
},
"secretOptions": []
}
}
],
"family": "eayni-api",
"executionRoleArn": "arn:aws:iam::891377307981: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.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": "1024",
"memory": "3072",
"runtimePlatform": {
"cpuArchitecture": "X86_64",
"operatingSystemFamily": "LINUX"
},
"registeredAt": "2024-01-25T13:05:57.248Z",
"registeredBy": "arn:aws:iam::891377307981:root",
"tags": []
}

0 comments on commit 5c0a2d6

Please sign in to comment.