Skip to content

aaronbrighton/cdk-edgedb

Repository files navigation

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

About

CDK construct to make it faster to build EdgeDB backed applications on AWS with high availability using Aurora PostgreSQL and Fargate.

Resources

License

Stars

Watchers

Forks

Packages

No packages published