
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
cdk-datalake-constructs
Advanced tools
AWS CDK Constructs that can be used to create datalakes/meshes and more
Very experimental until version 1.0. This is my attempt at simplifying deploying various datalake strategies in AWS with the CDK.
Table of Contents
TypeScript/JavaScript
$ npm install @randyridgley/cdk-datalake-constructs
Python
$ pip install cdk-datalake-constructs
.Net
$ nuget install CDK.Datalake.Constructs
# See more: https://www.nuget.org/packages/CDK.Datalake.Constructs/
import { DataLake } from '@randyridgley/cdk-datalake-constructs';
const taxiPipes: Array<dl.Pipeline> = [
pipelines.YellowPipeline(),
pipelines.GreenPipeline(),
]
const dataProducts: Array<dl.DataProduct> = [{
pipelines: taxiPipes,
accountId: lakeAccountId,
dataCatalogAccountId: '123456789012',
databaseName: 'taxi-product'
}]
// deploy to local account
new dl.DataLake(this, 'LocalDataLake', {
name: 'data-lake',
accountId: centralAccountId,
region: 'us-east-1',
policyTags: {
"classification": "public,confidential,highlyconfidential,restricted,critical",
"owner": "product,central,consumer"
},
stageName: Stage.PROD,
dataProducts: dataProducts,
createDefaultDatabase: false
});
You can setup cross account access and pre-created policy tags for TBAC access in Lake Formation
const lakeAccountId = app.node.tryGetContext('lakeAccountId')
const centralAccountId = app.node.tryGetContext('centralAccountId')
const consumerAccountId = app.node.tryGetContext('consumerAccountId')
const taxiPipes: Array<dl.Pipeline> = [
pipelines.YellowPipeline(),
pipelines.GreenPipeline(),
]
const dataProducts: Array<dl.DataProduct> = [{
pipelines: taxiPipes,
accountId: lakeAccountId,
dataCatalogAccountId: centralAccountId,
databaseName: 'taxi-product'
}]
// deploy to the central account
new dl.DataLake(this, 'CentralDataLake', {
name: 'central-lake',
accountId: centralAccountId,
region: 'us-east-1',
policyTags: {
"classification": "public,confidential,highlyconfidential,restricted,critical",
"owner": "product,central,consumer"
},
stageName: Stage.PROD,
crossAccount: {
consumerAccountIds: [consumerAccountId, lakeAccountId],
dataCatalogOwnerAccountId: centralAccountId,
region: 'us-east-1', // this is still only single region today
},
dataProducts: dataProducts,
createDefaultDatabase: true
});
// deploy to the data product account
const datalake = new dl.DataLake(this, 'LocalDataLake', {
name: 'local-lake',
accountId: lakeAccountId,
region: 'us-east-1',
stageName: Stage.PROD,
dataProducts: dataProducts,
createDefaultDatabase: true
});
// Optionally add custom resource to download public data set products
datalake.createDownloaderCustomResource(accountId, region, props.stageName)
// deploy to consumer account
const datalake = new dl.DataLake(this, 'ConsumerDataLake', {
name: 'consumer-lake',
accountId: consumerAccountId,
region: 'us-east-1',
stageName: Stage.PROD,
policyTags: {
"access": "analyst,engineer,marketing"
},
createDefaultDatabase: true
});
See API.md.
I'm working on this project in my free time, if you like my project, or found it helpful and would like to support me any contributions are much appreciated! ❤️
This project is distributed under the MIT.
FAQs
AWS CDK Constructs that can be used to create datalakes/meshes and more
We found that cdk-datalake-constructs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.