Skip to content

Commit 341f0ae

Browse files
committed
Fix data replication workflow
1 parent cf98772 commit 341f0ae

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/data-replication-pipeline.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,3 +211,10 @@ jobs:
211211
set -e
212212
terraform init -backend-config="env/${{ inputs.environment }}-backend.hcl" -upgrade
213213
terraform apply ${{ runner.temp }}/tfplan
214+
- name: Deploy db-access-service
215+
run: |
216+
task_definition_arn=$(terraform output -json | jq -r '.task_definition_arn.value')
217+
aws ecs update-service \
218+
--cluster mavis-${{ inputs.environment }}-data-replication \
219+
--service mavis-${{ inputs.environment }}-data-replication \
220+
--task-definition $task_definition_arn
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
output "task_definition_arn" {
2+
description = "The task definition arn of the db access service"
3+
value = module.db_access_service.task_definition.arn
4+
}

0 commit comments

Comments
 (0)