Amazon.CDK.AWS.DSQL.Alpha
The CDK Construct Library for AWS::DSQL (Stability: Experimental)
Install
| Product | Versions |
|---|---|
| .NET |
README
Amazon Aurora DSQL Construct Library
The APIs of higher level constructs in this module are experimental and under active development. They are subject to non-backward compatible changes or removal in any future version. These are not subject to the Semantic Versioning model and breaking changes will be announced in the release notes. This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.
Amazon Aurora DSQL is a serverless, distributed relational database service optimized for transactional workloads. Aurora DSQL offers virtually unlimited scale and doesn't require you to manage infrastructure. The active-active highly available architecture provides 99.99% single-Region and 99.999% multi-Region availability.
The @aws-cdk/aws-dsql-alpha package contains primitives for setting up Aurora DSQL clusters.
using Amazon.CDK.AWS.DSQL.Alpha;
Creating an Aurora DSQL Cluster
To create an Aurora DSQL cluster, define a Cluster:
var cluster = new Cluster(this, "Cluster", new ClusterProps {
ClusterName = "my-dsql-cluster",
DeletionProtection = true
});
Granting Connect Access
You can grant IAM principals the ability to connect to the cluster:
var role = new Role(this, "DBRole", new RoleProps { AssumedBy = new AccountPrincipal(Account) });
var cluster = new Cluster(this, "Cluster");
// Use one of the following statements to grant the role the necessary permissions
cluster.GrantConnect(role); // Grant the role dsql:DbConnect
cluster.GrantConnectAdmin(role); // Grant the role dsql:DbConnectAdmin
cluster.Grant(role, "dsql:DbConnect");
Changes from Previous Version
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.