Skip to content

Commit 5bdbbe6

Browse files
committed
api-server ci/cd 구축-58
1 parent 926afef commit 5bdbbe6

File tree

2 files changed

+87
-15
lines changed

2 files changed

+87
-15
lines changed

.github/workflows/deploy-api-server.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ env:
1414
AWS_REGION: ap-northeast-2
1515
CONTAINER_NAME: api-container
1616
ECR_REPOSITORY: dulakreposiotry
17-
ECS_CLUSTER: victorious-elephant-mrbysh
18-
ECS_SERVICE: api-server-service-yxo3psrc
17+
ECS_CLUSTER: joyful-eagle-kco6mk
18+
ECS_SERVICE: api-server-service-xojhseb1
1919
ECS_TASK_DEFINITION: api-server/deullak-api-task-revision1.json
2020
IMAGE_TAG: latest
2121

Lines changed: 85 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,103 @@
11
{
2-
"family": "api-server",
3-
"networkMode": "bridge",
4-
"requiresCompatibilities": ["EC2"],
5-
"executionRoleArn": "arn:aws:iam::814022331893:role/ecsTaskExecutionRole",
6-
"cpu": "256",
7-
"memory": "206",
2+
"taskDefinitionArn": "arn:aws:ecs:ap-northeast-2:814022331893:task-definition/api-server:22",
83
"containerDefinitions": [
94
{
105
"name": "api-container",
116
"image": "814022331893.dkr.ecr.ap-northeast-2.amazonaws.com/dulakreposiotry",
12-
"essential": true,
7+
"cpu": 0,
138
"portMappings": [
149
{
10+
"name": "api-container-80-tcp",
11+
"containerPort": 80,
12+
"hostPort": 80,
13+
"protocol": "tcp",
14+
"appProtocol": "http"
15+
},
16+
{
17+
"name": "api-container-8081-tcp",
1518
"containerPort": 8081,
16-
"hostPort": 0,
17-
"protocol": "tcp"
19+
"hostPort": 8081,
20+
"protocol": "tcp",
21+
"appProtocol": "http"
22+
},
23+
{
24+
"name": "api-container-8080-tcp",
25+
"containerPort": 8080,
26+
"hostPort": 8080,
27+
"protocol": "tcp",
28+
"appProtocol": "http"
1829
}
1930
],
31+
"essential": true,
32+
"environment": [],
33+
"environmentFiles": [],
34+
"mountPoints": [],
35+
"volumesFrom": [],
36+
"ulimits": [],
2037
"logConfiguration": {
2138
"logDriver": "awslogs",
2239
"options": {
2340
"awslogs-group": "/ecs/api-server",
2441
"awslogs-create-group": "true",
2542
"awslogs-region": "ap-northeast-2",
2643
"awslogs-stream-prefix": "ecs"
27-
}
28-
}
44+
},
45+
"secretOptions": []
46+
},
47+
"systemControls": []
2948
}
30-
]
31-
}
49+
],
50+
"family": "api-server",
51+
"taskRoleArn": "arn:aws:iam::814022331893:role/ecsTaskExecutionRole",
52+
"executionRoleArn": "arn:aws:iam::814022331893:role/ecsTaskExecutionRole",
53+
"networkMode": "awsvpc",
54+
"revision": 22,
55+
"volumes": [],
56+
"status": "ACTIVE",
57+
"requiresAttributes": [
58+
{
59+
"name": "com.amazonaws.ecs.capability.logging-driver.awslogs"
60+
},
61+
{
62+
"name": "ecs.capability.execution-role-awslogs"
63+
},
64+
{
65+
"name": "com.amazonaws.ecs.capability.ecr-auth"
66+
},
67+
{
68+
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.19"
69+
},
70+
{
71+
"name": "com.amazonaws.ecs.capability.task-iam-role"
72+
},
73+
{
74+
"name": "ecs.capability.execution-role-ecr-pull"
75+
},
76+
{
77+
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.18"
78+
},
79+
{
80+
"name": "ecs.capability.task-eni"
81+
},
82+
{
83+
"name": "com.amazonaws.ecs.capability.docker-remote-api.1.29"
84+
}
85+
],
86+
"placementConstraints": [],
87+
"compatibilities": [
88+
"EC2",
89+
"FARGATE"
90+
],
91+
"requiresCompatibilities": [
92+
"FARGATE"
93+
],
94+
"cpu": "256",
95+
"memory": "512",
96+
"runtimePlatform": {
97+
"cpuArchitecture": "X86_64",
98+
"operatingSystemFamily": "LINUX"
99+
},
100+
"registeredAt": "2025-08-13T05:31:32.754Z",
101+
"registeredBy": "arn:aws:iam::814022331893:root",
102+
"tags": []
103+
}

0 commit comments

Comments
 (0)