Amazon Backup and Amazon CloudFormation - Amazon Backup
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Amazon Backup and Amazon CloudFormation

In general

With Amazon CloudFormation, you can provision and manage your Amazon resources in a safe, repeatable manner using templates that you create. You can use Amazon CloudFormation templates and StackSets to manage your backup plans, backup resource selections, and backup vaults. For information about using Amazon CloudFormation, see How Does Amazon CloudFormation Work? in the Amazon CloudFormation User Guide.

Before you create your Amazon CloudFormation template or StackSet, consider the following:

  • Create separate templates for your backup plans and your backup vaults. You can only delete backup vaults that are empty. You can't delete a stack that includes backup vaults if they contain recovery points.

  • Verify you have a service role available before you create your stack. The Amazon Backup default service role is created for you the first time you assign resources to a backup plan. If you haven't assigned resources to your backup plan, do so before creating your stack. You can also specify a custom role that you create. For more information about roles, see IAM service roles.

Deploying a backup vault, backup plan, and resource assignment using Amazon CloudFormation

For sample Amazon CloudFormation templates that deploys a backup vault, backup plans, and resource assignment, see Assign Amazon Backup resources through Amazon CloudFormation.

Deploying backup plans using Amazon CloudFormation

For sample Amazon CloudFormation templates that deploy backup plans, see Amazon CloudFormation templates for backup plans.

Deploying Amazon Backup Audit Manager frameworks and report plans using Amazon CloudFormation

For sample Amazon CloudFormation templates that deploy Amazon Backup Audit Manager frameworks and report plans, see Amazon CloudFormation templates for backup plans.

Deploying backup plans across accounts using Amazon CloudFormation

You can use Amazon CloudFormation StackSets across multiple accounts in an Amazon Organization. Sample templates are available in the Amazon CloudFormation User Guide.

An excellent starting point and reference is the publication Automate centralized backup at scale across Amazon services using Amazon Backup. With Ibukun Oyewumi and Sabith Venkitachalapathy (Jul. 2021).

Learning more about Amazon CloudFormation

For information about using Amazon CloudFormation with Amazon Backup, see Amazon Backup Resource Type Reference in the Amazon CloudFormation User Guide.

For information about controlling access to Amazon service resources when using Amazon CloudFormation, see Controlling Access with Amazon Identity and Access Management in the Amazon CloudFormation User Guide.