aws-data-landing-zone 0.0.37 → 0.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +202 -40
- package/API.md +141 -1
- package/CONTRIBUTING.MD +58 -0
- package/README.md +244 -1
- package/docs/README.md +2 -0
- package/docs/astro.config.ts +4 -4
- package/docs/cloudflare_build.sh +2 -0
- package/docs/src/content/docs/getting-started.mdx +302 -0
- package/docs/src/content/docs/introduction.mdx +16 -8
- package/docs/src/content/docs/reference/api.md +141 -1
- package/docs/src/content/docs/reference/scripts-commands.mdx +223 -0
- package/lib/constructs/account-chatbots/index.js +1 -1
- package/lib/constructs/dlz-budget/index.js +1 -1
- package/lib/constructs/dlz-control-tower-control/control-tower-control.js +1 -1
- package/lib/constructs/dlz-lake-formation/dlz-lake-formation.js +1 -1
- package/lib/constructs/dlz-ssm-reader/dlz-ssm-reader-stack-cache.js +1 -1
- package/lib/constructs/dlz-ssm-reader/dlz-ssm-reader.js +1 -1
- package/lib/constructs/dlz-stack/index.js +1 -1
- package/lib/constructs/dlz-vpc/dlz-account-networks.js +1 -1
- package/lib/constructs/dlz-vpc/dlz-vpc.js +1 -1
- package/lib/constructs/dlz-vpc/network-address.js +1 -1
- package/lib/constructs/iam-identity-center/iam-identity-center-group.js +1 -1
- package/lib/constructs/iam-identity-center/iam-identity-center.js +1 -1
- package/lib/constructs/iam-identity-center/identity-store-user.js +1 -1
- package/lib/constructs/organization-policies/service-control-policy.js +1 -1
- package/lib/constructs/organization-policies/tag-policy.js +1 -1
- package/lib/data-landing-zone-client.js +1 -1
- package/lib/data-landing-zone-types.d.ts +7 -0
- package/lib/data-landing-zone-types.js +1 -1
- package/lib/data-landing-zone.js +1 -1
- package/lib/defaults.js +1 -1
- package/lib/lib/report/index.js +1 -1
- package/lib/scripts/bootstrap/index.d.ts +0 -4
- package/lib/scripts/bootstrap/index.js +1 -5
- package/lib/scripts/index.d.ts +10 -10
- package/lib/scripts/index.js +28 -9
- package/lib/stacks/organization/management-stack.js +1 -1
- package/lib/stacks/organization/security/audit/global-stack.js +1 -1
- package/lib/stacks/organization/security/audit/regional-stack.js +1 -1
- package/lib/stacks/organization/security/log/global-stack.js +1 -1
- package/lib/stacks/organization/security/log/regional-stack.js +1 -1
- package/lib/stacks/organization/workloads/base/global-stack.js +1 -1
- package/lib/stacks/organization/workloads/base/regional-stack.js +1 -1
- package/lib/stacks/organization/workloads/data-services-phase-1-stack/global-stack.js +1 -1
- package/lib/stacks/organization/workloads/data-services-phase-1-stack/regional-stack.js +1 -1
- package/lib/stacks/organization/workloads/network-connections-phase-1-stack/global-stack.js +1 -1
- package/lib/stacks/organization/workloads/network-connections-phase-2-stack/global-stack.js +1 -1
- package/lib/stacks/organization/workloads/network-connections-phase-2-stack/regional-stack.js +1 -1
- package/lib/stacks/organization/workloads/network-connections-phase-3-stack/global-stack.js +1 -1
- package/lib/stacks/organization/workloads/network-connections-phase-3-stack/regional-stack.js +1 -1
- package/package.json +1 -1
- package/docs/src/content/docs/getting-started.md +0 -8
- package/no-op-force-build.txt +0 -1
package/API.md
CHANGED
|
@@ -14767,7 +14767,7 @@ const dataLandingZoneProps: DataLandingZoneProps = { ... }
|
|
|
14767
14767
|
| **Name** | **Type** | **Description** |
|
|
14768
14768
|
| --- | --- | --- |
|
|
14769
14769
|
| <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.budgets">budgets</a></code> | <code><a href="#aws-data-landing-zone.DlzBudgetProps">DlzBudgetProps</a>[]</code> | *No description.* |
|
|
14770
|
-
| <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.localProfile">localProfile</a></code> | <code>string</code> |
|
|
14770
|
+
| <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.localProfile">localProfile</a></code> | <code>string</code> | The the AWS CLI profile that will be used to run the Scripts. |
|
|
14771
14771
|
| <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.mandatoryTags">mandatoryTags</a></code> | <code><a href="#aws-data-landing-zone.MandatoryTags">MandatoryTags</a></code> | The values of the mandatory tags that all resources must have. |
|
|
14772
14772
|
| <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.organization">organization</a></code> | <code><a href="#aws-data-landing-zone.DLzOrganization">DLzOrganization</a></code> | *No description.* |
|
|
14773
14773
|
| <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.regions">regions</a></code> | <code><a href="#aws-data-landing-zone.DlzRegions">DlzRegions</a></code> | *No description.* |
|
|
@@ -14803,6 +14803,13 @@ public readonly localProfile: string;
|
|
|
14803
14803
|
|
|
14804
14804
|
- *Type:* string
|
|
14805
14805
|
|
|
14806
|
+
The the AWS CLI profile that will be used to run the Scripts.
|
|
14807
|
+
|
|
14808
|
+
For the `bootstrap` script, this profile must be an Admin of the root management account and it must be able to assume
|
|
14809
|
+
the `AWSControlTowerExecution` role created by ControlTower. This is an extremely powerful set of credentials and
|
|
14810
|
+
should be treated with care. The permissions can be reduced for the everyday use of the `diff` and `deploy` scripts
|
|
14811
|
+
but the `bootstrap` script requires full admin access.
|
|
14812
|
+
|
|
14806
14813
|
---
|
|
14807
14814
|
|
|
14808
14815
|
##### `mandatoryTags`<sup>Required</sup> <a name="mandatoryTags" id="aws-data-landing-zone.DataLandingZoneProps.property.mandatoryTags"></a>
|
|
@@ -20319,6 +20326,139 @@ public readonly reports: ReportItem[];
|
|
|
20319
20326
|
---
|
|
20320
20327
|
|
|
20321
20328
|
|
|
20329
|
+
### Scripts <a name="Scripts" id="aws-data-landing-zone.Scripts"></a>
|
|
20330
|
+
|
|
20331
|
+
#### Initializers <a name="Initializers" id="aws-data-landing-zone.Scripts.Initializer"></a>
|
|
20332
|
+
|
|
20333
|
+
```typescript
|
|
20334
|
+
import { Scripts } from 'aws-data-landing-zone'
|
|
20335
|
+
|
|
20336
|
+
new Scripts()
|
|
20337
|
+
```
|
|
20338
|
+
|
|
20339
|
+
| **Name** | **Type** | **Description** |
|
|
20340
|
+
| --- | --- | --- |
|
|
20341
|
+
|
|
20342
|
+
---
|
|
20343
|
+
|
|
20344
|
+
|
|
20345
|
+
#### Static Functions <a name="Static Functions" id="Static Functions"></a>
|
|
20346
|
+
|
|
20347
|
+
| **Name** | **Description** |
|
|
20348
|
+
| --- | --- |
|
|
20349
|
+
| <code><a href="#aws-data-landing-zone.Scripts.boostrapAll">boostrapAll</a></code> | *No description.* |
|
|
20350
|
+
| <code><a href="#aws-data-landing-zone.Scripts.configureCostAllocationTags">configureCostAllocationTags</a></code> | *No description.* |
|
|
20351
|
+
| <code><a href="#aws-data-landing-zone.Scripts.deployAll">deployAll</a></code> | *No description.* |
|
|
20352
|
+
| <code><a href="#aws-data-landing-zone.Scripts.deploySelect">deploySelect</a></code> | *No description.* |
|
|
20353
|
+
| <code><a href="#aws-data-landing-zone.Scripts.diffAll">diffAll</a></code> | *No description.* |
|
|
20354
|
+
| <code><a href="#aws-data-landing-zone.Scripts.diffSelect">diffSelect</a></code> | *No description.* |
|
|
20355
|
+
|
|
20356
|
+
---
|
|
20357
|
+
|
|
20358
|
+
##### `boostrapAll` <a name="boostrapAll" id="aws-data-landing-zone.Scripts.boostrapAll"></a>
|
|
20359
|
+
|
|
20360
|
+
```typescript
|
|
20361
|
+
import { Scripts } from 'aws-data-landing-zone'
|
|
20362
|
+
|
|
20363
|
+
Scripts.boostrapAll(props: DataLandingZoneProps, bootstrapRoleName?: string)
|
|
20364
|
+
```
|
|
20365
|
+
|
|
20366
|
+
###### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.Scripts.boostrapAll.parameter.props"></a>
|
|
20367
|
+
|
|
20368
|
+
- *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
|
|
20369
|
+
|
|
20370
|
+
---
|
|
20371
|
+
|
|
20372
|
+
###### `bootstrapRoleName`<sup>Optional</sup> <a name="bootstrapRoleName" id="aws-data-landing-zone.Scripts.boostrapAll.parameter.bootstrapRoleName"></a>
|
|
20373
|
+
|
|
20374
|
+
- *Type:* string
|
|
20375
|
+
|
|
20376
|
+
---
|
|
20377
|
+
|
|
20378
|
+
##### `configureCostAllocationTags` <a name="configureCostAllocationTags" id="aws-data-landing-zone.Scripts.configureCostAllocationTags"></a>
|
|
20379
|
+
|
|
20380
|
+
```typescript
|
|
20381
|
+
import { Scripts } from 'aws-data-landing-zone'
|
|
20382
|
+
|
|
20383
|
+
Scripts.configureCostAllocationTags(props: DataLandingZoneProps)
|
|
20384
|
+
```
|
|
20385
|
+
|
|
20386
|
+
###### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.Scripts.configureCostAllocationTags.parameter.props"></a>
|
|
20387
|
+
|
|
20388
|
+
- *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
|
|
20389
|
+
|
|
20390
|
+
---
|
|
20391
|
+
|
|
20392
|
+
##### `deployAll` <a name="deployAll" id="aws-data-landing-zone.Scripts.deployAll"></a>
|
|
20393
|
+
|
|
20394
|
+
```typescript
|
|
20395
|
+
import { Scripts } from 'aws-data-landing-zone'
|
|
20396
|
+
|
|
20397
|
+
Scripts.deployAll(props: DataLandingZoneProps)
|
|
20398
|
+
```
|
|
20399
|
+
|
|
20400
|
+
###### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.Scripts.deployAll.parameter.props"></a>
|
|
20401
|
+
|
|
20402
|
+
- *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
|
|
20403
|
+
|
|
20404
|
+
---
|
|
20405
|
+
|
|
20406
|
+
##### `deploySelect` <a name="deploySelect" id="aws-data-landing-zone.Scripts.deploySelect"></a>
|
|
20407
|
+
|
|
20408
|
+
```typescript
|
|
20409
|
+
import { Scripts } from 'aws-data-landing-zone'
|
|
20410
|
+
|
|
20411
|
+
Scripts.deploySelect(props: DataLandingZoneProps, id: string)
|
|
20412
|
+
```
|
|
20413
|
+
|
|
20414
|
+
###### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.Scripts.deploySelect.parameter.props"></a>
|
|
20415
|
+
|
|
20416
|
+
- *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
|
|
20417
|
+
|
|
20418
|
+
---
|
|
20419
|
+
|
|
20420
|
+
###### `id`<sup>Required</sup> <a name="id" id="aws-data-landing-zone.Scripts.deploySelect.parameter.id"></a>
|
|
20421
|
+
|
|
20422
|
+
- *Type:* string
|
|
20423
|
+
|
|
20424
|
+
---
|
|
20425
|
+
|
|
20426
|
+
##### `diffAll` <a name="diffAll" id="aws-data-landing-zone.Scripts.diffAll"></a>
|
|
20427
|
+
|
|
20428
|
+
```typescript
|
|
20429
|
+
import { Scripts } from 'aws-data-landing-zone'
|
|
20430
|
+
|
|
20431
|
+
Scripts.diffAll(props: DataLandingZoneProps)
|
|
20432
|
+
```
|
|
20433
|
+
|
|
20434
|
+
###### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.Scripts.diffAll.parameter.props"></a>
|
|
20435
|
+
|
|
20436
|
+
- *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
|
|
20437
|
+
|
|
20438
|
+
---
|
|
20439
|
+
|
|
20440
|
+
##### `diffSelect` <a name="diffSelect" id="aws-data-landing-zone.Scripts.diffSelect"></a>
|
|
20441
|
+
|
|
20442
|
+
```typescript
|
|
20443
|
+
import { Scripts } from 'aws-data-landing-zone'
|
|
20444
|
+
|
|
20445
|
+
Scripts.diffSelect(props: DataLandingZoneProps, id: string)
|
|
20446
|
+
```
|
|
20447
|
+
|
|
20448
|
+
###### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.Scripts.diffSelect.parameter.props"></a>
|
|
20449
|
+
|
|
20450
|
+
- *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
|
|
20451
|
+
|
|
20452
|
+
---
|
|
20453
|
+
|
|
20454
|
+
###### `id`<sup>Required</sup> <a name="id" id="aws-data-landing-zone.Scripts.diffSelect.parameter.id"></a>
|
|
20455
|
+
|
|
20456
|
+
- *Type:* string
|
|
20457
|
+
|
|
20458
|
+
---
|
|
20459
|
+
|
|
20460
|
+
|
|
20461
|
+
|
|
20322
20462
|
## Protocols <a name="Protocols" id="Protocols"></a>
|
|
20323
20463
|
|
|
20324
20464
|
### IDlzControlTowerControl <a name="IDlzControlTowerControl" id="aws-data-landing-zone.IDlzControlTowerControl"></a>
|
package/CONTRIBUTING.MD
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
This project uses a standard [Projen](https://projen.io/) setup. The only additions are:
|
|
4
|
+
- `husky` to run the git hooks on committing
|
|
5
|
+
- Documentation in the `docs` folder powered by Astro and the Starlight theme
|
|
6
|
+
|
|
7
|
+
## Getting started
|
|
8
|
+
|
|
9
|
+
Install packages and husky to run the git hooks on committing:
|
|
10
|
+
```
|
|
11
|
+
npm install
|
|
12
|
+
husky install
|
|
13
|
+
cd docs && npm install
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Husky runs following command **before committing** to check if your changed code passes the linter, prettier, tsc,
|
|
17
|
+
jsii compilation checks and tests:
|
|
18
|
+
```
|
|
19
|
+
npm run eslint
|
|
20
|
+
npm run default
|
|
21
|
+
npm run build
|
|
22
|
+
git add .
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Making a PR
|
|
26
|
+
|
|
27
|
+
1. Create an issue then indicate that you are working on it by:
|
|
28
|
+
- Commenting on the issue you created
|
|
29
|
+
- Assigning yourself to the issue
|
|
30
|
+
- Create a draft PR
|
|
31
|
+
2. This is to keep an accurate [roadmap](https://github.com/orgs/DataChefHQ/projects/4) and ensure that
|
|
32
|
+
no one is working on the same thing at the same time.
|
|
33
|
+
3. Create a fork form of the repository
|
|
34
|
+
4. Create a branch of the `main` branch with a meaningful name
|
|
35
|
+
5. Make your changes on your branch
|
|
36
|
+
6. Update the documentation if necessary. Preview your documentation changes by running
|
|
37
|
+
`cd docs && npm run dev:development`. A local server will be started at `http://localhost:4321/` to preview your
|
|
38
|
+
changes.
|
|
39
|
+
7. Write tests for your changes
|
|
40
|
+
8. Push your changes to your branch
|
|
41
|
+
9. Create a PR from your branch to the `main` branch of the original repository. PR names must follow the
|
|
42
|
+
[Conventional Commits](https://gist.github.com/Zekfad/f51cb06ac76e2457f11c80ed705c95a3) standard
|
|
43
|
+
Available PR name types:
|
|
44
|
+
- feat
|
|
45
|
+
- fix
|
|
46
|
+
- docs
|
|
47
|
+
- ci
|
|
48
|
+
- chore
|
|
49
|
+
10. Add a good description of your changes in the PR, and link the issue you are working on.
|
|
50
|
+
|
|
51
|
+
## Documentation Previews
|
|
52
|
+
|
|
53
|
+
The documentation site is deployed with Cloudflare Pages. Cloudflare automatically deploys any branch with the prefix
|
|
54
|
+
`preview-`. Only project admins can create `preview-` branches (they are protected).
|
|
55
|
+
|
|
56
|
+
If you are making many big changes and would like to preview the deployed site, reach out to an admin (comment in the
|
|
57
|
+
issue) so that they can create a preview branch for you.
|
|
58
|
+
|
package/README.md
CHANGED
|
@@ -1,3 +1,246 @@
|
|
|
1
1
|
# Data Landing Zone
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<!-- TOC -->
|
|
4
|
+
* [Getting Started](#getting-started)
|
|
5
|
+
* [Typescript](#typescript)
|
|
6
|
+
* [Python](#python-example)
|
|
7
|
+
* [Key Features](#key-features)
|
|
8
|
+
* [Intended Audience](#intended-audience)
|
|
9
|
+
* [Core Principles](#core-principles)
|
|
10
|
+
* [Integrated AWS Services](#integrated-aws-services)
|
|
11
|
+
* [How it works](#how-it-works)
|
|
12
|
+
* [Sponsors](#sponsors)
|
|
13
|
+
* [Contributing](#contributing)
|
|
14
|
+
* [Docs](#docs)
|
|
15
|
+
* [Roadmap](#roadmap)
|
|
16
|
+
<!-- TOC -->
|
|
17
|
+
|
|
18
|
+
The **Data Landing Zone (DLZ)** is a CDK construct designed to accelerate AI and data-related projects. It provides an
|
|
19
|
+
opinionated Landing Zone, laying the foundation for a multi-account AWS strategy, so you can focus on delivering data
|
|
20
|
+
and AI solutions.
|
|
21
|
+
|
|
22
|
+
The DLZ can be deployed in existing AWS Organizations or used in greenfield projects. It supports setups ranging
|
|
23
|
+
from small organizations with a few accounts to large enterprises with hundreds of accounts.
|
|
24
|
+
|
|
25
|
+
See the Documentation Website: https://datalandingzone.com/ for more information.
|
|
26
|
+
|
|
27
|
+
The CDK construct is available in both TypeScript and Python. Example GitHub repositories showing usage:
|
|
28
|
+
- [TypeScript Example GitHub Repo](https://github.com/DataChefHQ/aws-data-landing-zone-example-typescript)
|
|
29
|
+
- [Python Example GitHub Repo](https://github.com/DataChefHQ/aws-data-landing-zone-example-python)
|
|
30
|
+
|
|
31
|
+
## Getting Started
|
|
32
|
+
|
|
33
|
+
### Typescript
|
|
34
|
+
|
|
35
|
+
Install the [aws-data-landing-zone](https://www.npmjs.com/package/aws-data-landing-zone) CDK construct from NPM:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
npm install aws-data-landing-zone
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Use the construct as a stack in your CDK application. Replace the `organizationId`, `ouId`, `ous`, `accountId`, and
|
|
42
|
+
`regions` with your own values as per AWS Control Tower & AWS Organizations.
|
|
43
|
+
|
|
44
|
+
The example below shows a simple DLZ setup with two accounts, one for development and one for production, creating
|
|
45
|
+
two non-overlapping VPCs in two regions in each account.
|
|
46
|
+
|
|
47
|
+
```ts
|
|
48
|
+
import {App} from 'aws-cdk-lib';
|
|
49
|
+
import { DataLandingZone } from '@DataChefHQ/data-landing-zone';
|
|
50
|
+
|
|
51
|
+
const app = new App();
|
|
52
|
+
const dlz = new DataLandingZone(app, {
|
|
53
|
+
...
|
|
54
|
+
regions: {
|
|
55
|
+
global: Region.EU_WEST_1,
|
|
56
|
+
regional: [Region.US_EAST_1],
|
|
57
|
+
},
|
|
58
|
+
organization: {
|
|
59
|
+
organizationId: 'o-0f5h921gk9',
|
|
60
|
+
root: { accounts: { management: { accountId: '123456789012', }, }, },
|
|
61
|
+
ous: {
|
|
62
|
+
workloads: {
|
|
63
|
+
ouId: 'ou-h2l0-gjr36ikn',
|
|
64
|
+
accounts: [{
|
|
65
|
+
name: 'development',
|
|
66
|
+
accountId: '123456789012',
|
|
67
|
+
type: DlzAccountType.DEVELOP,
|
|
68
|
+
vpcs: [
|
|
69
|
+
Defaults.vpcClassB3Private3Public(0, Region.US_EAST_1),
|
|
70
|
+
Defaults.vpcClassB3Private3Public(1, Region.EU_WEST_1),
|
|
71
|
+
],
|
|
72
|
+
},{
|
|
73
|
+
name: 'production',
|
|
74
|
+
accountId: '123456789012',
|
|
75
|
+
type: DlzAccountType.PRODUCTION,
|
|
76
|
+
vpcs: [
|
|
77
|
+
Defaults.vpcClassB3Private3Public(2, Region.US_EAST_1),
|
|
78
|
+
Defaults.vpcClassB3Private3Public(3, Region.EU_WEST_1),
|
|
79
|
+
],
|
|
80
|
+
},
|
|
81
|
+
|
|
82
|
+
...AS MANY ACCOUNTS AS DESIRED...
|
|
83
|
+
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
...
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Continue reading [Getting Started](https://datalandingzone.com/getting-started/) on the DLZ documentation site.
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Python
|
|
96
|
+
|
|
97
|
+
Install the [aws-data-landing-zone](https://pypi.org/project/aws-data-landing-zone/#description) CDK construct from PyPi:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
pip install aws-data-landing-zone
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Use the construct as a stack in your CDK application. Replace the `organizationId`, `ouId`, `ous`, `accountId`, and
|
|
104
|
+
`regions` with your own values as per AWS Control Tower & AWS Organizations.
|
|
105
|
+
|
|
106
|
+
The example below shows a simple DLZ setup with two accounts, one for development and one for production, creating
|
|
107
|
+
two non-overlapping VPCs in two regions in each account.
|
|
108
|
+
|
|
109
|
+
```python
|
|
110
|
+
#!/usr/bin/env python3
|
|
111
|
+
import aws_cdk as cdk
|
|
112
|
+
import recipes_dlz as dlz
|
|
113
|
+
|
|
114
|
+
app = cdk.App()
|
|
115
|
+
dlz.DataLandingZone(app,
|
|
116
|
+
local_profile="ct-sandbox-exported",
|
|
117
|
+
regions=dlz.DlzRegions(
|
|
118
|
+
global_=dlz.Region.EU_WEST_1,
|
|
119
|
+
regional=[dlz.Region.US_EAST_1],
|
|
120
|
+
),
|
|
121
|
+
organization=dlz.DLzOrganization(
|
|
122
|
+
organization_id='o-0f5h921gk9',
|
|
123
|
+
root=dlz.RootOptions(
|
|
124
|
+
accounts=dlz.OrgRootAccounts(
|
|
125
|
+
management=dlz.DLzManagementAccount(account_id='123456789012'),
|
|
126
|
+
),
|
|
127
|
+
),
|
|
128
|
+
ous=dlz.OrgOus(
|
|
129
|
+
workloads=dlz.OrgOuWorkloads(
|
|
130
|
+
ou_id='ou-h2l0-gjr36ikn',
|
|
131
|
+
accounts=[
|
|
132
|
+
dlz.DLzAccount(
|
|
133
|
+
name='development',
|
|
134
|
+
account_id='123456789012',
|
|
135
|
+
type=dlz.DlzAccountType.DEVELOP,
|
|
136
|
+
vpcs=[
|
|
137
|
+
*dlz.Defaults.vpc_class_b3_private3_public(0, dlz.Region.US_EAST_1),
|
|
138
|
+
*dlz.Defaults.vpc_class_b3_private3_public(1, dlz.Region.EU_WEST_1),
|
|
139
|
+
]
|
|
140
|
+
),
|
|
141
|
+
dlz.DLzAccount(
|
|
142
|
+
name='production',
|
|
143
|
+
account_id='123456789012',
|
|
144
|
+
type=dlz.DlzAccountType.PRODUCTION,
|
|
145
|
+
vpcs=[
|
|
146
|
+
*dlz.Defaults.vpc_class_b3_private3_public(2, dlz.Region.US_EAST_1),
|
|
147
|
+
*dlz.Defaults.vpc_class_b3_private3_public(3, dlz.Region.EU_WEST_1),
|
|
148
|
+
]
|
|
149
|
+
),
|
|
150
|
+
],
|
|
151
|
+
),
|
|
152
|
+
)
|
|
153
|
+
),
|
|
154
|
+
)
|
|
155
|
+
app.synth()
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
Continue reading [Getting Started](https://datalandingzone.com/getting-started/) on the DLZ documentation site.
|
|
159
|
+
|
|
160
|
+
## Key Features
|
|
161
|
+
|
|
162
|
+
Notable features of the DLZ include:
|
|
163
|
+
|
|
164
|
+
- A CDK construct that can be used in TS and Python
|
|
165
|
+
- Opinionated but configurable and extendable. Each stack and nested component can be extended if needed.
|
|
166
|
+
- Leverages AWS Control Tower. Works with existing or new AWS Control Tower setups.
|
|
167
|
+
- Suitable for greenfield projects or integration with existing AWS resources.
|
|
168
|
+
- Deployable using any build systems like GitHub, GitLab, Jenkins, or locally.
|
|
169
|
+
- Generates compliance reports, reporting the Control Tower Standards, SecurityHub controls, Config Rules and
|
|
170
|
+
Service Control Policies enabled in each account.
|
|
171
|
+
- Implements an internal wave- and stage-based deployment strategy for dependency management.
|
|
172
|
+
- Includes helper scripts and Standard Operating Procedures (SOPs) for routine tasks.
|
|
173
|
+
- Accompanied by comprehensive documentation.
|
|
174
|
+
|
|
175
|
+
## Intended Audience
|
|
176
|
+
|
|
177
|
+
The DLZ handles the responsibilities and routine tasks typically managed by a Cloud Center of Excellence (CCoE) team.
|
|
178
|
+
It's easy enough for Data Engineers to use on their own, but flexible enough to be customized and fine-tuned by
|
|
179
|
+
experienced Cloud Engineers.
|
|
180
|
+
|
|
181
|
+
It's important to establish the following responsibilities to understand what is in and out of scope for the DLZ:
|
|
182
|
+
- **In scope** - Any CCoE responsibilities and tasks, such as account management, security, networking, compliance, etc.
|
|
183
|
+
- **Out of scope** - Application development, data engineering, and data science tasks.
|
|
184
|
+
|
|
185
|
+
## Core Principles
|
|
186
|
+
|
|
187
|
+
The DLZ adheres to the following principles:
|
|
188
|
+
|
|
189
|
+
1. Opinionated but configurable defaults to suit diverse needs.
|
|
190
|
+
2. High levels of automation with manual SOPs where needed.
|
|
191
|
+
3. Simplicity and ease of understanding over complexity
|
|
192
|
+
4. Focused scope, limited to Landing Zone responsibilities.
|
|
193
|
+
|
|
194
|
+
## Integrated AWS Services
|
|
195
|
+
|
|
196
|
+
- **AWS Organizations:** Seamless multi-account management.
|
|
197
|
+
- **AWS Budgets:** Track spending by tags with notifications via Slack, Teams, or email.
|
|
198
|
+
- **Service Control Policies (SCPs):** Manage service deny lists.
|
|
199
|
+
- **Tag Policies:** Enforce resource tagging for spend tracking and ownership.
|
|
200
|
+
- **Control Tower Controls:** Opinionated defaults for preventive, detective, and proactive standards.
|
|
201
|
+
- **AWS Security Hub** and **AWS Config:** Additional standards not covered by Control Tower. Notifications are
|
|
202
|
+
delivered via Slack, Teams, or email
|
|
203
|
+
- **Network Management:**
|
|
204
|
+
- Non-overlapping **VPCs** across accounts.
|
|
205
|
+
- **NAT Gateways** or instances for outbound private access.
|
|
206
|
+
- **VPC Peering** for cross-account/region communication.
|
|
207
|
+
- **Bastion Hosts** with **AWS SSM** for secure private resource access.
|
|
208
|
+
- Simplified routing configurations.
|
|
209
|
+
- **IAM Identity Center (SSO):**
|
|
210
|
+
- User management with **AWS Identity Store** or external IDPs (e.g., Google, Active Directory).
|
|
211
|
+
- Manage **Permission Sets**
|
|
212
|
+
- Manage **Access Groups** to assign Users to Accounts with a given Permission Set
|
|
213
|
+
- **Permission Boundaries:** Prevent privilege escalation for all IAM roles and users.
|
|
214
|
+
- Configure **Lake Formation** for Data Lake management, including:
|
|
215
|
+
- General settings, like admins, version and setting hybrid iam mode
|
|
216
|
+
- Create **Tags** and specify their permissions for use within the same account and when sharing to other accounts.
|
|
217
|
+
- Optionally, set **Tag Permissions** on Tags. This is usually out of scope for DLZ, but can be configured.
|
|
218
|
+
|
|
219
|
+
## How it works
|
|
220
|
+
|
|
221
|
+
The DLZ defines all accounts and resources in a single CDK construct that can be used in Typescript or Python CDK
|
|
222
|
+
project.
|
|
223
|
+
|
|
224
|
+
The DLZ deploys resources into specified AWS accounts. These accounts must be created manually (SOP provided) in the
|
|
225
|
+
workloads OU, and their Account IDs must be provided in the DLZ configuration. Each account is designated
|
|
226
|
+
as either `development` or `production` to enable controlled, staged deployments, including the option for manual
|
|
227
|
+
approvals in production environments.
|
|
228
|
+
|
|
229
|
+
The construct processes the provided configuration to create logical deployment layers for resources. Each layer
|
|
230
|
+
consists of a Global Wave and optionally one or more Regional Waves. This structure ensures that all `global` stacks
|
|
231
|
+
for the accounts are deployed before the `regional` stacks. Resources in the `global` stack are region-independent, such
|
|
232
|
+
as IAM roles, whereas resources like VPCs can be deployed in both `global` and `regional` stacks if configured as such.
|
|
233
|
+
|
|
234
|
+
Continue reading the [Introduction](https://datalandingzone.com/introduction/) on the Data Landing Zone documentation site.
|
|
235
|
+
|
|
236
|
+
## Sponsors
|
|
237
|
+
Proudly sponsored and created by [DataChef](https://datachef.co.za/)
|
|
238
|
+
|
|
239
|
+
## Contributing
|
|
240
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for more info
|
|
241
|
+
|
|
242
|
+
## Docs
|
|
243
|
+
Can be found at https://datalandingzone.com/
|
|
244
|
+
|
|
245
|
+
## Roadmap
|
|
246
|
+
Can be found in the [here](https://github.com/orgs/DataChefHQ/projects/4)
|
package/docs/README.md
CHANGED
|
@@ -53,3 +53,5 @@ All commands are run from the root of the project, from a terminal:
|
|
|
53
53
|
## 👀 Want to learn more?
|
|
54
54
|
|
|
55
55
|
Check out [Starlight’s docs](https://starlight.astro.build/), read [the Astro documentation](https://docs.astro.build), or jump into the [Astro Discord server](https://astro.build/chat).
|
|
56
|
+
|
|
57
|
+
-
|
package/docs/astro.config.ts
CHANGED
|
@@ -33,9 +33,9 @@ export default defineConfig({
|
|
|
33
33
|
label: 'Introduction', slug: 'introduction'
|
|
34
34
|
},
|
|
35
35
|
// TODO: Complete docs
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
{
|
|
37
|
+
label: 'Getting Started', slug: 'getting-started'
|
|
38
|
+
},
|
|
39
39
|
// {
|
|
40
40
|
// label: 'Tutorial',
|
|
41
41
|
// collapsed: true,
|
|
@@ -113,7 +113,7 @@ export default defineConfig({
|
|
|
113
113
|
// TODO: Complete docs
|
|
114
114
|
// { label: 'Defaults', slug: 'introduction'},
|
|
115
115
|
// { label: 'Config sharing', slug: 'introduction'},
|
|
116
|
-
|
|
116
|
+
{ label: 'Scripts & commands', slug: 'reference/scripts-commands'},
|
|
117
117
|
// { label: 'Roadmap', slug: 'introduction'},
|
|
118
118
|
]
|
|
119
119
|
},
|
package/docs/cloudflare_build.sh
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
|
|
3
|
+
# TODO: See how we can optimize this, probably ship the headless browser for OS with
|
|
3
4
|
npx playwright install
|
|
5
|
+
# npx playwright install-deps Cloudflare complains in build logs but it works fine without this
|
|
4
6
|
|
|
5
7
|
if [ "$CF_PAGES_BRANCH" = "main" ]; then
|
|
6
8
|
npm run "build:production"
|