Backup and restore with AWS Backup
An AWS Backup plan backs up EC2, RDS, DynamoDB and EFS into a vault in us-east-1, copies it to us-west-2 and to a Vault Lock vault in a separate backup account, and restores into production.
aws9 nodes7 groups6 edges
aws-backup-restore.yamlOn GitHub
# yaml-language-server: $schema=../references/diagram.schema.json
title: Backup and restore with AWS Backup
subtitle: A backup plan protects production, copies each recovery point to a second Region and to a locked vault in a backup account, and restores into production
direction: right
layout: { merge: false }
legend:
solid: Backup and copy jobs
dashed: Restore
dotted: Encryption key
groups:
cloud: { type: aws:cloud }
prod: { type: aws:account, label: Production account, in: cloud }
prod-east: { type: aws:region, label: us-east-1, in: prod }
protected: { type: aws:generic, label: Protected resources, in: prod-east, cols: 2 }
prod-west: { type: aws:region, label: us-west-2, in: prod }
# Cross-account copies need both accounts in one organization and a vault access policy on the
# destination vault.
backup: { type: aws:account, label: Backup account, in: cloud }
backup-east: { type: aws:region, label: us-east-1, in: backup }
nodes:
ec2: { icon: aws:ec2, label: Amazon EC2, note: Instances and EBS volumes, in: protected }
rds: { icon: aws:rds, label: Amazon RDS, note: Databases, in: protected }
dynamodb: { icon: aws:dynamodb, label: Amazon DynamoDB, note: Advanced backup features, in: protected }
efs: { icon: aws:elastic-file-system-file-system, label: Amazon Elastic File System, note: File systems, in: protected }
plan: { icon: aws:backup-backup-plan, label: AWS Backup, note: Backup plan and rules, in: prod-east, align: vault }
vault: { icon: aws:backup-backup-vault, label: Backup vault, note: Recovery points, in: prod-east }
kms: { icon: aws:key-management-service, label: AWS Key Management Service, note: Vault encryption key, in: prod-east }
copy: { icon: aws:backup-backup-vault, label: Backup vault, note: Cross-Region copy, in: prod-west }
locked: { icon: aws:backup-vault-lock, label: AWS Backup Vault Lock, note: Compliance-mode vault, in: backup-east }
edges:
- protected -> plan: { label: back up }
- plan -> vault: { label: store }
- vault -> copy: { label: copy }
# Drawn after layout, so the backup account sits under the production account instead of
# widening the figure.
- vault -> locked: { label: copy, constraint: false }
# AWS Backup cannot restore across accounts, so restores leave the production vault. Written in
# layout order with the arrow at the start, so the resources stay ahead of the vault.
- { from: protected, to: vault, arrow: start, line: dashed, label: restore }
# Written key first with the arrow at the vault end, so KMS sits beside the plan instead of a row lower.
- { from: kms, to: vault, line: dotted, label: encrypt }Start from this one
Copies the spec to diagram.yaml, then renders every format.
$ orrery init aws-backup-restore$ orrery render diagram.yaml -f all --theme both