@c3l/cloudendure-staging-area
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

C3L: Cloudendure Staging Area

This is a basic CDK construct spawning up a CloudEndure staging area.

Please refer to general C3L documentation here.

Here is a reference diagram for a staging area needed for block replication with CloudEndure:

CloudEndure Architecture

Install this package:

npm i @c3l/cloudendure-staging-area

The following shows a sample usage, creating the staging area in a private subnet and attaching VPN Gateways to privately replicate using CloudEndure:

import cdk = require('@aws-cdk/cdk');
import { CloudendureStagingArea } from '../lib/cloudendure-staging-area';

export class TestStack extends cdk.Stack {
  constructor(scope: cdk.App, id: string, props?: cdk.StackProps) {
    super(scope, id, props);

    new CloudendureStagingArea(this, 'CloudendureStagingArea', {
      vpnAsn: 4242424242
    });
  }
}

Alternatively, replicate can be routed over the internet. The following will create a staging area for public CloudEndure replication hosts:

import cdk = require('@aws-cdk/cdk');
import { CloudendureStagingArea } from '../lib/cloudendure-staging-area';

export class TestStack extends cdk.Stack {
  constructor(scope: cdk.App, id: string, props?: cdk.StackProps) {
    super(scope, id, props);

    new CloudendureStagingArea(this, 'CloudendureStagingArea', {});
  }
}

Dependents (0)

Package Sidebar

Install

npm i @c3l/cloudendure-staging-area

Weekly Downloads

1

Version

1.3.0

License

ISC

Unpacked Size

20.9 kB

Total Files

11

Last publish

Collaborators

  • helloworlddan