Resource Type definition for AWS::Backup::BackupPlan
Deploy a backup plan:
resource "awscc_backup_backup_vault" "example" {
backup_vault_name = "example_backup_vault"
}
resource "awscc_backup_backup_plan" "example" {
backup_plan = {
backup_plan_name = "example-backup-plan"
backup_plan_rule = [{
rule_name = "example-backup-rule"
target_backup_vault = awscc_backup_backup_vault.example.backup_vault_name
lifecycle = {
delete_after_days = 14
}
}]
advanced_backup_settings = [{
backup_options = {
WindowsVSS = "disabled"
}
resource_type = "EC2"
}]
}
}
backup_plan
(Attributes) (see below for nested schema)backup_plan_tags
(Map of String)backup_plan_arn
(String)backup_plan_id
(String)id
(String) Uniquely identifies the resource.version_id
(String)backup_plan
Required:
backup_plan_name
(String)backup_plan_rule
(Attributes List) (see below for nested schema)Optional:
advanced_backup_settings
(Attributes List) (see below for nested schema)backup_plan.backup_plan_rule
Required:
rule_name
(String)target_backup_vault
(String)Optional:
completion_window_minutes
(Number)copy_actions
(Attributes List) (see below for nested schema)enable_continuous_backup
(Boolean)lifecycle
(Attributes) (see below for nested schema)recovery_point_tags
(Map of String)schedule_expression
(String)schedule_expression_timezone
(String)start_window_minutes
(Number)backup_plan.backup_plan_rule.copy_actions
Required:
destination_backup_vault_arn
(String)Optional:
lifecycle
(Attributes) (see below for nested schema)backup_plan.backup_plan_rule.copy_actions.lifecycle
Optional:
delete_after_days
(Number)move_to_cold_storage_after_days
(Number)opt_in_to_archive_for_supported_resources
(Boolean)backup_plan.backup_plan_rule.lifecycle
Optional:
delete_after_days
(Number)move_to_cold_storage_after_days
(Number)opt_in_to_archive_for_supported_resources
(Boolean)backup_plan.advanced_backup_settings
Required:
backup_options
(String)resource_type
(String)Import is supported using the following syntax:
$ terraform import awscc_backup_backup_plan.example <resource ID>