FeatureRecipe
backup-aws-backup
Component-scope FeatureRecipe for core/backup on CloudFormation through AWS Backup: writes a backup vault, a backup plan and a selection naming the attached database's Amazon RDS DB instance, as a fragment assembled into its host's stack. It backs up an instance realized by cloudformation/postgres-rds, cloudformation/mysql-rds or cloudformation/mariadb-rds. Each backup is a snapshot of the instance that AWS Backup takes on infra.schedule, read in UTC and started within an hour of that time, or daily at 05:00 UTC where it is unset, and keeps in the vault for infra.retention_days days. AWS Backup keeps a continuous backup, its point-in-time recovery, only where a rule asks for one, so left out or false it keeps snapshots alone; infra.point_in_time_recovery true asks, for at most 35 days. AWS Backup runs each backup under the existing IAM role infra.role_arn names, which the attachment must set. The build halts, naming the attachment, without infra.role_arn, on a host this realization cannot name — one realized by another Recipe, or a datastore AWS Backup does not protect, such as an OpenSearch Service domain or an Amazon MQ broker — on a schedule AWS Backup cannot keep, such as one starting more than once an hour, on a retention over 36500 days, on a store connection, infra.volume or infra.credentials_secret, since AWS Backup keeps backups in its vault, on infra.run_as_user or infra.run_as_group, since it runs no job in a cluster, and on a continuous backup kept over 35 days or beside infra.keep_automated_backups false. The instance keeps its automated backups beside these, for 7 days or as long as the continuous backup, unless the attachment sets infra.keep_automated_backups to false.
来源
- 内容摘要
- sha256:54df2cd83251c310f8476ffbd8f3f2cc8fb10f26ec6c8dae04c5c21bb67a91db
- 发布时间
- 2026-11-10T10:14:32Z
- 签名身份
- https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main
签名
- 官方application/vnd.dev.sigstore.bundle.v0.3+json
https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main
sha256:96b2a58d1173e113d47cac21ca38f831147eadf0c8cc8e7296afbbc3e71ccf99
此版本的引用
oci://hub.aggrega.ai/featurerecipe/cloudformation/backup-aws-backup:1.0.0- 目标
- —
- 实现
- core/backup:1.0.0
提供
此配方为使用方接入的确定性指针模板。
未声明 provides 模板。
Workload
未声明工作负载模板。
局部变量
| 名称 | 模板 |
|---|---|
| backup_name | {{ printf "%s-%s" .context.instance_id .attachment_name }} |
| backup_schedule | {{- $s := trim (toString (optional .infra "schedule" "")) -}} {{- $out := "" -}} {{- if $s -}} {{- $f := regexSplit `\s+` $s -1 -}} {{- if regexMatch `^(CRON_)?TZ=` (index $f 0) -}} {{- $out = "refuse:it names a time zone inside the expression, and AWS Backup reads this rule's expression in UTC: write the five fields alone, in UTC" -}} {{- else if ne (len $f) 5 -}} {{- $out = printf "refuse:it has %d fields where a cron expression has five, minute, hour, day of the month, month and day of the week: write the schedule as those five fields" (len $f) -}} {{- else -}} {{- $item := `^(\*|\?|[0-9]+(-[0-9]+)?)(/[0-9]+)?
|
| backup_vault_id | {{ capitalizedWords (printf "%s %s vault" .context.instance_id .attachment_name) }} |
| backup_plan_id | {{ capitalizedWords (printf "%s %s plan" .context.instance_id .attachment_name) }} |
| backup_selection_id | {{ capitalizedWords (printf "%s %s selection" .context.instance_id .attachment_name) }} |
值映射
未声明值映射。
关系
与其他已发布实体之间的类型化边。没有已发布目标的引用会呈现为断开的边,而不是链接。
使用
- 实现实现
core/backup:1.0.0
被使用
目录中没有任何内容依赖此实体。