Package: cdk-datalake-constructs
cdk-datalake-constructsVery experimental until version 1.0.This is my attempt at simplifying deploying various datalake strategies in AWS with the CDK.Table of ContentsFeaturesInstallationUsageBasicData MeshDocumentationConstruct API ReferenceSupporting this projectLicenseFeaturesEasy to Start - Create a Datalake in a few lines.Easy to Expand - Expand into multiple accounts and into a data mesh.Easy to Admin - Initial governance created on deploy.InstallationTypeScript/JavaScript$npminstall@randyridgley/cdk-datalake-constructsPython$pipinstallcdk-datalake-constructs.Net$nugetinstallCDK.Datalake.Constructs# See more: https://www.nuget.org/packages/CDK.Datalake.Constructs/UsageBasicimport{DataLake}from'@randyridgley/cdk-datalake-constructs';consttaxiPipes:Array<dl.Pipeline>=[pipelines.YellowPipeline(),pipelines.GreenPipeline(),]constdataProducts:Array<dl.DataProduct>=[{pipelines:taxiPipes,accountId:lakeAccountId,dataCatalogAccountId:'123456789012',databaseName:'taxi-product'}]//deploytolocalaccountnewdl.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});Data MeshYou can setup cross account access and pre-created policy tags for TBAC access in Lake FormationconstlakeAccountId=app.node.tryGetContext('lakeAccountId')constcentralAccountId=app.node.tryGetContext('centralAccountId')constconsumerAccountId=app.node.tryGetContext('consumerAccountId')consttaxiPipes:Array<dl.Pipeline>=[pipelines.YellowPipeline(),pipelines.GreenPipeline(),]constdataProducts:Array<dl.DataProduct>=[{pipelines:taxiPipes,accountId:lakeAccountId,dataCatalogAccountId:centralAccountId,databaseName:'taxi-product'}]//deploytothecentralaccountnewdl.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',//thisisstillonlysingleregiontoday},dataProducts:dataProducts,createDefaultDatabase:true});//deploytothedataproductaccountconstdatalake=newdl.DataLake(this,'LocalDataLake',{name:'local-lake',accountId:lakeAccountId,region:'us-east-1',stageName:Stage.PROD,dataProducts:dataProducts,createDefaultDatabase:true});//Optionallyaddcustomresourcetodownloadpublicdatasetproductsdatalake.createDownloaderCustomResource(accountId,region,props.stageName)//deploytoconsumeraccountconstdatalake=newdl.DataLake(this,'ConsumerDataLake',{name:'consumer-lake',accountId:consumerAccountId,region:'us-east-1',stageName:Stage.PROD,policyTags:{"access":"analyst,engineer,marketing"},createDefaultDatabase:true});DocumentationConstruct API ReferenceSeeAPI.md.Supporting this projectI'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! ❤️LicenseThis project is distributed under theMIT.