Creating an Amazon Neptune database using AWS CDK v2

The AWS Cloud Development Kit (AWS CDK) allows developers to define cloud infrastructure in code and provision it through AWS CloudFormation. Version 2 of the AWS CDK is the next major version of the AWS CDK that, while being functionally equivalent to AWS CDK v1, aims to further simplify Infrastructure as Code (IAC) by following a single-package approach and improving the overall development experience.

Amazon Neptune is AWS's graph database offering that lets you provision managed graph database clusters and query them using Gremlin and SPARQL. Like other AWS resources, Amazon Neptune clusters can be created and managed using the AWS CDK.

Below is an example CDK stack that provisions an Amazon Neptune cluster:

import { Stack, StackProps } from "aws-cdk-lib";
import * as ec2 from "aws-cdk-lib/aws-ec2";
import * as neptune from "@aws-cdk/aws-neptune-alpha";
import { Construct } from "constructs";

export class MyStack extends Stack {
constructor(scope: Construct, id: string, props?: StackProps) {
super(scope, id, props);

const vpc = new ec2.Vpc(this, "my-vpc");

const cluster = new neptune.DatabaseCluster(this, "my-database-cluster", {
instanceType: neptune.InstanceType.T3_MEDIUM,

Related projects

Validate RDF data against SHACL shapes.
RDF, SHACL, Semantic Web, Linked Data
SPARQL federation is an incredibly useful feature for querying distributed RDF graphs.
Query and enrich structured data.
The evolution of RDF and the related technologies fuelled by the need to make statements about statements.
RDF, Linked Data, Semantic Web
An outline of the structure of the Gene Ontology RDF graph and ways to query it.
bioinformatics, RDF
SPARQL is a query language for graph data. The graph model of thinking fits well a lot of use cases.
Browse the full list of AWS services.
AWS, cloud computing
Author and visualize RDF-based knowledge graphs.
RDF, knowledge graphs, data visualization
Query SPARQL endpoints online.
An overview of the available RDF datasets and discovery tools for COVID-19.
linked data, RDF
Look up entities on the Semantic Web.
Semantic Web, Linked Data, RDF
Powered by Apple Mac minis, EC2 Mac instances allow developers to provision macOS-based environments in the cloud and benefit from the pay-as-you-go pricing model.
AWS, cloud computing

Made by Anton Vasetenkov.

If you want to say hi, you can reach me on LinkedIn or via email. If you like my work, you can support me by buying me a coffee.