Reset Staging DB #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Reset Staging DB | |
on: | |
workflow_dispatch: | |
jobs: | |
reset: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.CI_CD_AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.CI_CD_AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ secrets.AWS_DEFAULT_REGION }} | |
- name: Execute Task | |
run: | | |
aws ecs run-task --cluster wca-on-rails --capacity-provider-strategy capacityProvider=wca-on-rails-t3 --network-configuration "awsvpcConfiguration={subnets=[subnet-3f288648],securityGroups=[sg-0fff6bb04e7705712]}" --task-definition wca-on-rails-staging-db-reset |