Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/cicd-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: 'eu-north-1'
aws-region: 'us-east-1'
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
Expand All @@ -40,13 +40,13 @@ jobs:
id: task-def
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: nodejs-app-task-definition.json
task-definition: nodejs-app-task.json
container-name: nodejs-app
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: nodejs-app-service
cluster: DevCluster
service: newservice
cluster: Devcluster
wait-for-service-stability: true
27 changes: 14 additions & 13 deletions nodejs-app-task-definition.json → nodejs-app-task.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"taskDefinitionArn": "arn:aws:ecs:eu-north-1:763857617563:task-definition/nodejs-app-task-definition:3",
"taskDefinitionArn": "arn:aws:ecs:us-east-1:837442576474:task-definition/nodejs-app-task:1",
"containerDefinitions": [
{
"name": "nodejs-app",
"image": "763857617563.dkr.ecr.eu-north-1.amazonaws.com/nodejs-app",
"image": "837442576474.dkr.ecr.us-east-1.amazonaws.com/nodejs-app",
"cpu": 0,
"portMappings": [
{
Expand All @@ -24,19 +24,20 @@
"logDriver": "awslogs",
"options": {
"awslogs-create-group": "true",
"awslogs-group": "/ecs/nodejs-app-task-definition",
"awslogs-region": "eu-north-1",
"awslogs-group": "/ecs/nodejs-app-task",
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": "ecs"
},
"secretOptions": []
}
},
"systemControls": []
}
],
"family": "nodejs-app-task-definition",
"taskRoleArn": "arn:aws:iam::763857617563:role/ecsTaskExecutionRole",
"executionRoleArn": "arn:aws:iam::763857617563:role/ecsTaskExecutionRole",
"family": "nodejs-app-task",
"taskRoleArn": "arn:aws:iam::837442576474:role/ecsTaskExecutionRole",
"executionRoleArn": "arn:aws:iam::837442576474:role/ecsTaskExecutionRole",
"networkMode": "awsvpc",
"revision": 3,
"revision": 1,
"volumes": [],
"status": "ACTIVE",
"requiresAttributes": [
Expand Down Expand Up @@ -74,15 +75,15 @@
"FARGATE"
],
"requiresCompatibilities": [
"FARGATE"
"EC2"
],
"cpu": "1024",
"memory": "3072",
"runtimePlatform": {
"cpuArchitecture": "X86_64",
"operatingSystemFamily": "LINUX"
},
"registeredAt": "2023-09-25T19:33:06.607Z",
"registeredBy": "arn:aws:iam::763857617563:root",
"registeredAt": "2024-05-27T08:14:33.285Z",
"registeredBy": "arn:aws:iam::837442576474:root",
"tags": []
}
}