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", {
      vpc,
      instanceType: neptune.InstanceType.T3_MEDIUM,
    });
  }
}

See also

Trihydrogen Cation Poster, Ball-and-Stick Model, English-Labeled
$19.99

A poster featuring the ball-and-stick model of the trihydrogen cation.

Pluto IPA Transcription Poster
$14.99

A poster featuring the phonetic transcription of "Pluto" in the International Phonetic Alphabet (IPA).

Green Fluorescent Protein Poster, Technical Illustration, English-Labeled
$19.99

A poster featuring the green fluorescent protein structure.

Hausa Alphabet Poster, English-Labeled
$17.99

The Hausa alphabet chart.

луноход Morphemic Analysis Poster
$14.99

A poster featuring the morphemic analysis of the Russian word луноход.

AWS Services Crossword

A daily crossword puzzle to test your knowledge of AWS services.

Why federation is a game-changing feature of SPARQL

SPARQL federation is an incredibly useful feature for querying distributed RDF graphs.

Introduction to SPARQL

SPARQL is a query language for graph data. The graph model of thinking fits well a lot of use cases.

Amazon EC2 Mac instances: Provisioning macOS compute environments in the AWS cloud

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.

Turtle Inspector

Inspect the RDF content of Turtle files.

All prices listed are in United States Dollars (USD). Visual representations of products are intended for illustrative purposes. Actual products may exhibit variations in color, texture, or other characteristics inherent to the manufacturing process. The products' design and underlying technology are protected by applicable intellectual property laws. Unauthorized reproduction or distribution is prohibited.