Aurora Scheduled Delete #4
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: Aurora Scheduled Delete | |
on: | |
schedule: | |
# Runs every day at 7:10 PM UTC. This should be scheduled slightly after the ROSA auto-delete to ensure that no | |
# Peering Connections remain between the ROSA and Aurora VPCs. | |
- cron: '10 19 * * *' | |
jobs: | |
checkout: | |
name: Aurora Scheduled Delete cluster(s) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Configure AWS CLI | |
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 ${{ vars.AWS_DEFAULT_REGION }} | |
- if: github.event_name != 'schedule' || github.repository == 'keycloak/keycloak-benchmark' | |
run: ./provision/aws/rds/aurora_cluster_reaper.sh | |
env: | |
AWS_REGION: ${{ vars.AWS_DEFAULT_REGION }} |