๐Ÿ›ก๏ธ Centralized Backup Solution in AWS Organization - Because One Backup is never enough!
Husain Yusuf

Husain Yusuf @mastercam123

About: An earthling that interested in all cloud topics

Location:
Frankfurt, Germany
Joined:
Nov 10, 2022

๐Ÿ›ก๏ธ Centralized Backup Solution in AWS Organization - Because One Backup is never enough!

Publish Date: Mar 2
0 0

Data loss, whether due to accidental deletion, cyberattacks, or system failures, can be catastrophic for any organization.

Imagine waking up one day and realizing that your backups have mysteriously vanished. ๐Ÿ˜ฑ Maybe someone accidentally deleted them (oops), or worse, a cyberattack wiped them out. Not cool, right?

Enter the AWS Central Backup Account โ€“ the superhero ๐Ÿฆธโ€โ™‚๏ธ of backups! With this setup, all backups from your AWS Organization are automatically copied to a dedicated AWS account, ensuring an extra layer of protection. No more heart attacks over lost data! ๐Ÿ’พโœจ

๐Ÿ”‘ Why You Need This in Your Life

โœ”๏ธ ๐Ÿš€ Ultimate Backup Resilience โ€“ Even if a backup is deleted in a member account, a copy is safe in the Central Backup Account. Crisis averted!
โœ”๏ธ ๐Ÿง Compliance Made Easy โ€“ Need to meet regulations like GDPR or DORA? Centralized backups make audits a breeze!
โœ”๏ธ ๐Ÿ“ Automate Everything โ€“ AWS Backup Plans take care of everything, so you can relax while your backups work for you.
โœ”๏ธ ๐Ÿ”’ Backup Security โ€“ Protect your backups with Customer Managed KMS Keys and Backup Vault policy!
โœ”๏ธ ๐Ÿ“ข Automated Alerts & Monitoring โ€“ Get instant notifications if something goes wrong, so you can fix it before your boss finds out! ๐Ÿ˜…

๐Ÿค” The Problem This Solves

๐Ÿšจ Backups can be lost! Accidental deletions, cyberattacks, or Murphyโ€™s Law can strike at any time. With this setup, you always have a spare copy.
๐Ÿšจ Manually copying backups is painful! We automate everything so you never have to worry about forgetting to copy your backups.
๐Ÿšจ Visibility on backup failures is crucial! AWS EventBridge + Lambda + SNS work together to notify you immediately when something goes wrong.
๐Ÿšจ AWS Managed Keys donโ€™t work for cross-account backups! (at least now where I wrote this blog in February 2025) Thatโ€™s why we use Customer Managed KMS Keys to securely share encrypted backups across accounts.

๐Ÿ” Centralized Backup Solution Architecture

Central backup architecture

The diagram illustrates a multi-account AWS backup strategy, ensuring backups are automatically copied from application accounts to a dedicated central backup account for enhanced security and disaster recovery.

๐Ÿ›  Components in the Architecture

๐Ÿš€ Application Account (Source Account)

  • Hosts e.g: Amazon RDS and Amazon EBS volumes that need to be backed up.
  • Uses AWS Managed Keys or Customer Managed Keys (KMS) to encrypt the snapshots of these resources.
  • Implements an AWS Backup Plan to schedule automatic snapshots.

๐Ÿš€ Backup Vaults

  • Temporary Backup Vault: Stores the initial backup before copying it to the Primary Backup Vault.
  • Primary Backup Vault: Stores the final backup within the application account, encrypted with a Customer Managed Key (CMK) to enable cross-account copy operations.

๐Ÿš€ AWS Backup Copy Jobs

  • Copy Job 1: Copies the backup from the Temporary Backup Vault to the Primary Backup Vault in the same AWS account.
  • Copy Job 2 (Cross-account copy job) triggered from Lambda: Copies the backup from the Primary Backup Vault to the Central Backup Account.

๐Ÿš€ AWS Lambda & Amazon EventBridge

  • EventBridge triggers Lambda functions after each copy job is complete.

  • Initiating the cross-account copy job once the backup reaches the Primary Backup Vault.

  • Lambda delete backups from the Temporary Backup Vault after the cross-account copy is successfully complete.

  • Sending notifications to alert admins of backup failures.

