-
Notifications
You must be signed in to change notification settings - Fork 65
39 lines (34 loc) · 995 Bytes
/
Copy pathdr-test.yml
File metadata and controls
39 lines (34 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Disaster Recovery Dry-Run Test
on:
schedule:
# Run at 00:00 on the 1st of every month
- cron: '0 0 1 * *'
workflow_dispatch:
inputs:
dry_run:
description: 'Dry run mode (if false, will perform actual failover)'
required: true
default: 'true'
type: choice
options: ['true', 'false']
permissions:
id-token: write
contents: read
jobs:
dr-failover-test:
name: Monthly Dry-Run Failover Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Configure AWS credentials (OIDC)
uses: aws-actions/configure-aws-credentials@v6
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: us-east-1
- name: Run Failover Script
env:
DRY_RUN: ${{ github.event.inputs.dry_run || 'true' }}
run: |
chmod +x ./infrastructure/scripts/failover.sh
./infrastructure/scripts/failover.sh