Skip to content

Commit f3579da

Browse files
Lairon Acosta GuardiasLairon Acosta Guardias
Lairon Acosta Guardias
authored and
Lairon Acosta Guardias
committed
updating aws yml to deploy on ecs
1 parent a288879 commit f3579da

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

.github/workflows/aws.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ jobs:
6969
uses: aws-actions/amazon-ecs-render-task-definition@v1
7070
with:
7171
task-definition: task-definition.json
72-
container-name: alpine
72+
container-name: ms-gin-go-container
7373
image: ${{ steps.build-image.outputs.image }}
7474

7575
- name: Deploy Amazon ECS task definition
7676
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
7777
with:
7878
task-definition: ${{ steps.task-def.outputs.task-definition }}
79-
service: alpine-service
80-
cluster: default
79+
service: ms-gin-go-container-service
80+
cluster: default-dev
8181
wait-for-service-stability: true

task-definition.json

+10-5
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,20 @@
1414
"awslogs-stream-prefix": "ecs"
1515
}
1616
},
17-
"entryPoint": [],
17+
"entryPoint": [
18+
"sh",
19+
"-c"
20+
],
1821
"portMappings": [
1922
{
2023
"hostPort": 80,
2124
"protocol": "tcp",
2225
"containerPort": 80
2326
}
2427
],
25-
"command": [],
28+
"command": [
29+
"/bin/sh -c \"echo '<html> <head> <title>Amazon ECS Sample App</title> <style>body {margin-top: 40px; background-color: #333;} </style> </head><body> <div style=color:white;text-align:center> <h1>Amazon ECS Sample App</h1> <h2>Congratulations!</h2> <p>Your application is now running on a container in Amazon ECS.</p> </div></body></html>' > /usr/local/apache2/htdocs/index.html && httpd-foreground\""
30+
],
2631
"linuxParameters": null,
2732
"cpu": 256,
2833
"environment": [],
@@ -54,7 +59,7 @@
5459
"dockerLabels": null,
5560
"systemControls": null,
5661
"privileged": null,
57-
"name": "alpine"
62+
"name": "ms-gin-go-container"
5863
}
5964
],
6065
"placementConstraints": [],
@@ -64,7 +69,7 @@
6469
"EC2",
6570
"FARGATE"
6671
],
67-
"taskDefinitionArn": "arn:aws:ecs:us-east-2:027479467189:task-definition/ms-gin-go-task-definition:1",
72+
"taskDefinitionArn": "arn:aws:ecs:us-east-2:027479467189:task-definition/ms-gin-go-task-definition:3",
6873
"family": "ms-gin-go-task-definition",
6974
"requiresAttributes": [
7075
{
@@ -110,7 +115,7 @@
110115
],
111116
"networkMode": "awsvpc",
112117
"cpu": "256",
113-
"revision": 1,
118+
"revision": 3,
114119
"status": "ACTIVE",
115120
"inferenceAccelerators": null,
116121
"proxyConfiguration": null,

0 commit comments

Comments
 (0)