๐Ÿš€ Parameter Store

Stores backup tag settings used by Lambda functions.

๐Ÿš€ Central Backup Account

A dedicated AWS account used for long-term storage of backups.
Contains a Backup Vault, where cross-account copies from the application accounts are stored.
Uses a Customer Managed Key (CMK) to encrypt the backups securely.

๐Ÿ“ Prerequisites

โœ… An AWS Organization with multiple accounts.
โœ… Enable cross-account monitoring in AWS Backup from management account. The steps are described here.
โœ… A dedicated AWS Backup Account for centralized backup that already have delegated permission for backup. You can find how to setup here.
โœ… Ensure and enable the supported resources for cross-account backup. Check here

๐Ÿš€ Step-by-Step Deployment

๐Ÿค– Deployment in central backup account

Step 1: Create a backup vault in Central Backup Account to store backup copy of member account
๐Ÿ“ Go to AWS Backup โ†’ Create a Backup Vault for member account to store the copy of the backup.
๐Ÿ“ Update the Backup Vault Policy โ†’ Allow the role in the member account to sent the copy into the backup vault.

Backup Vault Policy

๐Ÿ“ Create backup policy that will be implemented across the AWS Organization โ†’ The example can be found here.

๐Ÿ‘จ๐Ÿผโ€๐Ÿซ Deployment in member account

Step 1: Set Up a Customer Managed KMS Key ๐Ÿ”‘
๐Ÿ“ Go to AWS KMS โ†’ Create a Customer Managed Key (CMK).
๐Ÿ“ Update the Key Policy to allow access from the Central Backup Account. โ†’ Please refer to this link

Step 2: Configure AWS Backup in Each Member Account ๐Ÿ—๏ธ
๐Ÿ“ Create a Temporary Backup Vault and Primary Backup Vault.
๐Ÿ“ Set up an AWS Backup Plan Rule to back up tagged resources into the Temporary Backup Vault.
๐Ÿ“ Configure the Backup Plan Rule to copy backups to the Primary Backup Vault.

Image description

Step 3: Deploy a Lambda Function and EventBridge to Handle Backup Copy Jobs ๐Ÿค–
๐Ÿ“ Create an EventBridge Rule for successful copy job from Temporary Vault to Primary Vault.
๐Ÿ“ Create an AWS Lambda function triggered by EventBridge. โ†’ The function run a copy job from Primary Backup Vault to Central Backup Vault in central backup Account.
๐Ÿ“ If the event is a successful copy from Temporary to Primary Vault, Lambda copies it to the Central Backup Account.

Step 4: Set Up EventBridge to Watch for Backup Jobs Failures ๐Ÿ‘€
๐Ÿ“ Create an EventBridge Rule for failed backup, copy, or restore jobs (so you know when somethingโ€™s broken).
๐Ÿ“ Create an SNS Topic and subscribe your email (or Slack, or any your preference endpoint that supported in SNS)
๐Ÿ“ Add SNS as Eventbridge Target to sent the notification.
๐Ÿ“ Get real-time alerts before disaster strikes!

๐ŸŽฏ Conclusion โ€“ Your Backups Just Got Smarter!

By implementing this Centralized AWS Backup Solution, youโ€™ve just leveled up your cloud game. No more โ€œoops, my backup is goneโ€ moments, no more compliance headaches, and no more manual backup drudgery.

๐Ÿš€ Automation? Check.
๐Ÿ”’ Security? Check.
๐Ÿ“ข Notifications? Check.

So what are you waiting for? Get started today! ๐ŸŽ‰ Your future self will thank you!

โ€ผ๏ธ Things to consider

๐Ÿ”” The time where AWS Backup runs the backup job. In AWS Backup, RDS backups aren't allowed within an hour before the RDS maintenance window or the RDS automated backup window. Therefore, be sure that your backup plans for RDS databases are scheduled more than an hour apart from the RDS maintenance window and the RDS automated backup window.

Comments 0 total

    Add comment