Vault DR Drills
Drill 1: Couple of vault instances down
-
log into each downed instance, unseal the vault
-
Make sure we can still read the values from vault from command line/curl
-
Check consul and make sure the vault instance back online
Drill 2: The whole vault cluster is down and unable to restart
-
retrieve the last stable AMI, or rerun packer to generate one
-
Use tf to generate the new vault ASG, but with the same consul tags as the prvevious one
-
login into each instance in the new cluster, unseal the instance, and verify that the instance is healthy on consul
-
use tf to destroy the old vault cluster’s ASG
Drill 3: Restore vault data stored on consul
-
take a snapshot of current consul cluster
-
create a new consul cluster with new tags
-
restore the consul cluster from the snapshot, and deploy a new vault cluster on top of the new consul cluster
-
unseal the vault with original keys and verify that read is successful