Skip to content

Commit

Permalink
Add a github action to turn ingestion on and off
Browse files Browse the repository at this point in the history
  • Loading branch information
mzappitello committed Oct 10, 2023
1 parent 3a23230 commit d822566
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/change_ingestion_task_count.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Change Ingestion Task Count

on:
workflow_dispatch:
inputs:
environment:
description: 'dev or staging'
required: true
new_count:
description: '1 to turn on 0 to turn off'
required: true


jobs:
run: |
aws ecs update-service --service lamp-ingestion-${{ github.event.inputs.environment }} --desired-count ${{ github.event.inputs.new_count }}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 comments on commit d822566

Please sign in to comment.