Terraform module for AWS Backup vaults, plans, selections, notifications, region settings and vault lock configuration.
This module requires Terraform 1.6.0 or later and supports AWS provider versions from 5.40.0 up to, but not including, 7.0.0.
| Name |
Version |
| aws |
>= 5.40.0, < 7.0.0 |
No modules.
| Name |
Description |
Type |
Default |
Required |
| backup_vault_lock_configuration |
The backup vault lock configuration, each vault can have one vault lock in place. This will enable Backup Vault Lock on an AWS Backup vault it prevents the deletion of backup data for the specified retention period. During this time, the backup data remains immutable and cannot be deleted or modified."
changeable_for_days - The number of days before the lock date. If omitted creates a vault lock in governance mode, otherwise it will create a vault lock in compliance mode. |
any |
null |
no |
| create_backup_plan |
(Required) Whether to create backup plan. |
bool |
true |
no |
| create_backup_vault |
(Required) Whether to create backup vault. |
bool |
true |
no |
| create_iam_role |
(Required) Whether to create iam role. |
bool |
true |
no |
| name |
(Required) The display name of a backup plan. |
string |
null |
no |
| notifications |
(Optional) An array of events that indicate the status of jobs to back up resources to the backup vault. |
any |
{} |
no |
| region_settings |
(Optional) Provides an AWS Backup Region Settings resource.. |
any |
{} |
no |
| rules |
(Required) A rule object that specifies a scheduled task that is used to back up a selection of resources. |
any |
[] |
no |
| selection_conditions |
A map of conditions that you define to assign resources to your backup plans using tags. |
map(any) |
{} |
no |
| selection_name |
The display name of a resource selection document |
string |
null |
no |
| selection_not_resources |
An array of strings that either contain Amazon Resource Names (ARNs) or match patterns of resources to exclude from a backup plan. |
list(any) |
[] |
no |
| selection_resources |
An array of strings that either contain Amazon Resource Names (ARNs) or match patterns of resources to assign to a backup plan |
list(any) |
[] |
no |
| selection_tags |
List of tags for selection_name var, when using variable definition. |
list(any) |
[] |
no |
| selections |
(Required) A list of selections maps. |
any |
[] |
no |
| tags |
(Optional) Metadata that you can assign to help organize the resources that you create. |
map(string) |
{} |
no |
| vault_kms_key_arn |
(Optional) The server-side encryption key that is used to protect your backups. |
string |
null |
no |
See examples/complete.