https://github.com/blackbird-cloud/terraform-aws-backup
Terraform module to setup AWS Backup
https://github.com/blackbird-cloud/terraform-aws-backup
aws backup terraform
Last synced: about 1 month ago
JSON representation
Terraform module to setup AWS Backup
- Host: GitHub
- URL: https://github.com/blackbird-cloud/terraform-aws-backup
- Owner: blackbird-cloud
- License: apache-2.0
- Created: 2022-11-30T14:47:49.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-09-17T11:33:21.000Z (9 months ago)
- Last Synced: 2025-09-17T13:29:27.998Z (9 months ago)
- Topics: aws, backup, terraform
- Language: HCL
- Homepage:
- Size: 62.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terraform Aws Backup Module
Terraform module to setup AWS Backup
[](https://blackbird.cloud)
## Example
```hcl
module "backup" {
source = "blackbird-cloud/backup/aws"
version = "~> 1"
name = "centralized-backup"
kms_key_arn = "arn:aws:kms:us-west-2:xxxxx:key/xxxxxxxxxxxxx"
}
```
## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1 |
| [aws](#requirement\_aws) | 4.48.0 |
## Providers
| Name | Version |
|------|---------|
| [aws](#provider\_aws) | 4.48.0 |
## Resources
| Name | Type |
|------|------|
| [aws_backup_plan.plan](https://registry.terraform.io/providers/hashicorp/aws/4.48.0/docs/resources/backup_plan) | resource |
| [aws_backup_region_settings.settings](https://registry.terraform.io/providers/hashicorp/aws/4.48.0/docs/resources/backup_region_settings) | resource |
| [aws_backup_selection.selection](https://registry.terraform.io/providers/hashicorp/aws/4.48.0/docs/resources/backup_selection) | resource |
| [aws_backup_vault.vault](https://registry.terraform.io/providers/hashicorp/aws/4.48.0/docs/resources/backup_vault) | resource |
| [aws_backup_vault_policy.policy](https://registry.terraform.io/providers/hashicorp/aws/4.48.0/docs/resources/backup_vault_policy) | resource |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [create\_backup\_plan](#input\_create\_backup\_plan) | (Optional) Create an AWS Backup plan, requires the rules variable to be configured as well. | `bool` | `true` | no |
| [create\_backup\_region\_settings](#input\_create\_backup\_region\_settings) | (Optional) Create an AWS Backup Region Settings resource. | `bool` | `true` | no |
| [create\_backup\_vault\_policy](#input\_create\_backup\_vault\_policy) | (Optional) Create an AWS Backup Policy | `bool` | `false` | no |
| [iam\_role\_arn](#input\_iam\_role\_arn) | (Optional) IAM role arn to use when making backups. | `string` | `""` | no |
| [kms\_key\_arn](#input\_kms\_key\_arn) | (Required) The server-side encryption key that is used to protect your backups. | `string` | n/a | yes |
| [name](#input\_name) | (Required) Name of backup resource | `string` | n/a | yes |
| [resource\_type\_management\_preference](#input\_resource\_type\_management\_preference) | (Optional) A map of services along with the management preferences for the Region. | `any` |
{
"DynamoDB": true,
"EFS": true
} | no |
| [resource\_type\_opt\_in\_preference](#input\_resource\_type\_opt\_in\_preference) | (Optional) A map of services along with the opt-in preferences for the Region. | `any` | {
"Aurora": true,
"CloudFormation": true,
"DocumentDB": true,
"DynamoDB": true,
"EBS": true,
"EC2": true,
"EFS": true,
"FSx": true,
"Neptune": true,
"RDS": true,
"Redshift": true,
"S3": true,
"Storage Gateway": true,
"Timestream": true,
"VirtualMachine": true
} | no |
| [rules](#input\_rules) | (Optional) An list of rules to create for the backup plan. | `list(any)` | `[]` | no |
| [selection](#input\_selection) | (Optional) Manages selection conditions for AWS Backup plan resources. | object({
resources : list(string),
not_resources : list(string),
condition : any
}) | {
"condition": {},
"not_resources": [],
"resources": []
} | no |
| [tags](#input\_tags) | (Optional) Metadata that you can assign to help organize the resources that you create. If configured with a provider default\_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level. | `map(string)` | `{}` | no |
| [vault\_policy](#input\_vault\_policy) | (Optional) The backup vault access policy document in JSON format. | `string` | `null` | no |
## Outputs
| Name | Description |
|------|-------------|
| [vault](#output\_vault) | AWS Backup Vault |
## About
We are [Blackbird Cloud](https://blackbird.cloud), Amsterdam based cloud consultancy, and cloud management service provider. We help companies build secure, cost efficient, and scale-able solutions.
Checkout our other :point\_right: [terraform modules](https://registry.terraform.io/namespaces/blackbird-cloud)
## Copyright
Copyright © 2017-2024 [Blackbird Cloud](https://blackbird.cloud)