forked from awslabs/aws-cyclone-solution
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEMERGENCY_SHUTDOWN.sh
41 lines (40 loc) · 1.2 KB
/
EMERGENCY_SHUTDOWN.sh
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
40
41
#!/bin/bash
echo CLEAR SQS QUEUES
python ./scripts/clear_sqs.py
echo STOP ALL STATE MACHINES
python ./scripts/stop_all_stepfunctions.py
echo CLEAR SQS QUEUES
python ./scripts/clear_sqs.py
echo TERMINATE RUNNING BATCH JOBS AND CANCEL THE REST
python ./scripts/clear_all_batch_jobs.py
echo CLEAR SQS QUEUES
python ./scripts/clear_sqs.py
echo TERMINATE RUNNING INSTANCES
python ./scripts/clear_all_ec2_instances.py
echo CLEAR SQS QUEUES
python ./scripts/clear_sqs.py
echo CLEAN ASYNC TABLES ACROSS REGIONS
python ./scripts/async_table_clean.py
echo CLEAR SQS QUEUES
python ./scripts/clear_sqs.py
echo WAITING 60 SECONDS
sleep 60
echo CLEARING AGAIN
echo CLEAR SQS QUEUES
python ./scripts/clear_sqs.py
echo STOP ALL STATE MACHINES
python ./scripts/stop_all_stepfunctions.py
echo CLEAR SQS QUEUES
python ./scripts/clear_sqs.py
echo TERMINATE RUNNING BATCH JOBS AND CANCEL THE REST
python ./scripts/clear_all_batch_jobs.py
echo CLEAR SQS QUEUES
python ./scripts/clear_sqs.py
echo TERMINATE RUNNING INSTANCES
python ./scripts/clear_all_ec2_instances.py
echo CLEAR SQS QUEUES
python ./scripts/clear_sqs.py
echo CLEAN ASYNC TABLES ACROSS REGIONS
python ./scripts/async_table_clean.py
echo CLEAR SQS QUEUES
python ./scripts/clear_sqs.py