-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(catalog): add lake formation support in catalog (#810)
* add lake formation support in catalog --------- Co-authored-by: vgkowski <[email protected]>
- Loading branch information
Showing
24 changed files
with
1,864 additions
and
189 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
framework/src/governance/examples/data-catalog-database-permissions.lit.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import * as cdk from 'aws-cdk-lib'; | ||
import { Bucket } from 'aws-cdk-lib/aws-s3'; | ||
import { Construct } from 'constructs'; | ||
import * as dsf from '../../index'; | ||
|
||
/// !show | ||
class ExampleDefaultDataCatalogDatabaseStack extends cdk.Stack { | ||
constructor(scope: Construct, id: string) { | ||
super(scope, id); | ||
const bucket = new Bucket(this, 'DataCatalogBucket'); | ||
|
||
new dsf.governance.DataCatalogDatabase(this, 'DataCatalogDatabase', { | ||
locationBucket: bucket, | ||
locationPrefix: '/databasePath', | ||
name: 'example-db', | ||
permissionModel: dsf.utils.PermissionModel.LAKE_FORMATION, | ||
}); | ||
} | ||
} | ||
/// !hide | ||
|
||
const app = new cdk.App(); | ||
new ExampleDefaultDataCatalogDatabaseStack(app, 'ExampleDefaultDataCatalogDatabaseStack'); |
23 changes: 23 additions & 0 deletions
23
framework/src/governance/examples/data-lake-catalog-permissions.lit.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import * as cdk from 'aws-cdk-lib'; | ||
import { Construct } from 'constructs'; | ||
import * as dsf from '../../index'; | ||
|
||
/// !show | ||
class ExampleDefaultDataLakeCatalogStack extends cdk.Stack { | ||
constructor(scope: Construct, id: string) { | ||
super(scope, id); | ||
const storage = new dsf.storage.DataLakeStorage(this, 'MyDataLakeStorage'); | ||
|
||
new dsf.governance.DataLakeCatalog(this, 'DataCatalog', { | ||
dataLakeStorage: storage, | ||
permissionModel: dsf.utils.PermissionModel.LAKE_FORMATION, | ||
}); | ||
} | ||
} | ||
/// !hide | ||
|
||
const app = new cdk.App(); | ||
new ExampleDefaultDataLakeCatalogStack(app, 'ExampleDefaultDataLakeCatalogStack'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.