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:
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', {});
}
}