From af692fe9f57033498c94e8b682e81eecf4a44937 Mon Sep 17 00:00:00 2001 From: Lairon Acosta Guardias Date: Thu, 1 Apr 2021 08:30:30 -0500 Subject: [PATCH] updating aws yml to deploy on ecs --- .github/workflows/aws.yml | 6 +++--- task-definition.json | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml index f7e7493..a395548 100644 --- a/.github/workflows/aws.yml +++ b/.github/workflows/aws.yml @@ -54,7 +54,7 @@ jobs: id: build-image env: ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} - ECR_REPOSITORY: dev-repos + ECR_REPOSITORY: ms-gin-go IMAGE_TAG: ${{ github.sha }} run: | # Build a docker container and @@ -69,13 +69,13 @@ jobs: uses: aws-actions/amazon-ecs-render-task-definition@v1 with: task-definition: task-definition.json - container-name: ms-gin-go-app + container-name: ms-gin-go-container image: ${{ steps.build-image.outputs.image }} - name: Deploy Amazon ECS task definition uses: aws-actions/amazon-ecs-deploy-task-definition@v1 with: task-definition: ${{ steps.task-def.outputs.task-definition }} - service: ms-gin-go-app-service + service: ms-gin-go-container-service cluster: dev-cluster wait-for-service-stability: true diff --git a/task-definition.json b/task-definition.json index 64ec0de..c55e5c4 100644 --- a/task-definition.json +++ b/task-definition.json @@ -9,7 +9,7 @@ "logDriver": "awslogs", "secretOptions": null, "options": { - "awslogs-group": "/ecs/ms-gin-go-app-task-definition", + "awslogs-group": "/ecs/ms-gin-go-task-def", "awslogs-region": "us-east-2", "awslogs-stream-prefix": "ecs" } @@ -42,7 +42,7 @@ "memoryReservation": 512, "volumesFrom": [], "stopTimeout": null, - "image": "027479467189.dkr.ecr.us-east-2.amazonaws.com/dev-repos", + "image": "027479467189.dkr.ecr.us-east-2.amazonaws.com/ms-gin-go", "startTimeout": null, "firelensConfiguration": null, "dependsOn": null, @@ -59,7 +59,7 @@ "dockerLabels": null, "systemControls": null, "privileged": null, - "name": "ms-gin-go-app" + "name": "ms-gin-go-container" } ], "placementConstraints": [], @@ -69,8 +69,8 @@ "EC2", "FARGATE" ], - "taskDefinitionArn": "arn:aws:ecs:us-east-2:027479467189:task-definition/ms-gin-go-app-task-definition:1", - "family": "ms-gin-go-app-task-definition", + "taskDefinitionArn": "arn:aws:ecs:us-east-2:027479467189:task-definition/ms-gin-go-task-def:1", + "family": "ms-gin-go-task-def", "requiresAttributes": [ { "targetId": null,