Skip to content

Commit

Permalink
ci: debugging redis stack deletion failures
Browse files Browse the repository at this point in the history
  • Loading branch information
ipmb committed Sep 23, 2021
1 parent 9889245 commit 9a2c21a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/databases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ jobs:
# destroy fails if replication group is not available
ID="$(aws cloudformation describe-stacks --stack apppack-redis-apppack --output text --query Stacks[0].Outputs | grep Endpoint | cut -f2 -d.)"
sleep 10
until [ "$(aws elasticache describe-replication-groups --replication-group $ID --query ReplicationGroups[0].Status --output text)" = "available" ]; do
until [ "$(aws elasticache describe-replication-groups --replication-group-id $ID --query ReplicationGroups[0].Status --output text)" = "available" ]; do
echo "waiting for replication group to become available..."
sleep 10
done
Expand All @@ -215,8 +215,12 @@ jobs:
-
name: Destroy Redis
run: |
ID="$(aws cloudformation describe-stacks --stack apppack-redis-apppack --output text --query Stacks[0].Outputs | grep Endpoint | cut -f2 -d.)"
# debugging stack deletion failures
aws elasticache describe-replication-groups --replication-group-id $ID
yes apppack-redis-apppack | ./bin/apppack destroy redis apppack \
--region us-east-2
--region us-east-2; \
aws elasticache describe-replication-groups --replication-group-id $ID
if: always()
timeout-minutes: 18
env:
Expand Down

0 comments on commit 9a2c21a

Please sign in to comment.