Skip to main content
Backup scope: the vault is short-lived working state, the audit bucket is the system of record, and your KMS key is the one thing you can never lose — without it neither can be read.

When to use it

When you set backup and retention policy, plan DR, and before any destructive change to the database or the key.

What lives where

Vault backups

  • Aurora automated backups are on by default, encrypted with the CMK, in your account and Region. Point-in-time restore covers the retention window you set on the cluster.
  • VaultDeletionPolicy=Snapshot (CloudFormation) or vault_final_snapshot = true (Terraform) leaves a final snapshot when the stack is deleted.
  • The vault is usually rebuildable: sessions expire within the TTL, so after a loss, clients start new sessions. What you lose is the ability to re-identify text de-identified during the TTL window before the loss. Size backup effort to how much that window matters to you.
  • A backup holds no readable values on its own. Sealed values open only with a private key, and private keys are stored wrapped by your CMK, which only the rehydrate role may use to unwrap them.

Restore the vault

A snapshot restore brings back the keyring too. It works only with the same CMK and the same deployment id — both are bound into every wrapped key’s encryption context, and the deployment id is stamped in the vault.
Then point both services at the restored writer endpoint and roll them:
  • Helm: vault.url, then helm upgrade.
  • CloudFormation / Terraform: CreateVaultDatabase=false with ExistingVaultEndpoint, ExistingVaultSecretArn, ExistingVaultSecurityGroupId (or the existing_vault_* variables). Switching an existing stack from a created to an external database replaces resources — test it on a non-production stack first.
Sessions whose TTL lapsed after the restore point are expired by the vault on first touch.

Rehearse a vault restore in a non-production environment and prove old sessions still restore.

Open in Cursor

Audit bucket

  • Retention is the bucket’s Object Lock default (AuditRetentionDays / audit_retention_days, 2190 days). In COMPLIANCE mode nobody can shorten it.
  • Two writers, two prefixes. Rehydrate writes reidentify records under AuditPrefix / audit_prefix (default rehydrate/); detect writes erasure records under ErasureAuditPrefix / erasure_audit_prefix (default erasure/). Back up and replicate both.
  • Copies: for protection against account or Region loss, add S3 replication to a bucket in another account or Region that also has Object Lock enabled. The templates don’t configure replication.
  • Restores aren’t needed — objects can’t be deleted or overwritten during retention. If you suspect tampering, compare object versions and retention with aws s3api list-object-versions and get-object-retention.
  • Stack deletes keep the bucket (DeletionPolicy: RetainExceptOnCreate; Terraform prevent_destroy).

The KMS key

  • Never schedule deletion of the CMK while any vault snapshot or audit object you need is encrypted under it.
  • Restrict kms:ScheduleKeyDeletion and kms:DisableKey to break-glass administrators, and alarm on them in CloudTrail.
  • Automatic KMS key rotation is safe to turn on.

Disaster recovery

Vault data is short-lived, so DR is usually a second deployment, not a replica: deploy the stack in the recovery Region with its own deployment id and vault, and fail clients over. Sessions in flight at the time of failover can’t be re-identified in the new Region; clients start new sessions. Callers in the recovery Region need their own Lattice service network association, invoker-list entries and caller policies there. Keep the audit bucket’s replica in the recovery Region if you replicate it.

Gotchas

  • A restored vault with a different deployment id won’t start. The keyring stamps the id, and a mismatch is refused at startup.
  • The Aurora master secret rotates (CloudFormation default, 7 days). After restore or rotation, restart both services so they pick up current credentials.
  • Deleting a session is permanent. DELETE /sessions/{session_id} removes it from the live vault (after writing its erasure record); it remains only in backups until they age out — account for that in erasure requests.