Aurora Delete #409
This file contains hidden or 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: Aurora Delete | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| name: | |
| description: 'The name of the Aurora DB cluster' | |
| type: string | |
| required: true | |
| region: | |
| description: 'The AWS region used to host the Aurora DB' | |
| type: string | |
| required: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| delete: | |
| name: Delete Aurora DB | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Initialize AWS client | |
| run: | | |
| aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| aws configure set region ${{ inputs.region }} | |
| - id: delete | |
| shell: bash | |
| run: ./aurora_delete.sh | |
| working-directory: .github/scripts/aws/rds | |
| env: | |
| AURORA_CLUSTER: ${{ inputs.name }} | |
| AURORA_REGION: ${{ inputs.region }} |