Skip to content

Commit

Permalink
[OSDEV-1177] Stop logstash before cleaning OpenSearch indexes (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
roninzp authored Sep 3, 2024
1 parent 185b608 commit f3c9280
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/db_apply_anonimized.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ jobs:
string: ${{ vars.ENV_NAME }}
- name: Checkout repo
uses: actions/checkout@v4
- name: Stop Logstash for ${{ vars.ENV_NAME }}
if: ${{ (vars.ENV_NAME != 'Production' && vars.ENV_NAME != 'Staging' && vars.ENV_NAME) && inputs.restore-db == true}}
run: |
docker run --rm \
-e AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} \
-e AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} \
-e AWS_DEFAULT_REGION=eu-west-1 \
amazon/aws-cli \
ecs update-service --desired-count 0 --cluster=ecsOpenSupplyHub${{vars.ENV_NAME}}Cluster \
--service=OpenSupplyHub${{vars.ENV_NAME}}AppLogstash --region=eu-west-1
- name: Get Opensearch domain, filesystems and accespoint ids for ${{ vars.ENV_NAME }}
id: export_variables
run: |
Expand Down

0 comments on commit f3c9280

Please sign in to comment.