aws-data-landing-zone 0.0.39 → 0.0.41
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 +219 -162
- package/API.md +118 -46
- package/README.md +6 -6
- package/docs/astro.config.ts +17 -14
- package/docs/src/content/docs/components/account-management/accounts.mdx +142 -0
- package/docs/src/content/docs/components/account-management/budgets.mdx +152 -0
- package/docs/src/content/docs/components/account-management/imgs/account_factory_settings.png +0 -0
- package/docs/src/content/docs/components/account-management/imgs/aws_new_account_1.png +0 -0
- package/docs/src/content/docs/components/account-management/imgs/aws_new_account_2.png +0 -0
- package/docs/src/content/docs/components/account-management/imgs/aws_new_account_3.png +0 -0
- package/docs/src/content/docs/components/account-management/imgs/aws_new_account_4.png +0 -0
- package/docs/src/content/docs/components/account-management/imgs/aws_new_account_5.png +0 -0
- package/docs/src/content/docs/components/account-management/imgs/aws_organisation_ids_final.png +0 -0
- package/docs/src/content/docs/components/account-management/regions.mdx +68 -0
- package/docs/src/content/docs/components/account-management/service-deny-list.mdx +60 -0
- package/docs/src/content/docs/components/account-management/sop-account-setup.mdx +40 -0
- package/docs/src/content/docs/components/account-management/sop-add-account.mdx +121 -0
- package/docs/src/content/docs/components/account-management/sop-initial-control-tower-setup.mdx +205 -0
- package/docs/src/content/docs/components/account-management/tagging.mdx +130 -0
- package/docs/src/content/docs/components/build-system/ci-integration.mdx +7 -8
- package/docs/src/content/docs/getting-started.mdx +187 -159
- package/docs/src/content/docs/introduction.mdx +4 -5
- package/docs/src/content/docs/reference/api.md +118 -46
- package/docs/src/content/docs/reference/defaults.mdx +62 -0
- package/docs/src/content/docs/reference/scripts-commands.mdx +77 -40
- package/docs-old/rough-docs/default-notification/default-notification.md +14 -3
- package/lib/constructs/account-chatbots/index.d.ts +17 -0
- package/lib/constructs/account-chatbots/index.js +2 -2
- 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 +24 -0
- package/lib/data-landing-zone-types.js +1 -1
- package/lib/data-landing-zone.d.ts +8 -2
- package/lib/data-landing-zone.js +9 -3
- package/lib/defaults.js +1 -1
- package/lib/lib/report/index.js +1 -1
- package/lib/scripts/index.d.ts +37 -7
- package/lib/scripts/index.js +38 -8
- 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.d.ts +0 -2
- package/lib/stacks/organization/workloads/base/global-stack.js +13 -13
- 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/components/account-management/introduction.mdx +0 -4
- package/docs/src/content/docs/components/build-system/overview.mdx +0 -37
package/API.md
CHANGED
|
@@ -10184,7 +10184,6 @@ The construct to start the search from.
|
|
|
10184
10184
|
| <code><a href="#aws-data-landing-zone.WorkloadGlobalStack.property.stage">stage</a></code> | <code>cdk-express-pipeline.ExpressStage</code> | The stage that the stack belongs to. |
|
|
10185
10185
|
| <code><a href="#aws-data-landing-zone.WorkloadGlobalStack.property.accountId">accountId</a></code> | <code>string</code> | *No description.* |
|
|
10186
10186
|
| <code><a href="#aws-data-landing-zone.WorkloadGlobalStack.property.accountName">accountName</a></code> | <code>string</code> | *No description.* |
|
|
10187
|
-
| <code><a href="#aws-data-landing-zone.WorkloadGlobalStack.property.defaultPolicyStatement">defaultPolicyStatement</a></code> | <code>aws-cdk-lib.aws_iam.PolicyStatementProps</code> | *No description.* |
|
|
10188
10187
|
|
|
10189
10188
|
---
|
|
10190
10189
|
|
|
@@ -10564,16 +10563,6 @@ public readonly accountName: string;
|
|
|
10564
10563
|
|
|
10565
10564
|
---
|
|
10566
10565
|
|
|
10567
|
-
##### `defaultPolicyStatement`<sup>Required</sup> <a name="defaultPolicyStatement" id="aws-data-landing-zone.WorkloadGlobalStack.property.defaultPolicyStatement"></a>
|
|
10568
|
-
|
|
10569
|
-
```typescript
|
|
10570
|
-
public readonly defaultPolicyStatement: PolicyStatementProps;
|
|
10571
|
-
```
|
|
10572
|
-
|
|
10573
|
-
- *Type:* aws-cdk-lib.aws_iam.PolicyStatementProps
|
|
10574
|
-
|
|
10575
|
-
---
|
|
10576
|
-
|
|
10577
10566
|
|
|
10578
10567
|
### WorkloadRegionalDataServicesPhase1Stack <a name="WorkloadRegionalDataServicesPhase1Stack" id="aws-data-landing-zone.WorkloadRegionalDataServicesPhase1Stack"></a>
|
|
10579
10568
|
|
|
@@ -16052,6 +16041,31 @@ The route tables to be created in the VPC.
|
|
|
16052
16041
|
|
|
16053
16042
|
---
|
|
16054
16043
|
|
|
16044
|
+
### ForceNoPythonArgumentLifting <a name="ForceNoPythonArgumentLifting" id="aws-data-landing-zone.ForceNoPythonArgumentLifting"></a>
|
|
16045
|
+
|
|
16046
|
+
This is a type that is used to force JSII to not "argument lift" the arguments.
|
|
16047
|
+
|
|
16048
|
+
Use it as the last argument of
|
|
16049
|
+
user facing function that you want to prevent argument lifting on. Example:
|
|
16050
|
+
```
|
|
16051
|
+
public async diffAll(props: DataLandingZoneProps, _: ForceNoPythonArgumentLifting = {})
|
|
16052
|
+
|
|
16053
|
+
export class DataLandingZone {
|
|
16054
|
+
constructor(app: App, props: DataLandingZoneProps, _: ForceNoPythonArgumentLifting = {}) {
|
|
16055
|
+
```
|
|
16056
|
+
|
|
16057
|
+
Then just call the function/constructor and "forget about the last parameter". It's an ugly hack but acceptable for
|
|
16058
|
+
the time being. Tracking issue: https://github.com/aws/jsii/issues/4721
|
|
16059
|
+
|
|
16060
|
+
#### Initializer <a name="Initializer" id="aws-data-landing-zone.ForceNoPythonArgumentLifting.Initializer"></a>
|
|
16061
|
+
|
|
16062
|
+
```typescript
|
|
16063
|
+
import { ForceNoPythonArgumentLifting } from 'aws-data-landing-zone'
|
|
16064
|
+
|
|
16065
|
+
const forceNoPythonArgumentLifting: ForceNoPythonArgumentLifting = { ... }
|
|
16066
|
+
```
|
|
16067
|
+
|
|
16068
|
+
|
|
16055
16069
|
### GitHubReference <a name="GitHubReference" id="aws-data-landing-zone.GitHubReference"></a>
|
|
16056
16070
|
|
|
16057
16071
|
#### Initializer <a name="Initializer" id="aws-data-landing-zone.GitHubReference.Initializer"></a>
|
|
@@ -17175,9 +17189,9 @@ const mandatoryTags: MandatoryTags = { ... }
|
|
|
17175
17189
|
|
|
17176
17190
|
| **Name** | **Type** | **Description** |
|
|
17177
17191
|
| --- | --- | --- |
|
|
17178
|
-
| <code><a href="#aws-data-landing-zone.MandatoryTags.property.environment">environment</a></code> | <code>string[]</code> |
|
|
17179
|
-
| <code><a href="#aws-data-landing-zone.MandatoryTags.property.owner">owner</a></code> | <code>string[]</code> |
|
|
17180
|
-
| <code><a href="#aws-data-landing-zone.MandatoryTags.property.project">project</a></code> | <code>string[]</code> |
|
|
17192
|
+
| <code><a href="#aws-data-landing-zone.MandatoryTags.property.environment">environment</a></code> | <code>string[]</code> | The values of the mandatory `Environment` tag that all resources must have. |
|
|
17193
|
+
| <code><a href="#aws-data-landing-zone.MandatoryTags.property.owner">owner</a></code> | <code>string[]</code> | The values of the mandatory `Owner` tag that all resources must have. |
|
|
17194
|
+
| <code><a href="#aws-data-landing-zone.MandatoryTags.property.project">project</a></code> | <code>string[]</code> | The values of the mandatory `Project` tag that all resources must have. |
|
|
17181
17195
|
|
|
17182
17196
|
---
|
|
17183
17197
|
|
|
@@ -17189,6 +17203,8 @@ public readonly environment: string[];
|
|
|
17189
17203
|
|
|
17190
17204
|
- *Type:* string[]
|
|
17191
17205
|
|
|
17206
|
+
The values of the mandatory `Environment` tag that all resources must have.
|
|
17207
|
+
|
|
17192
17208
|
---
|
|
17193
17209
|
|
|
17194
17210
|
##### `owner`<sup>Required</sup> <a name="owner" id="aws-data-landing-zone.MandatoryTags.property.owner"></a>
|
|
@@ -17199,6 +17215,8 @@ public readonly owner: string[];
|
|
|
17199
17215
|
|
|
17200
17216
|
- *Type:* string[]
|
|
17201
17217
|
|
|
17218
|
+
The values of the mandatory `Owner` tag that all resources must have.
|
|
17219
|
+
|
|
17202
17220
|
---
|
|
17203
17221
|
|
|
17204
17222
|
##### `project`<sup>Required</sup> <a name="project" id="aws-data-landing-zone.MandatoryTags.property.project"></a>
|
|
@@ -17209,6 +17227,8 @@ public readonly project: string[];
|
|
|
17209
17227
|
|
|
17210
17228
|
- *Type:* string[]
|
|
17211
17229
|
|
|
17230
|
+
The values of the mandatory `Project` tag that all resources must have.
|
|
17231
|
+
|
|
17212
17232
|
---
|
|
17213
17233
|
|
|
17214
17234
|
### Network <a name="Network" id="aws-data-landing-zone.Network"></a>
|
|
@@ -18444,9 +18464,9 @@ const slackChannel: SlackChannel = { ... }
|
|
|
18444
18464
|
|
|
18445
18465
|
| **Name** | **Type** | **Description** |
|
|
18446
18466
|
| --- | --- | --- |
|
|
18447
|
-
| <code><a href="#aws-data-landing-zone.SlackChannel.property.slackChannelConfigurationName">slackChannelConfigurationName</a></code> | <code>string</code> |
|
|
18448
|
-
| <code><a href="#aws-data-landing-zone.SlackChannel.property.slackChannelId">slackChannelId</a></code> | <code>string</code> |
|
|
18449
|
-
| <code><a href="#aws-data-landing-zone.SlackChannel.property.slackWorkspaceId">slackWorkspaceId</a></code> | <code>string</code> |
|
|
18467
|
+
| <code><a href="#aws-data-landing-zone.SlackChannel.property.slackChannelConfigurationName">slackChannelConfigurationName</a></code> | <code>string</code> | The name of Slack channel configuration. |
|
|
18468
|
+
| <code><a href="#aws-data-landing-zone.SlackChannel.property.slackChannelId">slackChannelId</a></code> | <code>string</code> | The ID of the Slack channel. |
|
|
18469
|
+
| <code><a href="#aws-data-landing-zone.SlackChannel.property.slackWorkspaceId">slackWorkspaceId</a></code> | <code>string</code> | The ID of the Slack workspace authorized with AWS Chatbot. |
|
|
18450
18470
|
|
|
18451
18471
|
---
|
|
18452
18472
|
|
|
@@ -18458,6 +18478,8 @@ public readonly slackChannelConfigurationName: string;
|
|
|
18458
18478
|
|
|
18459
18479
|
- *Type:* string
|
|
18460
18480
|
|
|
18481
|
+
The name of Slack channel configuration.
|
|
18482
|
+
|
|
18461
18483
|
---
|
|
18462
18484
|
|
|
18463
18485
|
##### `slackChannelId`<sup>Required</sup> <a name="slackChannelId" id="aws-data-landing-zone.SlackChannel.property.slackChannelId"></a>
|
|
@@ -18468,6 +18490,11 @@ public readonly slackChannelId: string;
|
|
|
18468
18490
|
|
|
18469
18491
|
- *Type:* string
|
|
18470
18492
|
|
|
18493
|
+
The ID of the Slack channel.
|
|
18494
|
+
|
|
18495
|
+
To get the ID, open Slack, right click on the channel name in the left pane, then choose Copy Link.
|
|
18496
|
+
The channel ID is the 9-character string at the end of the URL. For example, ABCBBLZZZ.
|
|
18497
|
+
|
|
18471
18498
|
---
|
|
18472
18499
|
|
|
18473
18500
|
##### `slackWorkspaceId`<sup>Required</sup> <a name="slackWorkspaceId" id="aws-data-landing-zone.SlackChannel.property.slackWorkspaceId"></a>
|
|
@@ -18478,6 +18505,14 @@ public readonly slackWorkspaceId: string;
|
|
|
18478
18505
|
|
|
18479
18506
|
- *Type:* string
|
|
18480
18507
|
|
|
18508
|
+
The ID of the Slack workspace authorized with AWS Chatbot.
|
|
18509
|
+
|
|
18510
|
+
To get the workspace ID, you must perform the initial authorization flow with Slack in the AWS Chatbot console.
|
|
18511
|
+
Then you can copy and paste the workspace ID from the console.
|
|
18512
|
+
For more details, see steps 1-4 in Setting Up AWS Chatbot with Slack in the AWS Chatbot User Guide.
|
|
18513
|
+
|
|
18514
|
+
> [https://docs.aws.amazon.com/chatbot/latest/adminguide/setting-up.html#Setup_intro](https://docs.aws.amazon.com/chatbot/latest/adminguide/setting-up.html#Setup_intro)
|
|
18515
|
+
|
|
18481
18516
|
---
|
|
18482
18517
|
|
|
18483
18518
|
### WorkloadAccountProps <a name="WorkloadAccountProps" id="aws-data-landing-zone.WorkloadAccountProps"></a>
|
|
@@ -18672,13 +18707,14 @@ public readonly slackChatBots: {[ key: string ]: SlackChannelConfiguration};
|
|
|
18672
18707
|
```typescript
|
|
18673
18708
|
import { DataLandingZone } from 'aws-data-landing-zone'
|
|
18674
18709
|
|
|
18675
|
-
new DataLandingZone(app: App, props: DataLandingZoneProps)
|
|
18710
|
+
new DataLandingZone(app: App, props: DataLandingZoneProps, _?: ForceNoPythonArgumentLifting)
|
|
18676
18711
|
```
|
|
18677
18712
|
|
|
18678
18713
|
| **Name** | **Type** | **Description** |
|
|
18679
18714
|
| --- | --- | --- |
|
|
18680
|
-
| <code><a href="#aws-data-landing-zone.DataLandingZone.Initializer.parameter.app">app</a></code> | <code>aws-cdk-lib.App</code> |
|
|
18681
|
-
| <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> |
|
|
18715
|
+
| <code><a href="#aws-data-landing-zone.DataLandingZone.Initializer.parameter.app">app</a></code> | <code>aws-cdk-lib.App</code> | The CDK App. |
|
|
18716
|
+
| <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. |
|
|
18717
|
+
| <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. |
|
|
18682
18718
|
|
|
18683
18719
|
---
|
|
18684
18720
|
|
|
@@ -18686,12 +18722,24 @@ new DataLandingZone(app: App, props: DataLandingZoneProps)
|
|
|
18686
18722
|
|
|
18687
18723
|
- *Type:* aws-cdk-lib.App
|
|
18688
18724
|
|
|
18725
|
+
The CDK App.
|
|
18726
|
+
|
|
18689
18727
|
---
|
|
18690
18728
|
|
|
18691
18729
|
##### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.DataLandingZone.Initializer.parameter.props"></a>
|
|
18692
18730
|
|
|
18693
18731
|
- *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
|
|
18694
18732
|
|
|
18733
|
+
The DataLandingZoneProps.
|
|
18734
|
+
|
|
18735
|
+
---
|
|
18736
|
+
|
|
18737
|
+
##### `_`<sup>Optional</sup> <a name="_" id="aws-data-landing-zone.DataLandingZone.Initializer.parameter._"></a>
|
|
18738
|
+
|
|
18739
|
+
- *Type:* <a href="#aws-data-landing-zone.ForceNoPythonArgumentLifting">ForceNoPythonArgumentLifting</a>
|
|
18740
|
+
|
|
18741
|
+
Ignore this parameter, it is used to force a consistent interface across TS and Python usage.
|
|
18742
|
+
|
|
18695
18743
|
---
|
|
18696
18744
|
|
|
18697
18745
|
#### Methods <a name="Methods" id="Methods"></a>
|
|
@@ -20341,28 +20389,27 @@ new Scripts()
|
|
|
20341
20389
|
|
|
20342
20390
|
---
|
|
20343
20391
|
|
|
20344
|
-
|
|
20345
|
-
#### Static Functions <a name="Static Functions" id="Static Functions"></a>
|
|
20392
|
+
#### Methods <a name="Methods" id="Methods"></a>
|
|
20346
20393
|
|
|
20347
20394
|
| **Name** | **Description** |
|
|
20348
20395
|
| --- | --- |
|
|
20349
|
-
| <code><a href="#aws-data-landing-zone.Scripts.boostrapAll">boostrapAll</a></code> |
|
|
20350
|
-
| <code><a href="#aws-data-landing-zone.Scripts.configureCostAllocationTags">configureCostAllocationTags</a></code> |
|
|
20351
|
-
| <code><a href="#aws-data-landing-zone.Scripts.deployAll">deployAll</a></code> |
|
|
20352
|
-
| <code><a href="#aws-data-landing-zone.Scripts.deploySelect">deploySelect</a></code> |
|
|
20353
|
-
| <code><a href="#aws-data-landing-zone.Scripts.diffAll">diffAll</a></code> |
|
|
20354
|
-
| <code><a href="#aws-data-landing-zone.Scripts.diffSelect">diffSelect</a></code> |
|
|
20396
|
+
| <code><a href="#aws-data-landing-zone.Scripts.boostrapAll">boostrapAll</a></code> | Bootstraps all accounts in all regions as defined by the config. |
|
|
20397
|
+
| <code><a href="#aws-data-landing-zone.Scripts.configureCostAllocationTags">configureCostAllocationTags</a></code> | Sets the Cost Allocation Tags for the organization. |
|
|
20398
|
+
| <code><a href="#aws-data-landing-zone.Scripts.deployAll">deployAll</a></code> | CDK deploy all stacks. |
|
|
20399
|
+
| <code><a href="#aws-data-landing-zone.Scripts.deploySelect">deploySelect</a></code> | CDK deploy stacks identified by the id. |
|
|
20400
|
+
| <code><a href="#aws-data-landing-zone.Scripts.diffAll">diffAll</a></code> | CDK diff all stacks. |
|
|
20401
|
+
| <code><a href="#aws-data-landing-zone.Scripts.diffSelect">diffSelect</a></code> | CDK diff stacks identified by the id. |
|
|
20355
20402
|
|
|
20356
20403
|
---
|
|
20357
20404
|
|
|
20358
20405
|
##### `boostrapAll` <a name="boostrapAll" id="aws-data-landing-zone.Scripts.boostrapAll"></a>
|
|
20359
20406
|
|
|
20360
20407
|
```typescript
|
|
20361
|
-
|
|
20362
|
-
|
|
20363
|
-
Scripts.boostrapAll(props: DataLandingZoneProps, bootstrapRoleName?: string)
|
|
20408
|
+
public boostrapAll(props: DataLandingZoneProps, bootstrapRoleName?: string): void
|
|
20364
20409
|
```
|
|
20365
20410
|
|
|
20411
|
+
Bootstraps all accounts in all regions as defined by the config.
|
|
20412
|
+
|
|
20366
20413
|
###### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.Scripts.boostrapAll.parameter.props"></a>
|
|
20367
20414
|
|
|
20368
20415
|
- *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
|
|
@@ -20378,39 +20425,55 @@ Scripts.boostrapAll(props: DataLandingZoneProps, bootstrapRoleName?: string)
|
|
|
20378
20425
|
##### `configureCostAllocationTags` <a name="configureCostAllocationTags" id="aws-data-landing-zone.Scripts.configureCostAllocationTags"></a>
|
|
20379
20426
|
|
|
20380
20427
|
```typescript
|
|
20381
|
-
|
|
20382
|
-
|
|
20383
|
-
Scripts.configureCostAllocationTags(props: DataLandingZoneProps)
|
|
20428
|
+
public configureCostAllocationTags(props: DataLandingZoneProps, _?: ForceNoPythonArgumentLifting): void
|
|
20384
20429
|
```
|
|
20385
20430
|
|
|
20431
|
+
Sets the Cost Allocation Tags for the organization.
|
|
20432
|
+
|
|
20386
20433
|
###### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.Scripts.configureCostAllocationTags.parameter.props"></a>
|
|
20387
20434
|
|
|
20388
20435
|
- *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
|
|
20389
20436
|
|
|
20390
20437
|
---
|
|
20391
20438
|
|
|
20439
|
+
###### `_`<sup>Optional</sup> <a name="_" id="aws-data-landing-zone.Scripts.configureCostAllocationTags.parameter._"></a>
|
|
20440
|
+
|
|
20441
|
+
- *Type:* <a href="#aws-data-landing-zone.ForceNoPythonArgumentLifting">ForceNoPythonArgumentLifting</a>
|
|
20442
|
+
|
|
20443
|
+
Ignore this parameter, it is used to force a consistent interface across TS and Python usage.
|
|
20444
|
+
|
|
20445
|
+
---
|
|
20446
|
+
|
|
20392
20447
|
##### `deployAll` <a name="deployAll" id="aws-data-landing-zone.Scripts.deployAll"></a>
|
|
20393
20448
|
|
|
20394
20449
|
```typescript
|
|
20395
|
-
|
|
20396
|
-
|
|
20397
|
-
Scripts.deployAll(props: DataLandingZoneProps)
|
|
20450
|
+
public deployAll(props: DataLandingZoneProps, _?: ForceNoPythonArgumentLifting): void
|
|
20398
20451
|
```
|
|
20399
20452
|
|
|
20453
|
+
CDK deploy all stacks.
|
|
20454
|
+
|
|
20400
20455
|
###### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.Scripts.deployAll.parameter.props"></a>
|
|
20401
20456
|
|
|
20402
20457
|
- *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
|
|
20403
20458
|
|
|
20404
20459
|
---
|
|
20405
20460
|
|
|
20461
|
+
###### `_`<sup>Optional</sup> <a name="_" id="aws-data-landing-zone.Scripts.deployAll.parameter._"></a>
|
|
20462
|
+
|
|
20463
|
+
- *Type:* <a href="#aws-data-landing-zone.ForceNoPythonArgumentLifting">ForceNoPythonArgumentLifting</a>
|
|
20464
|
+
|
|
20465
|
+
Ignore this parameter, it is used to force a consistent interface across TS and Python usage.
|
|
20466
|
+
|
|
20467
|
+
---
|
|
20468
|
+
|
|
20406
20469
|
##### `deploySelect` <a name="deploySelect" id="aws-data-landing-zone.Scripts.deploySelect"></a>
|
|
20407
20470
|
|
|
20408
20471
|
```typescript
|
|
20409
|
-
|
|
20410
|
-
|
|
20411
|
-
Scripts.deploySelect(props: DataLandingZoneProps, id: string)
|
|
20472
|
+
public deploySelect(props: DataLandingZoneProps, id: string): void
|
|
20412
20473
|
```
|
|
20413
20474
|
|
|
20475
|
+
CDK deploy stacks identified by the id.
|
|
20476
|
+
|
|
20414
20477
|
###### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.Scripts.deploySelect.parameter.props"></a>
|
|
20415
20478
|
|
|
20416
20479
|
- *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
|
|
@@ -20426,25 +20489,33 @@ Scripts.deploySelect(props: DataLandingZoneProps, id: string)
|
|
|
20426
20489
|
##### `diffAll` <a name="diffAll" id="aws-data-landing-zone.Scripts.diffAll"></a>
|
|
20427
20490
|
|
|
20428
20491
|
```typescript
|
|
20429
|
-
|
|
20430
|
-
|
|
20431
|
-
Scripts.diffAll(props: DataLandingZoneProps)
|
|
20492
|
+
public diffAll(props: DataLandingZoneProps, _?: ForceNoPythonArgumentLifting): void
|
|
20432
20493
|
```
|
|
20433
20494
|
|
|
20495
|
+
CDK diff all stacks.
|
|
20496
|
+
|
|
20434
20497
|
###### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.Scripts.diffAll.parameter.props"></a>
|
|
20435
20498
|
|
|
20436
20499
|
- *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
|
|
20437
20500
|
|
|
20438
20501
|
---
|
|
20439
20502
|
|
|
20503
|
+
###### `_`<sup>Optional</sup> <a name="_" id="aws-data-landing-zone.Scripts.diffAll.parameter._"></a>
|
|
20504
|
+
|
|
20505
|
+
- *Type:* <a href="#aws-data-landing-zone.ForceNoPythonArgumentLifting">ForceNoPythonArgumentLifting</a>
|
|
20506
|
+
|
|
20507
|
+
Ignore this parameter, it is used to force a consistent interface across TS and Python usage.
|
|
20508
|
+
|
|
20509
|
+
---
|
|
20510
|
+
|
|
20440
20511
|
##### `diffSelect` <a name="diffSelect" id="aws-data-landing-zone.Scripts.diffSelect"></a>
|
|
20441
20512
|
|
|
20442
20513
|
```typescript
|
|
20443
|
-
|
|
20444
|
-
|
|
20445
|
-
Scripts.diffSelect(props: DataLandingZoneProps, id: string)
|
|
20514
|
+
public diffSelect(props: DataLandingZoneProps, id: string): void
|
|
20446
20515
|
```
|
|
20447
20516
|
|
|
20517
|
+
CDK diff stacks identified by the id.
|
|
20518
|
+
|
|
20448
20519
|
###### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.Scripts.diffSelect.parameter.props"></a>
|
|
20449
20520
|
|
|
20450
20521
|
- *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
|
|
@@ -20459,6 +20530,7 @@ Scripts.diffSelect(props: DataLandingZoneProps, id: string)
|
|
|
20459
20530
|
|
|
20460
20531
|
|
|
20461
20532
|
|
|
20533
|
+
|
|
20462
20534
|
## Protocols <a name="Protocols" id="Protocols"></a>
|
|
20463
20535
|
|
|
20464
20536
|
### IDlzControlTowerControl <a name="IDlzControlTowerControl" id="aws-data-landing-zone.IDlzControlTowerControl"></a>
|
package/README.md
CHANGED
|
@@ -46,7 +46,7 @@ two non-overlapping VPCs in two regions in each account.
|
|
|
46
46
|
|
|
47
47
|
```ts
|
|
48
48
|
import {App} from 'aws-cdk-lib';
|
|
49
|
-
import { DataLandingZone } from '
|
|
49
|
+
import { DataLandingZone } from 'aws-data-landing-zone';
|
|
50
50
|
|
|
51
51
|
const app = new App();
|
|
52
52
|
const dlz = new DataLandingZone(app, {
|
|
@@ -109,7 +109,7 @@ two non-overlapping VPCs in two regions in each account.
|
|
|
109
109
|
```python
|
|
110
110
|
#!/usr/bin/env python3
|
|
111
111
|
import aws_cdk as cdk
|
|
112
|
-
import
|
|
112
|
+
import aws_data_landing_zone as dlz
|
|
113
113
|
|
|
114
114
|
app = cdk.App()
|
|
115
115
|
dlz.DataLandingZone(app,
|
|
@@ -134,8 +134,8 @@ dlz.DataLandingZone(app,
|
|
|
134
134
|
account_id='123456789012',
|
|
135
135
|
type=dlz.DlzAccountType.DEVELOP,
|
|
136
136
|
vpcs=[
|
|
137
|
-
|
|
138
|
-
|
|
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
|
-
|
|
147
|
-
|
|
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
|
],
|
package/docs/astro.config.ts
CHANGED
|
@@ -49,16 +49,19 @@ export default defineConfig({
|
|
|
49
49
|
label: 'Components',
|
|
50
50
|
items: [
|
|
51
51
|
// TODO: Complete docs
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
52
|
+
{
|
|
53
|
+
label: 'Account Management',
|
|
54
|
+
items: [
|
|
55
|
+
{ label: 'Accounts', slug: 'components/account-management/accounts'},
|
|
56
|
+
{ label: 'Regions', slug: 'components/account-management/regions'},
|
|
57
|
+
{ label: 'Tagging', slug: 'components/account-management/tagging'},
|
|
58
|
+
{ label: 'Budgets', slug: 'components/account-management/budgets'},
|
|
59
|
+
// { label: 'Default Notifications', slug: 'components/account-management/budgets'}, //TODO Later
|
|
60
|
+
{ label: 'SOP - Initial Control Tower Setup', slug: 'components/account-management/sop-initial-control-tower-setup'},
|
|
61
|
+
{ label: 'SOP - Add Account', slug: 'components/account-management/sop-add-account'},
|
|
62
|
+
{ label: 'SOP - Account Setup', slug: 'components/account-management/sop-account-setup'},
|
|
63
|
+
]
|
|
64
|
+
},
|
|
62
65
|
// {
|
|
63
66
|
// label: 'Networking',
|
|
64
67
|
// items: [
|
|
@@ -73,7 +76,7 @@ export default defineConfig({
|
|
|
73
76
|
// label: 'Security',
|
|
74
77
|
// items: [
|
|
75
78
|
// { label: 'Overview', slug: 'introduction'},
|
|
76
|
-
// { label: 'Service Control Policies', slug: 'introduction'},
|
|
79
|
+
// { label: 'Service Control Policies', slug: 'introduction'}, // Mention the service deny list
|
|
77
80
|
// { label: 'Permission Boundary', slug: 'introduction'},
|
|
78
81
|
// { label: 'SecurityHub', slug: 'introduction'},
|
|
79
82
|
// { label: 'Control Tower Controls', slug: 'introduction'},
|
|
@@ -99,7 +102,6 @@ export default defineConfig({
|
|
|
99
102
|
{
|
|
100
103
|
label: 'Build System',
|
|
101
104
|
items: [
|
|
102
|
-
{ label: 'Overview', slug: 'components/build-system/overview'},
|
|
103
105
|
{ label: 'Deployment Order', slug: 'components/build-system/deployment-order'},
|
|
104
106
|
{ label: 'CI Integration', slug: 'components/build-system/ci-integration'},
|
|
105
107
|
]
|
|
@@ -109,12 +111,13 @@ export default defineConfig({
|
|
|
109
111
|
{
|
|
110
112
|
label: 'Reference',
|
|
111
113
|
items: [
|
|
112
|
-
{ label: 'API', slug: 'reference/api'},
|
|
113
114
|
// TODO: Complete docs
|
|
114
|
-
|
|
115
|
+
{ label: 'API', slug: 'reference/api'},
|
|
116
|
+
{ label: 'Defaults', slug: 'reference/defaults'},
|
|
115
117
|
// { label: 'Config sharing', slug: 'introduction'},
|
|
116
118
|
{ label: 'Scripts & commands', slug: 'reference/scripts-commands'},
|
|
117
119
|
// { label: 'Roadmap', slug: 'introduction'},
|
|
120
|
+
// { label: 'Escape Hatches', slug: 'introduction'}, // How to extend and modify/add components
|
|
118
121
|
]
|
|
119
122
|
},
|
|
120
123
|
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Accounts
|
|
3
|
+
description: Accounts
|
|
4
|
+
---
|
|
5
|
+
import DualCode from '../../../../components/DualCode.astro';
|
|
6
|
+
|
|
7
|
+
Data Landing Zone (DLZ) integrates seamlessly with AWS Control Tower, complementing its functionality rather than
|
|
8
|
+
replacing or conflicting with it. Control Tower and AWS Organization setup must be created manually. DLZ does not
|
|
9
|
+
define Control Tower and accounts within CDK but instead accepts the IDs of these entities. This approach allows DLZ
|
|
10
|
+
to be easily integrated into both existing Control Tower configurations and new (greenfield) setups.
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
AWS Control Tower automatically creates two accounts, `Audit` and `Log Archive`, under the `Security` Organizational
|
|
14
|
+
Unit (OU). In addition to these, DLZ requires two manually created OUs: `Workloads` and `Suspended`.
|
|
15
|
+
|
|
16
|
+
The `Workloads` OU is designed to house all AWS accounts according to your organization's specific needs. For instance:
|
|
17
|
+
|
|
18
|
+
- **Small Product-Based Company:**
|
|
19
|
+
A smaller company might maintain only three accounts:
|
|
20
|
+
- `Development` - Used for all project development, type: `DlzAccountType.DEVELOP`
|
|
21
|
+
- `Stage` - Used for testing projects, type: `DlzAccountType.PRODUCTION`
|
|
22
|
+
- `Production` - Used for live projects, type: `DlzAccountType.PRODUCTION`
|
|
23
|
+
|
|
24
|
+
- **Larger Organization:**
|
|
25
|
+
A larger organization might adopt a more complex structure, including centralized tooling and network accounts as
|
|
26
|
+
well as project-specific accounts. For example:
|
|
27
|
+
- `Tooling` - Centralized tooling, type: `DlzAccountType.PRODUCTION`
|
|
28
|
+
- `Network` - Centralized network, type: `DlzAccountType.PRODUCTION`
|
|
29
|
+
- `Project 1 - Develop` - Project 1, type: `DlzAccountType.DEVELOP`
|
|
30
|
+
- `Project 1 - Production` - Project 1, type: `DlzAccountType.PRODUCTION`
|
|
31
|
+
- `Project 2 - Develop` - Project 2, type: `DlzAccountType.DEVELOP`
|
|
32
|
+
- `Project 2 - Production` - Project 2, type: `DlzAccountType.PRODUCTION`
|
|
33
|
+
|
|
34
|
+
Each account is classified as one of the following types:
|
|
35
|
+
- `DlzAccountType.DEVELOP` - Accounts with fewer security restrictions, designed to enhance the developer experience.
|
|
36
|
+
- `DlzAccountType.PRODUCTION` - Accounts requiring tight security measures, used for hosting production workloads.
|
|
37
|
+
|
|
38
|
+
To begin, follow the [SOP - Initial Control Tower Setup](sop-initial-control-tower-setup) guide to enable Control
|
|
39
|
+
Tower, configure the AWS Organization, and create the required OUs. The final step,
|
|
40
|
+
[Gather the required information for DLZ](sop-initial-control-tower-setup#gather-the-required-information-for-dlz),
|
|
41
|
+
provides instructions for identifying and copying the necessary Organization ID, OU IDs, and Account IDs.
|
|
42
|
+
|
|
43
|
+
After gathering the required information, input the IDs into the DLZ CDK construct. Below is an example configuration
|
|
44
|
+
for two accounts in the `Workloads` OU. Additional accounts can be added as needed.
|
|
45
|
+
|
|
46
|
+
<DualCode>
|
|
47
|
+
<Fragment slot="ts">
|
|
48
|
+
```ts
|
|
49
|
+
import {App} from 'aws-cdk-lib';
|
|
50
|
+
import { DataLandingZone } from 'aws-data-landing-zone';
|
|
51
|
+
|
|
52
|
+
const app = new App();
|
|
53
|
+
const dlz = new DataLandingZone(app, {
|
|
54
|
+
...
|
|
55
|
+
organization: {
|
|
56
|
+
organizationId: 'o-0f5h921gk9',
|
|
57
|
+
root: { accounts: { management: { accountId: '123456789012', }, }, },
|
|
58
|
+
ous: {
|
|
59
|
+
security: {
|
|
60
|
+
ouId: 'ou-hj29-dfhjj787i7',
|
|
61
|
+
accounts: {
|
|
62
|
+
log: { accountId: '123456789012', },
|
|
63
|
+
audit: { accountId: '123456789012', },
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
workloads: {
|
|
67
|
+
ouId: 'ou-h2l0-gjr36ikn',
|
|
68
|
+
accounts: [{
|
|
69
|
+
name: 'development',
|
|
70
|
+
accountId: '123456789012',
|
|
71
|
+
type: DlzAccountType.DEVELOP,
|
|
72
|
+
...
|
|
73
|
+
},{
|
|
74
|
+
name: 'production',
|
|
75
|
+
accountId: '123456789012',
|
|
76
|
+
type: DlzAccountType.PRODUCTION,
|
|
77
|
+
...
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
...AS MANY ACCOUNTS AS DESIRED...
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
...
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
</Fragment>
|
|
90
|
+
<Fragment slot="python">
|
|
91
|
+
```python
|
|
92
|
+
#!/usr/bin/env python3
|
|
93
|
+
import aws_cdk as cdk
|
|
94
|
+
import aws_data_landing_zone as dlz
|
|
95
|
+
|
|
96
|
+
app = cdk.App()
|
|
97
|
+
dlz.DataLandingZone(app,
|
|
98
|
+
...
|
|
99
|
+
organization=dlz.DLzOrganization(
|
|
100
|
+
organization_id='o-0f5h921gk9',
|
|
101
|
+
root=dlz.RootOptions(
|
|
102
|
+
accounts=dlz.OrgRootAccounts(
|
|
103
|
+
management=dlz.DLzManagementAccount(account_id='123456789012'),
|
|
104
|
+
),
|
|
105
|
+
),
|
|
106
|
+
ous=dlz.OrgOus(
|
|
107
|
+
security=dlz.OrgOuSecurity(
|
|
108
|
+
ou_id='ou-hj29-dfhjj787i7',
|
|
109
|
+
accounts=dlz.OrgOuSecurityAccounts(
|
|
110
|
+
log=dlz.DLzManagementAccount(account_id='123456789012'),
|
|
111
|
+
audit=dlz.DLzManagementAccount(account_id='123456789012'),
|
|
112
|
+
),
|
|
113
|
+
),
|
|
114
|
+
workloads=dlz.OrgOuWorkloads(
|
|
115
|
+
ou_id='ou-h2l0-gjr36ikn',
|
|
116
|
+
accounts=[
|
|
117
|
+
dlz.DLzAccount(
|
|
118
|
+
name='development',
|
|
119
|
+
account_id='123456789012',
|
|
120
|
+
type=dlz.DlzAccountType.DEVELOP,
|
|
121
|
+
),
|
|
122
|
+
dlz.DLzAccount(
|
|
123
|
+
name='production',
|
|
124
|
+
account_id='123456789012',
|
|
125
|
+
type=dlz.DlzAccountType.PRODUCTION,
|
|
126
|
+
),
|
|
127
|
+
|
|
128
|
+
...AS MANY ACCOUNTS AS DESIRED...
|
|
129
|
+
],
|
|
130
|
+
),
|
|
131
|
+
)
|
|
132
|
+
),
|
|
133
|
+
)
|
|
134
|
+
|
|
135
|
+
app.synth()
|
|
136
|
+
````
|
|
137
|
+
</Fragment>
|
|
138
|
+
</DualCode>
|
|
139
|
+
|
|
140
|
+
## API References
|
|
141
|
+
- [DataLandingZoneProps](/reference/api#datalandingzoneprops)
|
|
142
|
+
- [DLzOrganization](/reference/api#aws-data-landing-zone.DLzOrganization)
|