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.
Nguồn gốc
- Digest nội dung
- sha256:54df2cd83251c310f8476ffbd8f3f2cc8fb10f26ec6c8dae04c5c21bb67a91db
- Đã xuất bản
- 2026-11-10T10:14:32Z
- Danh tính ký
- https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main
Chữ ký
- Chính thứcapplication/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
Tham chiếu ở phiên bản này
oci://hub.aggrega.ai/featurerecipe/cloudformation/backup-aws-backup:1.0.0- Đích
- —
- Triển khai
- core/backup:1.0.0
Cung cấp
Các mẫu con trỏ xác định mà công thức này nối cho bên tiêu thụ.
Chưa khai báo mẫu provides nào.
Workload
Chưa khai báo mẫu khối lượng công việc nào.
Giá trị cục bộ
| Tên | Mẫu |
|---|---|
| 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) }} |
Ánh xạ values
Chưa khai báo ánh xạ values nào.
Quan hệ
Các cạnh có kiểu đi tới và đi từ các thực thể đã xuất bản khác. Một tham chiếu không có đích đã xuất bản được hiển thị là một cạnh bị đứt thay vì một liên kết.
Sử dụng
- triển khaitriển khai
core/backup:1.0.0
Được sử dụng bởi
Không có gì trong danh mục phụ thuộc vào thực thể này.