@boostercloud/rocket-backup-aws-infrastructure
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

Backup Booster Rocket for AWS

This rocket adds backup capabilities to your Booster DynamoDB tables using the point-in-time recovery feature or the on-demand one.

After enabling this option, all DynamoDB tables generated by Booster Framework (read-models, event-stores, subscription store...) will be automatically backed up.

Disclaimer: As of the date of developing this rocket, and in the latest CDK version (1.85), the export to S3 feature is not available. That means that if you want to get advantage of this feature, you'll have to do it by using the AWS console or AWS CLI, until we can update this rocket with that feature.

Usage

Install this package as a dev dependency in your Booster project:

npm install --save-dev @boostercloud/rocket-backup-aws-infrastructure

In your Booster config file, pass a RocketDescriptor array to the AWS' Provider initializer configuring the backup rocket:

import { Booster } from '@boostercloud/framework-core'
import { BoosterConfig } from '@boostercloud/framework-types'
import * as AWS from '@boostercloud/framework-provider-aws'

Booster.configure('development', (config: BoosterConfig): void => {
  config.appName = 'my-store'
  config.provider = Provider([{
    packageName: '@boostercloud/rocket-backup-aws-infrastructure',
    parameters: {
      backupType: 'ON_DEMAND', // or 'POINT_IN_TIME'
      // onDemandBackupRules is optional and uses cron notation. Cron params are all optional too.
      onDemandBackupRules: {
        minute: '30',
        hour: '3',
        day: '15',
        month: '5',
        weekDay: '4', // Weekday is also supported, but can't be set along with 'day' parameter
        year: '2077',
      }
    } 
  }])
})

/@boostercloud/rocket-backup-aws-infrastructure/

    Package Sidebar

    Install

    npm i @boostercloud/rocket-backup-aws-infrastructure

    Weekly Downloads

    2

    Version

    1.0.5

    License

    Apache-2.0

    Unpacked Size

    8.89 kB

    Total Files

    10

    Last publish

    Collaborators

    • jfsagasti
    • gjaubert
    • juanjoman
    • adrian.theam
    • nickseagull
    • alvaroloes
    • javiertoledo
    • charlietfe
    • laiaperez
    • otoumas
    • rdiaz_theam
    • rdoria
    • carlosper88
    • adrian.gonzalez
    • adayb
    • marcastr0