aws-data-landing-zone 0.0.38 → 0.0.40

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.
Files changed (50) hide show
  1. package/.jsii +282 -56
  2. package/API.md +206 -4
  3. package/README.md +4 -4
  4. package/docs/astro.config.ts +4 -4
  5. package/docs/src/content/docs/getting-started.mdx +302 -0
  6. package/docs/src/content/docs/introduction.mdx +13 -7
  7. package/docs/src/content/docs/reference/api.md +206 -4
  8. package/docs/src/content/docs/reference/scripts-commands.mdx +223 -0
  9. package/lib/constructs/account-chatbots/index.js +1 -1
  10. package/lib/constructs/dlz-budget/index.js +1 -1
  11. package/lib/constructs/dlz-control-tower-control/control-tower-control.js +1 -1
  12. package/lib/constructs/dlz-lake-formation/dlz-lake-formation.js +1 -1
  13. package/lib/constructs/dlz-ssm-reader/dlz-ssm-reader-stack-cache.js +1 -1
  14. package/lib/constructs/dlz-ssm-reader/dlz-ssm-reader.js +1 -1
  15. package/lib/constructs/dlz-stack/index.js +1 -1
  16. package/lib/constructs/dlz-vpc/dlz-account-networks.js +1 -1
  17. package/lib/constructs/dlz-vpc/dlz-vpc.js +1 -1
  18. package/lib/constructs/dlz-vpc/network-address.js +1 -1
  19. package/lib/constructs/iam-identity-center/iam-identity-center-group.js +1 -1
  20. package/lib/constructs/iam-identity-center/iam-identity-center.js +1 -1
  21. package/lib/constructs/iam-identity-center/identity-store-user.js +1 -1
  22. package/lib/constructs/organization-policies/service-control-policy.js +1 -1
  23. package/lib/constructs/organization-policies/tag-policy.js +1 -1
  24. package/lib/data-landing-zone-client.js +1 -1
  25. package/lib/data-landing-zone-types.d.ts +22 -0
  26. package/lib/data-landing-zone-types.js +1 -1
  27. package/lib/data-landing-zone.d.ts +8 -2
  28. package/lib/data-landing-zone.js +9 -3
  29. package/lib/defaults.js +1 -1
  30. package/lib/lib/report/index.js +1 -1
  31. package/lib/scripts/bootstrap/index.d.ts +0 -4
  32. package/lib/scripts/bootstrap/index.js +1 -5
  33. package/lib/scripts/index.d.ts +40 -10
  34. package/lib/scripts/index.js +58 -9
  35. package/lib/stacks/organization/management-stack.js +1 -1
  36. package/lib/stacks/organization/security/audit/global-stack.js +1 -1
  37. package/lib/stacks/organization/security/audit/regional-stack.js +1 -1
  38. package/lib/stacks/organization/security/log/global-stack.js +1 -1
  39. package/lib/stacks/organization/security/log/regional-stack.js +1 -1
  40. package/lib/stacks/organization/workloads/base/global-stack.js +1 -1
  41. package/lib/stacks/organization/workloads/base/regional-stack.js +1 -1
  42. package/lib/stacks/organization/workloads/data-services-phase-1-stack/global-stack.js +1 -1
  43. package/lib/stacks/organization/workloads/data-services-phase-1-stack/regional-stack.js +1 -1
  44. package/lib/stacks/organization/workloads/network-connections-phase-1-stack/global-stack.js +1 -1
  45. package/lib/stacks/organization/workloads/network-connections-phase-2-stack/global-stack.js +1 -1
  46. package/lib/stacks/organization/workloads/network-connections-phase-2-stack/regional-stack.js +1 -1
  47. package/lib/stacks/organization/workloads/network-connections-phase-3-stack/global-stack.js +1 -1
  48. package/lib/stacks/organization/workloads/network-connections-phase-3-stack/regional-stack.js +1 -1
  49. package/package.json +1 -1
  50. package/docs/src/content/docs/getting-started.md +0 -8
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> | *No description.* |
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>
@@ -16045,6 +16052,31 @@ The route tables to be created in the VPC.
16045
16052
 
16046
16053
  ---
16047
16054
 
