1.0.2 • Published 2 years ago

cdk-edgedb v1.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

cdk-edgedb

See cdk-edgedb-demo for a demo service making use of this construct.

Architecture

Usage (within a CDK Application)

If you're not familiar with using AWS CDK to build on AWS, please check out the following resources:

This CDK construct can be added to your CDK application by installing it from NPM:

npm install cdk-edgedb

Using custom domain and public CA (Let's Encrypt) signed TLS certificate

Where hostedZoneId and zoneName match a domain that exists within your AWS account as a Route53 hosted zone.

import * as edgedb from 'cdk-edgedb';
...
const edgeDB = new edgedb.EdgeDB(this, 'EdgeDB', {
    customDomain: {
        hostedZoneId: 'ZRZFDEAGRDZ0K',
        zoneName: 'yourdomain.com',
        name: 'edgedb.yourdomain.com',
        email: 'yourname@emailprovider.com',
    },
});

Using auto-generated NLB (Network Load Balancer) endpoint and self-signed certificates

import * as edgedb from 'cdk-edgedb';
...
const edgeDB = new edgedb.EdgeDB(this, 'EdgeDB');

Turning off high availability (single EdgeDB/Aurora instance instead of two)

import * as edgedb from 'cdk-edgedb';
...
const edgeDB = new edgedb.EdgeDB(this, 'EdgeDB', {
    highAvailability: false,
});

See API.md