Skip to content

backup

BackupStack

Bases: core.Stack

summary

Parameters:

Name Type Description Default
core _type_

description

required
Source code in infrastructure/stacks/backup_stack.py
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
class BackupStack(core.Stack):
    """_summary_

    Args:
        core (_type_): _description_
    """

    def __init__(self, scope: core.Construct, construct_id: str, **kwargs) -> None:
        super().__init__(scope, construct_id, **kwargs)

        plan = backup.BackupPlan.daily35_day_retention(self, "WaReviewToolDailyBackupPlan")

        plan.add_selection("WaReviewToolDailyBackupPlanSelection",
            resources=[
                backup.BackupResource.from_tag("app", "WaReviewTool"),  # All resources that are tagged stage=prod in the region/account
                backup.BackupResource.from_tag("backup", "daily"),  # All resources that are tagged stage=prod in the region/account
            ]
        )