16055
+ ### ForceNoPythonArgumentLifting <a name="ForceNoPythonArgumentLifting" id="aws-data-landing-zone.ForceNoPythonArgumentLifting"></a>
16056
+
16057
+ This is a type that is used to force JSII to not "argument lift" the arguments.
16058
+
16059
+ Use it as the last argument of
16060
+ user facing function that you want to prevent argument lifting on. Example:
16061
+ ```
16062
+ public async diffAll(props: DataLandingZoneProps, _: ForceNoPythonArgumentLifting = {})
16063
+
16064
+ export class DataLandingZone {
16065
+ constructor(app: App, props: DataLandingZoneProps, _: ForceNoPythonArgumentLifting = {}) {
16066
+ ```
16067
+
16068
+ Then just call the function/constructor and "forget about the last parameter". It's an ugly hack but acceptable for
16069
+ the time being. Tracking issue: https://github.com/aws/jsii/issues/4721
16070
+
16071
+ #### Initializer <a name="Initializer" id="aws-data-landing-zone.ForceNoPythonArgumentLifting.Initializer"></a>
16072
+
16073
+ ```typescript
16074
+ import { ForceNoPythonArgumentLifting } from 'aws-data-landing-zone'
16075
+
16076
+ const forceNoPythonArgumentLifting: ForceNoPythonArgumentLifting = { ... }
16077
+ ```
16078
+
16079
+
16048
16080
  ### GitHubReference <a name="GitHubReference" id="aws-data-landing-zone.GitHubReference"></a>
16049
16081
 
16050
16082
  #### Initializer <a name="Initializer" id="aws-data-landing-zone.GitHubReference.Initializer"></a>
@@ -18665,13 +18697,14 @@ public readonly slackChatBots: {[ key: string ]: SlackChannelConfiguration};
18665
18697
  ```typescript
18666
18698
  import { DataLandingZone } from 'aws-data-landing-zone'
18667
18699
 
18668
- new DataLandingZone(app: App, props: DataLandingZoneProps)
18700
+ new DataLandingZone(app: App, props: DataLandingZoneProps, _?: ForceNoPythonArgumentLifting)
18669
18701
  ```
18670
18702
 
18671
18703
  | **Name** | **Type** | **Description** |
18672
18704
  | --- | --- | --- |
18673
- | <code><a href="#aws-data-landing-zone.DataLandingZone.Initializer.parameter.app">app</a></code> | <code>aws-cdk-lib.App</code> | *No description.* |
18674
- | <code><a href="#aws-data-landing-zone.DataLandingZone.Initializer.parameter.props">props</a></code> | <code><a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a></code> | *No description.* |
18705
+ | <code><a href="#aws-data-landing-zone.DataLandingZone.Initializer.parameter.app">app</a></code> | <code>aws-cdk-lib.App</code> | The CDK App. |
18706
+ | <code><a href="#aws-data-landing-zone.DataLandingZone.Initializer.parameter.props">props</a></code> | <code><a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a></code> | The DataLandingZoneProps. |
18707
+ | <code><a href="#aws-data-landing-zone.DataLandingZone.Initializer.parameter._">_</a></code> | <code><a href="#aws-data-landing-zone.ForceNoPythonArgumentLifting">ForceNoPythonArgumentLifting</a></code> | Ignore this parameter, it is used to force a consistent interface across TS and Python usage. |
18675
18708
 
18676
18709
  ---
18677
18710
 
@@ -18679,12 +18712,24 @@ new DataLandingZone(app: App, props: DataLandingZoneProps)
18679
18712
 
18680
18713
  - *Type:* aws-cdk-lib.App
18681
18714
 
18715
+ The CDK App.
18716
+
18682
18717
  ---
18683
18718
 
18684
18719
  ##### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.DataLandingZone.Initializer.parameter.props"></a>
18685
18720
 
18686
18721
  - *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
18687
18722
 
18723
+ The DataLandingZoneProps.
18724
+
18725
+ ---
18726
+
18727
+ ##### `_`<sup>Optional</sup> <a name="_" id="aws-data-landing-zone.DataLandingZone.Initializer.parameter._"></a>
18728
+
18729
+ - *Type:* <a href="#aws-data-landing-zone.ForceNoPythonArgumentLifting">ForceNoPythonArgumentLifting</a>
18730
+
18731
+ Ignore this parameter, it is used to force a consistent interface across TS and Python usage.
18732
+
18688
18733
  ---
18689
18734
 
18690
18735
  #### Methods <a name="Methods" id="Methods"></a>
@@ -20319,6 +20364,163 @@ public readonly reports: ReportItem[];
20319
20364
  ---
20320
20365
 
20321
20366
 
