diff --git a/.github/actions/api-deploy-ecs/action.yml b/.github/actions/api-deploy-ecs/action.yml index 0f9335d1af2e..07e5a2a924af 100644 --- a/.github/actions/api-deploy-ecs/action.yml +++ b/.github/actions/api-deploy-ecs/action.yml @@ -94,18 +94,20 @@ runs: shell: bash - name: Deploy Amazon ECS web task definition + id: deploy-api-task-def uses: aws-actions/amazon-ecs-deploy-task-definition@v2 with: cluster: ${{ inputs.aws_ecs_cluster_name }} service: ${{ inputs.aws_ecs_service_name }} task-definition: ${{ steps.task-def-api.outputs.task-definition }} - - name: Deploy Amazon ECS SDK service task definition - uses: aws-actions/amazon-ecs-deploy-task-definition@v2 - with: - cluster: ${{ inputs.aws_ecs_cluster_name }} - service: ${{ inputs.aws_ecs_sdk_service_name }} - task-definition: ${{ steps.task-def-api.outputs.task-definition }} + - name: Deploy Amazon ECS SDK service with same task definition + run: | + aws ecs update-service \ + --cluster ${{ inputs.aws_ecs_cluster_name }} \ + --service ${{ inputs.aws_ecs_sdk_service_name }} \ + --task-definition ${{ steps.deploy-api-task-def.outputs.task-definition-arn }} + shell: bash # The DynamoDB Identity Migrator uses the same task definition as the SQL schema migrator but overrides the container definition # with the new django execute target