This demo uses Terraform to demonstrate the implementation of a AWS Backup Plan. The Backup Plan itself will need a Backup Vault where the data can be stored. Backup Vaults can be hosted in any region and for cross-region backups we can use a vault in a different region. The following code creates a Backup Vault in our default region. AWS Backup Selection is an easy way to declare which AWS resources will be backed up by which Backup Plan.
Link to the blog post describing the end-to-end approach:
Blog post: Getting Started with AWS Backup Plan
No requirements.
Name | Version |
---|---|
aws | 4.15.1 |
No modules.
Name | Type |
---|---|
aws_backup_plan.backup_plan_default | resource |
aws_backup_plan.backup_plan_non-critical | resource |
aws_backup_selection.selection_default | resource |
aws_backup_selection.selection_non-critical | resource |
aws_backup_vault.vault | resource |
aws_backup_vault_policy.vault_policy | resource |
aws_iam_role.role_backup | resource |
aws_iam_policy_document.assume_role | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
recovrecovery_point_tags | recovery tags | list(string) |
[] |
no |
No outputs.