20367
+ ### Scripts <a name="Scripts" id="aws-data-landing-zone.Scripts"></a>
20368
+
20369
+ #### Initializers <a name="Initializers" id="aws-data-landing-zone.Scripts.Initializer"></a>
20370
+
20371
+ ```typescript
20372
+ import { Scripts } from 'aws-data-landing-zone'
20373
+
20374
+ new Scripts()
20375
+ ```
20376
+
20377
+ | **Name** | **Type** | **Description** |
20378
+ | --- | --- | --- |
20379
+
20380
+ ---
20381
+
20382
+ #### Methods <a name="Methods" id="Methods"></a>
20383
+
20384
+ | **Name** | **Description** |
20385
+ | --- | --- |
20386
+ | <code><a href="#aws-data-landing-zone.Scripts.boostrapAll">boostrapAll</a></code> | Bootstraps all accounts in all regions as defined by the config. |
20387
+ | <code><a href="#aws-data-landing-zone.Scripts.configureCostAllocationTags">configureCostAllocationTags</a></code> | Sets the Cost Allocation Tags for the organization. |
20388
+ | <code><a href="#aws-data-landing-zone.Scripts.deployAll">deployAll</a></code> | CDK deploy all stacks. |
20389
+ | <code><a href="#aws-data-landing-zone.Scripts.deploySelect">deploySelect</a></code> | CDK deploy stacks identified by the id. |
20390
+ | <code><a href="#aws-data-landing-zone.Scripts.diffAll">diffAll</a></code> | CDK diff all stacks. |
20391
+ | <code><a href="#aws-data-landing-zone.Scripts.diffSelect">diffSelect</a></code> | CDK diff stacks identified by the id. |
20392
+
20393
+ ---
20394
+
20395
+ ##### `boostrapAll` <a name="boostrapAll" id="aws-data-landing-zone.Scripts.boostrapAll"></a>
20396
+
20397
+ ```typescript
20398
+ public boostrapAll(props: DataLandingZoneProps, bootstrapRoleName?: string): void
20399
+ ```
20400
+
20401
+ Bootstraps all accounts in all regions as defined by the config.
20402
+
20403
+ ###### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.Scripts.boostrapAll.parameter.props"></a>
20404
+
20405
+ - *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
20406
+
20407
+ ---
20408
+
20409
+ ###### `bootstrapRoleName`<sup>Optional</sup> <a name="bootstrapRoleName" id="aws-data-landing-zone.Scripts.boostrapAll.parameter.bootstrapRoleName"></a>
20410
+
20411
+ - *Type:* string
20412
+
20413
+ ---
20414
+
20415
+ ##### `configureCostAllocationTags` <a name="configureCostAllocationTags" id="aws-data-landing-zone.Scripts.configureCostAllocationTags"></a>
20416
+
20417
+ ```typescript
20418
+ public configureCostAllocationTags(props: DataLandingZoneProps, _?: ForceNoPythonArgumentLifting): void
20419
+ ```
20420
+
20421
+ Sets the Cost Allocation Tags for the organization.
20422
+
20423
+ ###### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.Scripts.configureCostAllocationTags.parameter.props"></a>
20424
+
20425
+ - *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
20426
+
20427
+ ---
20428
+
20429
+ ###### `_`<sup>Optional</sup> <a name="_" id="aws-data-landing-zone.Scripts.configureCostAllocationTags.parameter._"></a>
20430
+
20431
+ - *Type:* <a href="#aws-data-landing-zone.ForceNoPythonArgumentLifting">ForceNoPythonArgumentLifting</a>
20432
+
20433
+ Ignore this parameter, it is used to force a consistent interface across TS and Python usage.
20434
+
20435
+ ---
20436
+
20437
+ ##### `deployAll` <a name="deployAll" id="aws-data-landing-zone.Scripts.deployAll"></a>
20438
+
20439
+ ```typescript
20440
+ public deployAll(props: DataLandingZoneProps, _?: ForceNoPythonArgumentLifting): void
20441
+ ```
20442
+
20443
+ CDK deploy all stacks.
20444
+
20445
+ ###### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.Scripts.deployAll.parameter.props"></a>
20446
+
20447
+ - *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
20448
+
20449
+ ---
20450
+
20451
+ ###### `_`<sup>Optional</sup> <a name="_" id="aws-data-landing-zone.Scripts.deployAll.parameter._"></a>
20452
+
20453
+ - *Type:* <a href="#aws-data-landing-zone.ForceNoPythonArgumentLifting">ForceNoPythonArgumentLifting</a>
20454
+
20455
+ Ignore this parameter, it is used to force a consistent interface across TS and Python usage.
20456
+
20457
+ ---
20458
+
20459
+ ##### `deploySelect` <a name="deploySelect" id="aws-data-landing-zone.Scripts.deploySelect"></a>
20460
+
20461
+ ```typescript
20462
+ public deploySelect(props: DataLandingZoneProps, id: string): void
20463
+ ```
20464
+
20465
+ CDK deploy stacks identified by the id.
20466
+
20467
+ ###### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.Scripts.deploySelect.parameter.props"></a>
20468
+
20469
+ - *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
20470
+
20471
+ ---
20472
+
20473
+ ###### `id`<sup>Required</sup> <a name="id" id="aws-data-landing-zone.Scripts.deploySelect.parameter.id"></a>
20474
+
20475
+ - *Type:* string
20476
+
20477
+ ---
20478
+
20479
+ ##### `diffAll` <a name="diffAll" id="aws-data-landing-zone.Scripts.diffAll"></a>
20480
+
20481
+ ```typescript
20482
+ public diffAll(props: DataLandingZoneProps, _?: ForceNoPythonArgumentLifting): void
20483
+ ```
20484
+
20485
+ CDK diff all stacks.
20486
+
20487
+ ###### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.Scripts.diffAll.parameter.props"></a>
20488
+
20489
+ - *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
20490
+
20491
+ ---
20492
+
20493
+ ###### `_`<sup>Optional</sup> <a name="_" id="aws-data-landing-zone.Scripts.diffAll.parameter._"></a>
20494
+
20495
+ - *Type:* <a href="#aws-data-landing-zone.ForceNoPythonArgumentLifting">ForceNoPythonArgumentLifting</a>
20496
+
20497
+ Ignore this parameter, it is used to force a consistent interface across TS and Python usage.
20498
+
20499
+ ---
20500
+
20501
+ ##### `diffSelect` <a name="diffSelect" id="aws-data-landing-zone.Scripts.diffSelect"></a>
20502
+
20503
+ ```typescript
20504
+ public diffSelect(props: DataLandingZoneProps, id: string): void
20505
+ ```
20506
+
20507
+ CDK diff stacks identified by the id.
20508
+
20509
+ ###### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.Scripts.diffSelect.parameter.props"></a>
20510
+
20511
+ - *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
20512
+
20513
+ ---
20514
+
20515
+ ###### `id`<sup>Required</sup> <a name="id" id="aws-data-landing-zone.Scripts.diffSelect.parameter.id"></a>
20516
+
20517
+ - *Type:* string
20518
+
20519
+ ---
20520
+
20521
+
20522
+
20523
+
20322
20524
  ## Protocols <a name="Protocols" id="Protocols"></a>
