Skip to content

pogosoftware/terraform-aws-backup

Repository files navigation

terraform-aws-backup

Requirements

Name Version
terraform ~> 1.0
aws ~> 4.22

Providers

Name Version
aws 4.22.0

Modules

No modules.

Resources

Name Type
aws_backup_plan.backup_plan resource
aws_backup_selection.backup_selection resource
aws_backup_vault.backup_vault resource

Inputs

Name Description Type Default Required
backup_plan_advanced_backup_setting An object that specifies backup options for each resource type
object({
backup_options = map(string)
resource_type = string
})
null no
backup_plan_name Required if create_backup_plan is set to true. The display name of a backup plan string null no
backup_plan_rule Reuiqred if create_backup_plan is set to true. A rule object that specifies a scheduled task that is used to back up a selection of resources
object({
rule_name = string
schedule = optional(string)
enable_continuous_backup = optional(bool)
start_window = optional(number)
completion_window = optional(number)
recovery_point_tags = optional(map(string))
lifecycle = optional(object({
cold_storage_after = optional(number)
delete_after = optional(number)
}))
})
null no
backup_plan_tags Metadata that you can assign to help organize the plans you create map(string) null no
backup_selection_iam_role_arn Required if create_backup_selection is set to true. The ARN of the IAM role that AWS Backup uses to authenticate when restoring and backing up the target resource string null no
backup_selection_name Required if create_backup_selection is set to true. The display name of a resource selection document string null no
backup_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(string) null no
backup_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(string) null no
backup_vault_kms_key_arn The server-side encryption key that is used to protect your backups string null no
backup_vault_name Required if create_backup_vault is set to true. Name of the backup vault to create string null no
backup_vault_tags Metadata that you can assign to help organize the resources that you create map(string) null no
create_backup_plan Determinate to create aws_backup_vault resources or not. bool true no
create_backup_selection Determinate to create aws_backup_selection resources or not. bool true no
create_backup_vault Determinate to create aws_backup_vault resources or not. bool true no

Outputs

Name Description
backup_plan_arn The ARN of the backup plan
backup_plan_id The id of the backup plan
backup_selection_id The id of the backup plan
backup_vault_arn The ARN of the vault
backup_vault_id The name of the vault
backup_vault_recovery_points The number of recovery points that are stored in a backup vault