cdk-edgedb
v1.0.2
Published
Using Aurora PostgreSQL and Fargate provision a highly-available EdgeDB database deployment that is accessible from the internet.
Downloads
2
Readme
cdk-edgedb
See cdk-edgedb-demo for a demo service making use of this construct.
Usage (within a CDK Application)
If you're not familiar with using AWS CDK to build on AWS, please check out the following resources:
- https://aws.amazon.com/cdk/
- https://cdkworkshop.com/
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: '[email protected]',
},
});
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