20323
20525
 
20324
20526
  ### IDlzControlTowerControl <a name="IDlzControlTowerControl" id="aws-data-landing-zone.IDlzControlTowerControl"></a>
package/README.md CHANGED
@@ -134,8 +134,8 @@ dlz.DataLandingZone(app,
134
134
  account_id='123456789012',
135
135
  type=dlz.DlzAccountType.DEVELOP,
136
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),
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
139
  ]
140
140
  ),
141
141
  dlz.DLzAccount(
@@ -143,8 +143,8 @@ dlz.DataLandingZone(app,
143
143
  account_id='123456789012',
144
144
  type=dlz.DlzAccountType.PRODUCTION,
145
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),
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
148
  ]
149
149
  ),
150
150
  ],
@@ -33,9 +33,9 @@ export default defineConfig({
33
33
  label: 'Introduction', slug: 'introduction'
34
34
  },
35
35
  // TODO: Complete docs
36
- // {
37
- // label: 'Getting Started', slug: 'getting-started'
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
- // { label: 'Scripts & commands', slug: 'introduction'},
116
+ { label: 'Scripts & commands', slug: 'reference/scripts-commands'},
117
117
  // { label: 'Roadmap', slug: 'introduction'},
118
118
  ]
119
119
  },
@@ -0,0 +1,302 @@
1
+ ---
2
+ title: Getting Started
3
+ description: Step-by-step guide to configuring and deploying the AWS Data Landing Zone
4
+ ---
5
+
6
+ import DualCode from "../../components/DualCode.astro";
7
+
8
+ :::caution
9
+ WIP: This part is still under development.
10
+ :::
11
+
12
+ This guide will walk you through the process of configuring and deploying the
13
+ **AWS Data Landing Zone**. The landing zone simplifies the setup of a secure,
14
+ scalable, and well-architected multi-account AWS environment. Let’s get started!
15
+
16
+ ---
17
+
18
+ ## Prerequisites
19
+
20
+ Before you begin, ensure you have the following tools installed and configured:
21
+
22
+ - **AWS CLI**: Installed and configured with credentials. Ensure you have
23
+ an **SSO User** or **IAM User** in the **management account** with
24
+ **admin access** or the necessary permissions to assume CDK roles
25
+ and perform deployments.
26
+ - **Node.js**: Version 14 or higher.
27
+ - **AWS CDK**: Installed globally using `npm install -g aws-cdk`.
28
+ - **Git**: For cloning repositories.
29
+
30
+ Additionally, if you plan to use the TypeScript scripts included with
31
+ the project, you can use the **profile name** for your AWS CLI
32
+ configuration that is specified in the `localProfile` property of the
33
+ project configuration file.
34
+
35
+ ---
36
+
37
+ ## Step 1: Create a New CDK Project
38
+
39
+ To get started, create a new AWS CDK project:
40
+
41
+ <DualCode>
42
+ <Fragment slot="ts">
43
+ ```bash
44
+ mkdir my-data-landing-zone
45
+ cd my-data-landing-zone
46
+ cdk init app --language=typescript
47
+ ```
48
+
49
+ </Fragment>
50
+ <Fragment slot="python">
51
+ ```bash
52
+ mkdir my-data-landing-zone
53
+ cd my-data-landing-zone
54
+ cdk init app --language=python
55
+ ```
56
+
57
+ </Fragment>
58
+ </DualCode>
59
+
60
+ This initializes a new CDK project with the necessary files and folder structure.
61
+
62
+ ---
63
+
64
+ ## Step 2: Add the DataChef AWS Data Landing Zone Package
65
+
66
+ Add the **DataChef** Data Landing Zone as a dependency to your project:
67
+
68
+ <DualCode>
69
+ <Fragment slot="ts">
70
+ ```bash
71
+ npm install aws-data-landing-zone
72
+ ```
73
+
74
+ </Fragment>
75
+ <Fragment slot="python">
76
+ ```bash
77
+ pip install aws-data-landing-zone
78
+ ```
79
+
80
+ </Fragment>
81
+ </DualCode>
82
+
83
+ ---
84
+
85
+ ## Step 3: Configuration
86
+
87
+ Now you need to config the basic parameters required for deploying DLZ.
88
+
89
+ **NOTE:** Make sure to replace all of the IDs with correct IDs related to your AWS
90
+ accounts.
91
+
92
+ <DualCode>
93
+ <Fragment slot="ts">
94
+ - For a complete example check [DLZ TypeScript Sample](https://github.com/DataChefHQ/aws-data-landing-zone-example-typescript).
95
+ ```ts
96
+ export const config: DataLandingZoneProps = {
97
+ localProfile: '', // TODO: Not required; Will be optional from next release
98
+ regions: {
99
+ global: Region.EU_WEST_1,
100
+ regional: [Region.US_EAST_1],
101
+ },
102
+ mandatoryTags: {
103
+ owner: ['backend'],
104
+ project: ['accounting'],
105
+ environment: ['development', 'staging', 'production'],
106
+ },
107
+ budgets: [
108
+ ...Defaults.budgets(100, 20, {}),
109
+ ],
110
+ securityHubNotifications: [
111
+ ],
112
+ organization: {
113
+ organizationId: 'RootOrganizationID',
114
+ root: {
115
+ accounts: {
116
+ management: {
117
+ accountId: 'YourRootAccountID',
118
+ },
119
+ },
120
+ controls: [],
121
+ },
122
+ ous: {
123
+ security: {
124
+ ouId: 'SecurityOrganizationUnitId',
125
+ accounts: {
126
+ log: {
127
+ accountId: 'YourLogsAccountID',
128
+ },
129
+ audit: {
130
+ accountId: 'YourAuditAccountID',
131
+ },
132
+ },
133
+ },
134
+ workloads: {
135
+ ouId: 'WorkloadOrganizationUnitId',
136
+ accounts: [
137
+ {
138
+ name: 'development',
139
+ accountId: 'YourDevelopmentAccountID',
140
+ type: DlzAccountType.DEVELOP,
141
+ },
142
+ ],
143
+ },
144
+ suspended: {
145
+ ouId: 'SuspendedOrganizationUnitId',
146
+ },
147
+ },
148
+ },
149
+ deploymentPlatform: {
150
+ gitHub: {
151
+ references: [
152
+ {
153
+ owner: 'DataChefHQ',
154
+ repo: 'data-landing-zone-example-typescript',
155
+ },
156
+ ],
157
+ },
158
+ },
159
+
160
+ };
161
+
162
+ ````
163
+
164
+
165
+ </Fragment>
166
+ <Fragment slot="python">
167
+ - For a complete example check [DLZ Python Sample](https://github.com/DataChefHQ/aws-data-landing-zone-example-python).
168
+ ```python
169
+ DataLandingZone(
170
+ app,
171
+ local_profile="", # TODO: Not required; Will be optional from next release
172
+ regions={
173
+ "global": Region.EU_WEST_1,
174
+ "regional": [Region.US_EAST_1],
175
+ },
176
+ mandatory_tags={
177
+ "owner": ["backend"],
178
+ "project": ["accounting"],
179
+ "environment": ["development", "staging", "production"],
180
+ },
181
+ budgets=Defaults.budgets(100, 20),
182
+ security_hub_notifications=[],
183
+ organization={
184
+ "organization_id": "RootOrganizationID",
185
+ "root": {
186
+ "accounts": {
187
+ "management": {
188
+ "account_id": "YourRootAccountID",
189
+ },
190
+ },
191
+ },
192
+ "ous": {
193
+ "security": {
194
+ "ou_id": "SecurityOrganizationUnitId",
195
+ "accounts": {
196
+ "log": {
197
+ "account_id": "YourLogsAccountID",
198
+ },
199
+ "audit": {
200
+ "account_id": "YourAuditAccountID",
201
+ },
202
+ },
203
+ },
204
+ "workloads": {
205
+ "ou_id": "WorkloadOrganizationUnitId",
206
+ "accounts": [
207
+ {
208
+ "name": "development",
209
+ "account_id": "YourDevelopmentAccountID",
210
+ "type": DlzAccountType.DEVELOP,
211
+ },
212
+ ],
213
+ },
214
+ "suspended": {
215
+ "ou_id": "SuspendedOrganizationUnitId",
216
+ },
217
+ },
218
+ },
219
+ )
220
+ ```
221
+
222
+ </Fragment>
223
+ </DualCode>
224
+
225
+ ---
226
+
227
+ ## Step 4: Add the Landing Zone to Your CDK Stack
228
+
229
+ Now you need to call the Landing Zone constructs from your CDK stacks.
230
+
231
+ <DualCode>
232
+ <Fragment slot="ts">
233
+ In your `lib/my-data-landing-zone-stack.ts` file, add the Data Landing Zone construct:
234
+ ```ts
235
+ import {App} from 'aws-cdk-lib';
236
+ import {config} from "./minimum_config";
237
+ import * as sns from 'aws-cdk-lib/aws-sns';
238
+ import { DataLandingZone } from '@DataChefHQ/data-landing-zone';
239
+
240
+ const app = new App();
241
+ const dlz = new DataLandingZone(app, config)
242
+
243
+ ````
244
+
245
+ </Fragment>
246
+ <Fragment slot="python">
247
+ In your `main.py` file, add the Data Landing Zone construct:
248
+ ```python
249
+ import aws_cdk as cdk
250
+ from aws_data_landing_zone import (
251
+ Defaults,
252
+ DlzAccountType,
253
+ Region,
254
+ DataLandingZone,
255
+ )
256
+
257
+ app = cdk.App()
258
+
259
+ DataLandingZone(
260
+ app,
261
+ ... # your config parameters
262
+ )
263
+
264
+ app.synth()
265
+ ```
266
+
267
+ </Fragment>
268
+ </DualCode>
269
+
270
+ ---
271
+
272
+ ## Step 5: Deploy the Landing Zone
273
+
274
+ ### 5.1 Bootstrap the Environment
275
+
276
+ Bootstrap your environment to prepare it for CDK deployments:
277
+
278
+ ```bash
279
+ cdk bootstrap aws://ACCOUNT_ID/REGION
280
+
281
+ ```
282
+
283
+ ### 5.2 Deploy the Stacks
284
+
285
+ Deploy the stack you created:
286
+
287
+ ```bash
288
+ cdk deploy
289
+
290
+ ```
291
+
292
+ ### 5.3 Verify Deployment
293
+
294
+ Once deployment completes, verify the resources in the AWS Management Console.
295
+
296
+ ---
297
+
298
+ ## Next Steps
299
+
300
+ - Explore the documentation to learn more about advanced configurations.
301
+ - Customize the stacks to meet your specific organizational needs.
302
+ - Add additional controls or policies as required.