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
|
@@ -10188,7 +10188,6 @@ The construct to start the search from.
|
|
|
10188
10188
|
| <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. |
|
|
10189
10189
|
| <code><a href="#aws-data-landing-zone.WorkloadGlobalStack.property.accountId">accountId</a></code> | <code>string</code> | *No description.* |
|
|
10190
10190
|
| <code><a href="#aws-data-landing-zone.WorkloadGlobalStack.property.accountName">accountName</a></code> | <code>string</code> | *No description.* |
|
|
10191
|
-
| <code><a href="#aws-data-landing-zone.WorkloadGlobalStack.property.defaultPolicyStatement">defaultPolicyStatement</a></code> | <code>aws-cdk-lib.aws_iam.PolicyStatementProps</code> | *No description.* |
|
|
10192
10191
|
|
|
10193
10192
|
---
|
|
10194
10193
|
|
|
@@ -10568,16 +10567,6 @@ public readonly accountName: string;
|
|
|
10568
10567
|
|
|
10569
10568
|
---
|
|
10570
10569
|
|
|
10571
|
-
##### `defaultPolicyStatement`<sup>Required</sup> <a name="defaultPolicyStatement" id="aws-data-landing-zone.WorkloadGlobalStack.property.defaultPolicyStatement"></a>
|
|
10572
|
-
|
|
10573
|
-
```typescript
|
|
10574
|
-
public readonly defaultPolicyStatement: PolicyStatementProps;
|
|
10575
|
-
```
|
|
10576
|
-
|
|
10577
|
-
- *Type:* aws-cdk-lib.aws_iam.PolicyStatementProps
|
|
10578
|
-
|
|
10579
|
-
---
|
|
10580
|
-
|
|
10581
10570
|
|
|
10582
10571
|
### WorkloadRegionalDataServicesPhase1Stack <a name="WorkloadRegionalDataServicesPhase1Stack" id="aws-data-landing-zone.WorkloadRegionalDataServicesPhase1Stack"></a>
|
|
10583
10572
|
|
|
@@ -16056,6 +16045,31 @@ The route tables to be created in the VPC.
|
|
|
16056
16045
|
|
|
16057
16046
|
---
|
|
16058
16047
|
|
|
16048
|
+
### ForceNoPythonArgumentLifting <a name="ForceNoPythonArgumentLifting" id="aws-data-landing-zone.ForceNoPythonArgumentLifting"></a>
|
|
16049
|
+
|
|
16050
|
+
This is a type that is used to force JSII to not "argument lift" the arguments.
|
|
16051
|
+
|
|
16052
|
+
Use it as the last argument of
|
|
16053
|
+
user facing function that you want to prevent argument lifting on. Example:
|
|
16054
|
+
```
|
|
16055
|
+
public async diffAll(props: DataLandingZoneProps, _: ForceNoPythonArgumentLifting = {})
|
|
16056
|
+
|
|
16057
|
+
export class DataLandingZone {
|
|
16058
|
+
constructor(app: App, props: DataLandingZoneProps, _: ForceNoPythonArgumentLifting = {}) {
|
|
16059
|
+
```
|
|
16060
|
+
|
|
16061
|
+
Then just call the function/constructor and "forget about the last parameter". It's an ugly hack but acceptable for
|
|
16062
|
+
the time being. Tracking issue: https://github.com/aws/jsii/issues/4721
|
|
16063
|
+
|
|
16064
|
+
#### Initializer <a name="Initializer" id="aws-data-landing-zone.ForceNoPythonArgumentLifting.Initializer"></a>
|
|
16065
|
+
|
|
16066
|
+
```typescript
|
|
16067
|
+
import { ForceNoPythonArgumentLifting } from 'aws-data-landing-zone'
|
|
16068
|
+
|
|
16069
|
+
const forceNoPythonArgumentLifting: ForceNoPythonArgumentLifting = { ... }
|
|
16070
|
+
```
|
|
16071
|
+
|
|
16072
|
+
|
|
16059
16073
|
### GitHubReference <a name="GitHubReference" id="aws-data-landing-zone.GitHubReference"></a>
|
|
16060
16074
|
|
|
16061
16075
|
#### Initializer <a name="Initializer" id="aws-data-landing-zone.GitHubReference.Initializer"></a>
|
|
@@ -17179,9 +17193,9 @@ const mandatoryTags: MandatoryTags = { ... }
|
|
|
17179
17193
|
|
|
17180
17194
|
| **Name** | **Type** | **Description** |
|
|
17181
17195
|
| --- | --- | --- |
|
|
17182
|
-
| <code><a href="#aws-data-landing-zone.MandatoryTags.property.environment">environment</a></code> | <code>string[]</code> |
|
|
17183
|
-
| <code><a href="#aws-data-landing-zone.MandatoryTags.property.owner">owner</a></code> | <code>string[]</code> |
|
|
17184
|
-
| <code><a href="#aws-data-landing-zone.MandatoryTags.property.project">project</a></code> | <code>string[]</code> |
|
|
17196
|
+
| <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. |
|
|
17197
|
+
| <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. |
|
|
17198
|
+
| <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. |
|
|
17185
17199
|
|
|
17186
17200
|
---
|
|
17187
17201
|
|
|
@@ -17193,6 +17207,8 @@ public readonly environment: string[];
|
|
|
17193
17207
|
|
|
17194
17208
|
- *Type:* string[]
|
|
17195
17209
|
|
|
17210
|
+
The values of the mandatory `Environment` tag that all resources must have.
|
|
17211
|
+
|
|
17196
17212
|
---
|
|
17197
17213
|
|
|
17198
17214
|
##### `owner`<sup>Required</sup> <a name="owner" id="aws-data-landing-zone.MandatoryTags.property.owner"></a>
|
|
@@ -17203,6 +17219,8 @@ public readonly owner: string[];
|
|
|
17203
17219
|
|
|
17204
17220
|
- *Type:* string[]
|
|
17205
17221
|
|
|
17222
|
+
The values of the mandatory `Owner` tag that all resources must have.
|
|
17223
|
+
|
|
17206
17224
|
---
|
|
17207
17225
|
|
|
17208
17226
|
##### `project`<sup>Required</sup> <a name="project" id="aws-data-landing-zone.MandatoryTags.property.project"></a>
|
|
@@ -17213,6 +17231,8 @@ public readonly project: string[];
|
|
|
17213
17231
|
|
|
17214
17232
|
- *Type:* string[]
|
|
17215
17233
|
|
|
17234
|
+
The values of the mandatory `Project` tag that all resources must have.
|
|
17235
|
+
|
|
17216
17236
|
---
|
|
17217
17237
|
|
|
17218
17238
|
### Network <a name="Network" id="aws-data-landing-zone.Network"></a>
|
|
@@ -18448,9 +18468,9 @@ const slackChannel: SlackChannel = { ... }
|
|
|
18448
18468
|
|
|
18449
18469
|
| **Name** | **Type** | **Description** |
|
|
18450
18470
|
| --- | --- | --- |
|
|
18451
|
-
| <code><a href="#aws-data-landing-zone.SlackChannel.property.slackChannelConfigurationName">slackChannelConfigurationName</a></code> | <code>string</code> |
|
|
18452
|
-
| <code><a href="#aws-data-landing-zone.SlackChannel.property.slackChannelId">slackChannelId</a></code> | <code>string</code> |
|
|
18453
|
-
| <code><a href="#aws-data-landing-zone.SlackChannel.property.slackWorkspaceId">slackWorkspaceId</a></code> | <code>string</code> |
|
|
18471
|
+
| <code><a href="#aws-data-landing-zone.SlackChannel.property.slackChannelConfigurationName">slackChannelConfigurationName</a></code> | <code>string</code> | The name of Slack channel configuration. |
|
|
18472
|
+
| <code><a href="#aws-data-landing-zone.SlackChannel.property.slackChannelId">slackChannelId</a></code> | <code>string</code> | The ID of the Slack channel. |
|
|
18473
|
+
| <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. |
|
|
18454
18474
|
|
|
18455
18475
|
---
|
|
18456
18476
|
|
|
@@ -18462,6 +18482,8 @@ public readonly slackChannelConfigurationName: string;
|
|
|
18462
18482
|
|
|
18463
18483
|
- *Type:* string
|
|
18464
18484
|
|
|
18485
|
+
The name of Slack channel configuration.
|
|
18486
|
+
|
|
18465
18487
|
---
|
|
18466
18488
|
|
|
18467
18489
|
##### `slackChannelId`<sup>Required</sup> <a name="slackChannelId" id="aws-data-landing-zone.SlackChannel.property.slackChannelId"></a>
|
|
@@ -18472,6 +18494,11 @@ public readonly slackChannelId: string;
|
|
|
18472
18494
|
|
|
18473
18495
|
- *Type:* string
|
|
18474
18496
|
|
|
18497
|
+
The ID of the Slack channel.
|
|
18498
|
+
|
|
18499
|
+
To get the ID, open Slack, right click on the channel name in the left pane, then choose Copy Link.
|
|
18500
|
+
The channel ID is the 9-character string at the end of the URL. For example, ABCBBLZZZ.
|
|
18501
|
+
|
|
18475
18502
|
---
|
|
18476
18503
|
|
|
18477
18504
|
##### `slackWorkspaceId`<sup>Required</sup> <a name="slackWorkspaceId" id="aws-data-landing-zone.SlackChannel.property.slackWorkspaceId"></a>
|
|
@@ -18482,6 +18509,14 @@ public readonly slackWorkspaceId: string;
|
|
|
18482
18509
|
|
|
18483
18510
|
- *Type:* string
|
|
18484
18511
|
|
|
18512
|
+
The ID of the Slack workspace authorized with AWS Chatbot.
|
|
18513
|
+
|
|
18514
|
+
To get the workspace ID, you must perform the initial authorization flow with Slack in the AWS Chatbot console.
|
|
18515
|
+
Then you can copy and paste the workspace ID from the console.
|
|
18516
|
+
For more details, see steps 1-4 in Setting Up AWS Chatbot with Slack in the AWS Chatbot User Guide.
|
|
18517
|
+
|
|
18518
|
+
> [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)
|
|
18519
|
+
|
|
18485
18520
|
---
|
|
18486
18521
|
|
|
18487
18522
|
### WorkloadAccountProps <a name="WorkloadAccountProps" id="aws-data-landing-zone.WorkloadAccountProps"></a>
|
|
@@ -18676,13 +18711,14 @@ public readonly slackChatBots: {[ key: string ]: SlackChannelConfiguration};
|
|
|
18676
18711
|
```typescript
|
|
18677
18712
|
import { DataLandingZone } from 'aws-data-landing-zone'
|
|
18678
18713
|
|
|
18679
|
-
new DataLandingZone(app: App, props: DataLandingZoneProps)
|
|
18714
|
+
new DataLandingZone(app: App, props: DataLandingZoneProps, _?: ForceNoPythonArgumentLifting)
|
|
18680
18715
|
```
|
|
18681
18716
|
|
|
18682
18717
|
| **Name** | **Type** | **Description** |
|
|
18683
18718
|
| --- | --- | --- |
|
|
18684
|
-
| <code><a href="#aws-data-landing-zone.DataLandingZone.Initializer.parameter.app">app</a></code> | <code>aws-cdk-lib.App</code> |
|
|
18685
|
-
| <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> |
|
|
18719
|
+
| <code><a href="#aws-data-landing-zone.DataLandingZone.Initializer.parameter.app">app</a></code> | <code>aws-cdk-lib.App</code> | The CDK App. |
|
|
18720
|
+
| <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. |
|
|
18721
|
+
| <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. |
|
|
18686
18722
|
|
|
18687
18723
|
---
|
|
18688
18724
|
|
|
@@ -18690,12 +18726,24 @@ new DataLandingZone(app: App, props: DataLandingZoneProps)
|
|
|
18690
18726
|
|
|
18691
18727
|
- *Type:* aws-cdk-lib.App
|
|
18692
18728
|
|
|
18729
|
+
The CDK App.
|
|
18730
|
+
|
|
18693
18731
|
---
|
|
18694
18732
|
|
|
18695
18733
|
##### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.DataLandingZone.Initializer.parameter.props"></a>
|
|
18696
18734
|
|
|
18697
18735
|
- *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
|
|
18698
18736
|
|
|
18737
|
+
The DataLandingZoneProps.
|
|
18738
|
+
|
|
18739
|
+
---
|
|
18740
|
+
|
|
18741
|
+
##### `_`<sup>Optional</sup> <a name="_" id="aws-data-landing-zone.DataLandingZone.Initializer.parameter._"></a>
|
|
18742
|
+
|
|
18743
|
+
- *Type:* <a href="#aws-data-landing-zone.ForceNoPythonArgumentLifting">ForceNoPythonArgumentLifting</a>
|
|
18744
|
+
|
|
18745
|
+
Ignore this parameter, it is used to force a consistent interface across TS and Python usage.
|
|
18746
|
+
|
|
18699
18747
|
---
|
|
18700
18748
|
|
|
18701
18749
|
#### Methods <a name="Methods" id="Methods"></a>
|
|
@@ -20345,28 +20393,27 @@ new Scripts()
|
|
|
20345
20393
|
|
|
20346
20394
|
---
|
|
20347
20395
|
|
|
20348
|
-
|
|
20349
|
-
#### Static Functions <a name="Static Functions" id="Static Functions"></a>
|
|
20396
|
+
#### Methods <a name="Methods" id="Methods"></a>
|
|
20350
20397
|
|
|
20351
20398
|
| **Name** | **Description** |
|
|
20352
20399
|
| --- | --- |
|
|
20353
|
-
| <code><a href="#aws-data-landing-zone.Scripts.boostrapAll">boostrapAll</a></code> |
|
|
20354
|
-
| <code><a href="#aws-data-landing-zone.Scripts.configureCostAllocationTags">configureCostAllocationTags</a></code> |
|
|
20355
|
-
| <code><a href="#aws-data-landing-zone.Scripts.deployAll">deployAll</a></code> |
|
|
20356
|
-
| <code><a href="#aws-data-landing-zone.Scripts.deploySelect">deploySelect</a></code> |
|
|
20357
|
-
| <code><a href="#aws-data-landing-zone.Scripts.diffAll">diffAll</a></code> |
|
|
20358
|
-
| <code><a href="#aws-data-landing-zone.Scripts.diffSelect">diffSelect</a></code> |
|
|
20400
|
+
| <code><a href="#aws-data-landing-zone.Scripts.boostrapAll">boostrapAll</a></code> | Bootstraps all accounts in all regions as defined by the config. |
|
|
20401
|
+
| <code><a href="#aws-data-landing-zone.Scripts.configureCostAllocationTags">configureCostAllocationTags</a></code> | Sets the Cost Allocation Tags for the organization. |
|
|
20402
|
+
| <code><a href="#aws-data-landing-zone.Scripts.deployAll">deployAll</a></code> | CDK deploy all stacks. |
|
|
20403
|
+
| <code><a href="#aws-data-landing-zone.Scripts.deploySelect">deploySelect</a></code> | CDK deploy stacks identified by the id. |
|
|
20404
|
+
| <code><a href="#aws-data-landing-zone.Scripts.diffAll">diffAll</a></code> | CDK diff all stacks. |
|
|
20405
|
+
| <code><a href="#aws-data-landing-zone.Scripts.diffSelect">diffSelect</a></code> | CDK diff stacks identified by the id. |
|
|
20359
20406
|
|
|
20360
20407
|
---
|
|
20361
20408
|
|
|
20362
20409
|
##### `boostrapAll` <a name="boostrapAll" id="aws-data-landing-zone.Scripts.boostrapAll"></a>
|
|
20363
20410
|
|
|
20364
20411
|
```typescript
|
|
20365
|
-
|
|
20366
|
-
|
|
20367
|
-
Scripts.boostrapAll(props: DataLandingZoneProps, bootstrapRoleName?: string)
|
|
20412
|
+
public boostrapAll(props: DataLandingZoneProps, bootstrapRoleName?: string): void
|
|
20368
20413
|
```
|
|
20369
20414
|
|
|
20415
|
+
Bootstraps all accounts in all regions as defined by the config.
|
|
20416
|
+
|
|
20370
20417
|
###### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.Scripts.boostrapAll.parameter.props"></a>
|
|
20371
20418
|
|
|
20372
20419
|
- *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
|
|
@@ -20382,39 +20429,55 @@ Scripts.boostrapAll(props: DataLandingZoneProps, bootstrapRoleName?: string)
|
|
|
20382
20429
|
##### `configureCostAllocationTags` <a name="configureCostAllocationTags" id="aws-data-landing-zone.Scripts.configureCostAllocationTags"></a>
|
|
20383
20430
|
|
|
20384
20431
|
```typescript
|
|
20385
|
-
|
|
20386
|
-
|
|
20387
|
-
Scripts.configureCostAllocationTags(props: DataLandingZoneProps)
|
|
20432
|
+
public configureCostAllocationTags(props: DataLandingZoneProps, _?: ForceNoPythonArgumentLifting): void
|
|
20388
20433
|
```
|
|
20389
20434
|
|
|
20435
|
+
Sets the Cost Allocation Tags for the organization.
|
|
20436
|
+
|
|
20390
20437
|
###### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.Scripts.configureCostAllocationTags.parameter.props"></a>
|
|
20391
20438
|
|
|
20392
20439
|
- *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
|
|
20393
20440
|
|
|
20394
20441
|
---
|
|
20395
20442
|
|
|
20443
|
+
###### `_`<sup>Optional</sup> <a name="_" id="aws-data-landing-zone.Scripts.configureCostAllocationTags.parameter._"></a>
|
|
20444
|
+
|
|
20445
|
+
- *Type:* <a href="#aws-data-landing-zone.ForceNoPythonArgumentLifting">ForceNoPythonArgumentLifting</a>
|
|
20446
|
+
|
|
20447
|
+
Ignore this parameter, it is used to force a consistent interface across TS and Python usage.
|
|
20448
|
+
|
|
20449
|
+
---
|
|
20450
|
+
|
|
20396
20451
|
##### `deployAll` <a name="deployAll" id="aws-data-landing-zone.Scripts.deployAll"></a>
|
|
20397
20452
|
|
|
20398
20453
|
```typescript
|
|
20399
|
-
|
|
20400
|
-
|
|
20401
|
-
Scripts.deployAll(props: DataLandingZoneProps)
|
|
20454
|
+
public deployAll(props: DataLandingZoneProps, _?: ForceNoPythonArgumentLifting): void
|
|
20402
20455
|
```
|
|
20403
20456
|
|
|
20457
|
+
CDK deploy all stacks.
|
|
20458
|
+
|
|
20404
20459
|
###### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.Scripts.deployAll.parameter.props"></a>
|
|
20405
20460
|
|
|
20406
20461
|
- *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
|
|
20407
20462
|
|
|
20408
20463
|
---
|
|
20409
20464
|
|
|
20465
|
+
###### `_`<sup>Optional</sup> <a name="_" id="aws-data-landing-zone.Scripts.deployAll.parameter._"></a>
|
|
20466
|
+
|
|
20467
|
+
- *Type:* <a href="#aws-data-landing-zone.ForceNoPythonArgumentLifting">ForceNoPythonArgumentLifting</a>
|
|
20468
|
+
|
|
20469
|
+
Ignore this parameter, it is used to force a consistent interface across TS and Python usage.
|
|
20470
|
+
|
|
20471
|
+
---
|
|
20472
|
+
|
|
20410
20473
|
##### `deploySelect` <a name="deploySelect" id="aws-data-landing-zone.Scripts.deploySelect"></a>
|
|
20411
20474
|
|
|
20412
20475
|
```typescript
|
|
20413
|
-
|
|
20414
|
-
|
|
20415
|
-
Scripts.deploySelect(props: DataLandingZoneProps, id: string)
|
|
20476
|
+
public deploySelect(props: DataLandingZoneProps, id: string): void
|
|
20416
20477
|
```
|
|
20417
20478
|
|
|
20479
|
+
CDK deploy stacks identified by the id.
|
|
20480
|
+
|
|
20418
20481
|
###### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.Scripts.deploySelect.parameter.props"></a>
|
|
20419
20482
|
|
|
20420
20483
|
- *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
|
|
@@ -20430,25 +20493,33 @@ Scripts.deploySelect(props: DataLandingZoneProps, id: string)
|
|
|
20430
20493
|
##### `diffAll` <a name="diffAll" id="aws-data-landing-zone.Scripts.diffAll"></a>
|
|
20431
20494
|
|
|
20432
20495
|
```typescript
|
|
20433
|
-
|
|
20434
|
-
|
|
20435
|
-
Scripts.diffAll(props: DataLandingZoneProps)
|
|
20496
|
+
public diffAll(props: DataLandingZoneProps, _?: ForceNoPythonArgumentLifting): void
|
|
20436
20497
|
```
|
|
20437
20498
|
|
|
20499
|
+
CDK diff all stacks.
|
|
20500
|
+
|
|
20438
20501
|
###### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.Scripts.diffAll.parameter.props"></a>
|
|
20439
20502
|
|
|
20440
20503
|
- *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
|
|
20441
20504
|
|
|
20442
20505
|
---
|
|
20443
20506
|
|
|
20507
|
+
###### `_`<sup>Optional</sup> <a name="_" id="aws-data-landing-zone.Scripts.diffAll.parameter._"></a>
|
|
20508
|
+
|
|
20509
|
+
- *Type:* <a href="#aws-data-landing-zone.ForceNoPythonArgumentLifting">ForceNoPythonArgumentLifting</a>
|
|
20510
|
+
|
|
20511
|
+
Ignore this parameter, it is used to force a consistent interface across TS and Python usage.
|
|
20512
|
+
|
|
20513
|
+
---
|
|
20514
|
+
|
|
20444
20515
|
##### `diffSelect` <a name="diffSelect" id="aws-data-landing-zone.Scripts.diffSelect"></a>
|
|
20445
20516
|
|
|
20446
20517
|
```typescript
|
|
20447
|
-
|
|
20448
|
-
|
|
20449
|
-
Scripts.diffSelect(props: DataLandingZoneProps, id: string)
|
|
20518
|
+
public diffSelect(props: DataLandingZoneProps, id: string): void
|
|
20450
20519
|
```
|
|
20451
20520
|
|
|
20521
|
+
CDK diff stacks identified by the id.
|
|
20522
|
+
|
|
20452
20523
|
###### `props`<sup>Required</sup> <a name="props" id="aws-data-landing-zone.Scripts.diffSelect.parameter.props"></a>
|
|
20453
20524
|
|
|
20454
20525
|
- *Type:* <a href="#aws-data-landing-zone.DataLandingZoneProps">DataLandingZoneProps</a>
|
|
@@ -20463,6 +20534,7 @@ Scripts.diffSelect(props: DataLandingZoneProps, id: string)
|
|
|
20463
20534
|
|
|
20464
20535
|
|
|
20465
20536
|
|
|
20537
|
+
|
|
20466
20538
|
## Protocols <a name="Protocols" id="Protocols"></a>
|
|
20467
20539
|
|
|
20468
20540
|
### IDlzControlTowerControl <a name="IDlzControlTowerControl" id="aws-data-landing-zone.IDlzControlTowerControl"></a>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Defaults
|
|
3
|
+
description: Defaults
|
|
4
|
+
---
|
|
5
|
+
import DualCode from "../../../components/DualCode.astro";
|
|
6
|
+
|
|
7
|
+
The Data Landing Zone provides opinionated yet configurable setups by offering optional defaults for various
|
|
8
|
+
parts of the configuration. These defaults help streamline setup while remaining adaptable to specific requirements.
|
|
9
|
+
|
|
10
|
+
### Example: Using Defaults in Budgets
|
|
11
|
+
|
|
12
|
+
An example of applying defaults is demonstrated in the [Budgets](/components/account-management/budgets#defaults)
|
|
13
|
+
component, where the `Defaults.budgets` object is used to create two standard budgets.
|
|
14
|
+
|
|
15
|
+
Below is a code snippet illustrating how to configure a budget of $100 for the entire organization and $20 for
|
|
16
|
+
resources created by the DLZ:
|
|
17
|
+
|
|
18
|
+
<DualCode>
|
|
19
|
+
<Fragment slot="ts">
|
|
20
|
+
```ts
|
|
21
|
+
import {App} from 'aws-cdk-lib';
|
|
22
|
+
import { DataLandingZone } from 'aws-data-landing-zone';
|
|
23
|
+
|
|
24
|
+
const app = new App();
|
|
25
|
+
const dlz = new DataLandingZone(app, {
|
|
26
|
+
budgets: [
|
|
27
|
+
...Defaults.budgets(100, 20, {
|
|
28
|
+
emails: ['you@org.com'],
|
|
29
|
+
}),
|
|
30
|
+
],
|
|
31
|
+
...
|
|
32
|
+
});
|
|
33
|
+
```
|
|
34
|
+
</Fragment>
|
|
35
|
+
<Fragment slot="python">
|
|
36
|
+
```python
|
|
37
|
+
#!/usr/bin/env python3
|
|
38
|
+
import aws_cdk as cdk
|
|
39
|
+
import aws_data_landing_zone as dlz
|
|
40
|
+
|
|
41
|
+
app = cdk.App()
|
|
42
|
+
dlz.DataLandingZone(app,
|
|
43
|
+
budgets=[
|
|
44
|
+
*dlz.Defaults.budgets(
|
|
45
|
+
100,
|
|
46
|
+
20,
|
|
47
|
+
emails=["you@org.com"],
|
|
48
|
+
),
|
|
49
|
+
],
|
|
50
|
+
...
|
|
51
|
+
)
|
|
52
|
+
app.synth()
|
|
53
|
+
```
|
|
54
|
+
</Fragment>
|
|
55
|
+
</DualCode>
|
|
56
|
+
|
|
57
|
+
### List of Defaults
|
|
58
|
+
|
|
59
|
+
A comprehensive list of defaults referenced throughout the documentation:
|
|
60
|
+
|
|
61
|
+
- [Defaults.budgets](/components/account-management/budgets#defaults): Creates two budgets, one for the organization
|
|
62
|
+
and another for the DLZ-managed resources.
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
title: Scripts and Commands
|
|
3
3
|
description: Reference - Scripts and Commands
|
|
4
4
|
---
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
import DualCode from "../../../components/DualCode.astro";
|
|
6
7
|
|
|
7
8
|
## Scripts
|
|
8
9
|
|
|
@@ -41,7 +42,7 @@ These scripts do not require full administrative access, allowing for a more res
|
|
|
41
42
|
enhance security.
|
|
42
43
|
|
|
43
44
|
The `bootstrap` script, however, requires elevated permissions. The specified profile must have administrative access
|
|
44
|
-
to the
|
|
45
|
+
to the Management account and the ability to assume the `AWSControlTowerExecution` role created by AWS
|
|
45
46
|
Control Tower. These permissions are highly privileged and should be handled with caution.
|
|
46
47
|
|
|
47
48
|
### TypeScript Usage
|
|
@@ -49,8 +50,9 @@ Control Tower. These permissions are highly privileged and should be handled wit
|
|
|
49
50
|
A complete example is available in the [TypeScript Example GitHub Repo](https://github.com/DataChefHQ/aws-data-landing-zone-example-typescript)
|
|
50
51
|
|
|
51
52
|
The code snippets below are from:
|
|
53
|
+
|
|
52
54
|
- [/scripts](https://github.com/DataChefHQ/aws-data-landing-zone-example-typescript/tree/main/scripts)
|
|
53
|
-
- [
|
|
55
|
+
- [package.json](https://github.com/DataChefHQ/aws-data-landing-zone-example-typescript/tree/main/package.json)
|
|
54
56
|
|
|
55
57
|
There are many ways to run scripts in a TypeScript project. Here, we’ll explore a simple and straightforward approach.
|
|
56
58
|
Start by creating a `scripts` directory at the root of your project, and add individual TypeScript files, each
|
|
@@ -58,11 +60,11 @@ containing the specific DLZ `Scripts` you want to execute.
|
|
|
58
60
|
|
|
59
61
|
```ts
|
|
60
62
|
// scripts/bootstrap.ts
|
|
61
|
-
import { Scripts } from
|
|
62
|
-
import { config } from
|
|
63
|
+
import { Scripts } from "aws-data-landing-zone";
|
|
64
|
+
import { config } from "../bin/minimum_config";
|
|
63
65
|
|
|
64
66
|
(async () => {
|
|
65
|
-
await Scripts.boostrapAll(config);
|
|
67
|
+
await (new Scripts()).boostrapAll(config);
|
|
66
68
|
})();
|
|
67
69
|
```
|
|
68
70
|
|
|
@@ -73,43 +75,83 @@ simplify the process, add a corresponding script to your `package.json`.
|
|
|
73
75
|
// package.json
|
|
74
76
|
{
|
|
75
77
|
"scripts": {
|
|
76
|
-
"bootstrap": "npx ts-node scripts/bootstrap.ts"
|
|
78
|
+
"bootstrap": "npx ts-node --prefer-ts-exts scripts/bootstrap.ts"
|
|
77
79
|
}
|
|
78
80
|
}
|
|
79
81
|
```
|
|
80
|
-
|
|
82
|
+
|
|
83
|
+
You can then execute the script with:
|
|
84
|
+
```
|
|
85
|
+
npm run bootstrap
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
The `bootstrapAll` function reads the DLZ configuration,
|
|
81
89
|
including details such as AWS profiles, account IDs, and regions. It orchestrates the bootstrapping process for the
|
|
82
|
-
|
|
90
|
+
management, security audit, security log, and workload accounts, ensuring they all trust the Management account.
|
|
83
91
|
|
|
84
92
|
#### Available Scripts
|
|
85
93
|
|
|
86
|
-
- `
|
|
87
|
-
and workload accounts) in all regions.
|
|
88
|
-
- `
|
|
89
|
-
- `
|
|
90
|
-
- `
|
|
91
|
-
- `
|
|
92
|
-
- `
|
|
94
|
+
- `boostrapAll(props: DataLandingZoneProps)` - Bootstraps all accounts (management, security audit, security log,
|
|
95
|
+
and workload accounts) in all regions.
|
|
96
|
+
- `diffAll(props: DataLandingZoneProps)` - Runs `cdk diff "**"` to show differences for all stacks across all accounts and regions.
|
|
97
|
+
- `diffSelect(props: DataLandingZoneProps, id: string)` - Runs `cdk diff "${id}"` to show differences for a selected stack using its ID.
|
|
98
|
+
- `deployAll(props: DataLandingZoneProps)` - Deploys all stacks in all accounts and regions using `cdk deploy "**"`.
|
|
99
|
+
- `deploySelect(props: DataLandingZoneProps, id: string)` - Deploys a selected stack using `cdk deploy "${id}"`.
|
|
100
|
+
- `configureCostAllocationTags(props: DataLandingZoneProps)` - Sets the `mandatoryTags` and
|
|
93
101
|
`additionalMandatoryTags` properties as cost allocation tags.
|
|
94
102
|
|
|
95
|
-
|
|
96
103
|
More examples and pre-configured scripts are available in the
|
|
97
104
|
[TypeScript Example GitHub Repo](https://github.com/DataChefHQ/aws-data-landing-zone-example-typescript). These can
|
|
98
105
|
be copied and reused in your project. They contain pre-configured scripts for the most common stack
|
|
99
|
-
selecting ids for the `
|
|
106
|
+
selecting ids for the `diffSelect` and `deploySelect` functions.
|
|
100
107
|
|
|
101
108
|
Refer to the [Stack Patterns](/components/build-system/deployment-order#stacks-patterns) section for a full list of stack selecting IDs.
|
|
102
109
|
|
|
103
110
|
### Python Usage
|
|
104
111
|
|
|
105
|
-
|
|
106
|
-
The log lines are out of order when using the scripts in Python. This is a known issue and requires further
|
|
107
|
-
investigation.
|
|
112
|
+
A complete example is available in the [Python Example GitHub Repo](https://github.com/DataChefHQ/aws-data-landing-zone-example-python)
|
|
108
113
|
|
|
109
|
-
|
|
110
|
-
:::
|
|
114
|
+
The code snippets below are from:
|
|
111
115
|
|
|
112
|
-
|
|
116
|
+
- [/scripts](https://github.com/DataChefHQ/aws-data-landing-zone-example-python/tree/main/scripts)
|
|
117
|
+
|
|
118
|
+
Here, we’ll explore a simple and straightforward approach to run the DLZ scripts in Python.
|
|
119
|
+
Start by creating a `scripts` directory at the root of your project, and add individual Python files, each
|
|
120
|
+
containing the specific DLZ `Scripts` you want to execute.
|
|
121
|
+
|
|
122
|
+
```python
|
|
123
|
+
// scripts/bootstrap.py
|
|
124
|
+
from aws_data_landing_zone import Scripts
|
|
125
|
+
from data_landing_zone_example_python.config_minimum import config
|
|
126
|
+
|
|
127
|
+
scripts = Scripts()
|
|
128
|
+
scripts.deploy_all(props=config)
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
You can then execute the script with:
|
|
132
|
+
```
|
|
133
|
+
python scripts/bootstrap.py
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
The `bootstrapAll` function reads the DLZ configuration,
|
|
137
|
+
including details such as AWS profiles, account IDs, and regions. It orchestrates the bootstrapping process for the
|
|
138
|
+
management, security audit, security log, and workload accounts, ensuring they all trust the Management account.
|
|
139
|
+
|
|
140
|
+
#### Available Scripts
|
|
141
|
+
|
|
142
|
+
- `boostrap_all(props: DataLandingZoneProps)` - Bootstraps all accounts (management, security audit, security log,
|
|
143
|
+
and workload accounts) in all regions.
|
|
144
|
+
- `diff_all(props: DataLandingZoneProps)` - Runs `cdk diff "**"` to show differences for all stacks across all accounts and regions.
|
|
145
|
+
- `diff_select(props: DataLandingZoneProps, id: string)` - Runs `cdk diff "${id}"` to show differences for a selected stack using its ID.
|
|
146
|
+
- `deploy_all(props: DataLandingZoneProps)` - Deploys all stacks in all accounts and regions using `cdk deploy "**"`.
|
|
147
|
+
- `deploy_select(props: DataLandingZoneProps, id: string)` - Deploys a selected stack using `cdk deploy "${id}"`.
|
|
148
|
+
- `configure_cost_allocation_tags(props: DataLandingZoneProps)` - Sets the `mandatoryTags` and
|
|
149
|
+
`additionalMandatoryTags` properties as cost allocation tags.
|
|
150
|
+
|
|
151
|
+
More examples and pre-configured scripts are available in the
|
|
152
|
+
[Python Example GitHub Repo](https://github.com/DataChefHQ/aws-data-landing-zone-example-python). These can
|
|
153
|
+
be copied and reused in your project. They contain pre-configured scripts for the most common stack
|
|
154
|
+
selecting ids for the `diffSelect` and `deploySelect` functions.
|
|
113
155
|
|
|
114
156
|
## Commands (manual)
|
|
115
157
|
|
|
@@ -123,11 +165,12 @@ commands are detailed below for reference or troubleshooting purposes.
|
|
|
123
165
|
### Bootstrap
|
|
124
166
|
|
|
125
167
|
Each account and region defined in the DLZ configuration must be CDK bootstrapped. This process is automated by the
|
|
126
|
-
`
|
|
168
|
+
`boostrapAll` function. For manual execution, use the following steps:
|
|
127
169
|
|
|
128
170
|
Script replacements:
|
|
171
|
+
|
|
129
172
|
- `YOUR_PROFILE` - The AWS CLI profile to use. See required permission as mentioned in [Scripts permission](#scripts-permission).
|
|
130
|
-
- `
|
|
173
|
+
- `MANAGMENT_ACCOUNT_ID` - The AWS Account ID of the management account. All other accounts will trust this account.
|
|
131
174
|
- `SECURITY_LOG_ACCOUNT_ID` - The AWS Account ID of the security log account.
|
|
132
175
|
- `SECURITY_AUDIT_ACCOUNT_ID` - The AWS Account ID of the security log account.
|
|
133
176
|
- `GLOBAL_REGION` - The region where the management account is located.
|
|
@@ -144,7 +187,7 @@ ACCOUNTS=(
|
|
|
144
187
|
"SECURITY_AUDIT_ACCOUNT_ID"
|
|
145
188
|
"WORKLOAD_ACCOUNT_IDS")
|
|
146
189
|
|
|
147
|
-
cdk bootstrap --cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess --profile $YOUR_PROFILE --tags Owner=infra --tags Project=dlz --tags Environment=dlz aws://$
|
|
190
|
+
cdk bootstrap --cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess --profile $YOUR_PROFILE --tags Owner=infra --tags Project=dlz --tags Environment=dlz aws://$MANAGMENT_ACCOUNT_ID/$GLOBAL_REGION
|
|
148
191
|
|
|
149
192
|
for account in "${ACCOUNTS[@]}"; do
|
|
150
193
|
|
|
@@ -159,21 +202,21 @@ for account in "${ACCOUNTS[@]}"; do
|
|
|
159
202
|
export AWS_SECRET_ACCESS_KEY
|
|
160
203
|
export AWS_SESSION_TOKEN
|
|
161
204
|
|
|
162
|
-
cdk bootstrap --cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess --trust $
|
|
205
|
+
cdk bootstrap --cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess --trust $MANAGMENT_ACCOUNT_ID --tags Owner=infra --tags Project=dlz --tags Environment=dlz aws://$account/$GLOBAL_REGION
|
|
163
206
|
for region in "${REGIONS[@]}"; do
|
|
164
|
-
cdk bootstrap --cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess --trust $
|
|
207
|
+
cdk bootstrap --cloudformation-execution-policies arn:aws:iam::aws:policy/AdministratorAccess --trust $MANAGMENT_ACCOUNT_ID --tags Owner=infra --tags Project=dlz --tags Environment=dlz aws://$account/$region
|
|
165
208
|
done
|
|
166
209
|
done
|
|
167
210
|
```
|
|
168
211
|
|
|
169
|
-
|
|
170
212
|
### Diff
|
|
171
213
|
|
|
172
214
|
The cdk diff command compares the current state of stacks with the code definition.
|
|
173
|
-
This process is automated by the `
|
|
215
|
+
This process is automated by the `diffAll` and `diffSelect` functions.
|
|
174
216
|
For manual execution, see the following examples:
|
|
175
217
|
|
|
176
218
|
Below are a few examples of how to run the diff command manually.
|
|
219
|
+
|
|
177
220
|
```bash
|
|
178
221
|
# To diff all the stacks in all accounts and regions.
|
|
179
222
|
cdk diff "**" --profile YOUR_PROFILE
|
|
@@ -188,7 +231,7 @@ Refer to the [Stack Patterns](/components/build-system/deployment-order#stacks-p
|
|
|
188
231
|
### Deploy
|
|
189
232
|
|
|
190
233
|
The CDK deploy command deploys the stacks defined in the CDK code.
|
|
191
|
-
This process is automated by the `
|
|
234
|
+
This process is automated by the `deployAll` and `deploySelect` functions.
|
|
192
235
|
For manual execution, see the following examples:
|
|
193
236
|
|
|
194
237
|
```bash
|
|
@@ -204,7 +247,7 @@ Refer to the [Stack Patterns](/components/build-system/deployment-order#stacks-p
|
|
|
204
247
|
|
|
205
248
|
### Configure Cost Allocation Tags
|
|
206
249
|
|
|
207
|
-
Manually set cost allocation tags using the following script:
|
|
250
|
+
Manually set cost allocation tags for the Management account's global region using the following script:
|
|
208
251
|
|
|
209
252
|
```bash
|
|
210
253
|
TAGS=("Tag1" "Tag2")
|
|
@@ -213,11 +256,5 @@ TAGS_JSON="[${TAGS_JSON:1}]"
|
|
|
213
256
|
aws ce update-cost-allocation-tags-status --cost-allocation-tags-statuses "$TAGS_JSON"
|
|
214
257
|
```
|
|
215
258
|
|
|
216
|
-
The `
|
|
259
|
+
The `configureCostAllocationTags` script sets the `mandatoryTags` and `additionalMandatoryTags`
|
|
217
260
|
properties as cost allocation tags.
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
# Default notifications in Slack
|
|
2
2
|
|
|
3
|
-
To facilitate communication regarding the **Data Landing Zone** there are default "channels" that can send notifications
|
|
3
|
+
To facilitate communication regarding the **Data Landing Zone** there are default "channels" that can send notifications
|
|
4
|
+
to be delivered to the application's team. The "channels" are configured to use **email** or **Slack notification**.
|
|
5
|
+
For Slack messages these are sent to an **SNS topic** that is delivered to a **ChatBot** and then it gets sent to
|
|
6
|
+
**Slack Channels**. These channels are created and configured by the user first. The notfication settings are then
|
|
7
|
+
configured in the **DLZ** using default notification settings at the organization level, or can be set and overridden
|
|
8
|
+
at the account level.
|
|
4
9
|
|
|
5
10
|
## To use email notifications
|
|
6
11
|
|
|
7
|
-
If you want to use email notifications, you need to create a configuration in the **DLZ** that creates these "channels"
|
|
12
|
+
If you want to use email notifications, you need to create a configuration in the **DLZ** that creates these "channels"
|
|
13
|
+
for teams so that they can get notified by just sending a message to an **SNS topic**. This will then be delivered to
|
|
14
|
+
the email subscriptions for the **SNS topic**. To setup email notfication using AWS guide use this link:
|
|
15
|
+
[setting up email notifications](https://docs.aws.amazon.com/sns/latest/dg/sns-email-notifications.html). Its important to note that the email address must be verified before it can
|
|
16
|
+
be used in the **DLZ**.
|
|
8
17
|
|
|
9
18
|
## To use Slack notifications
|
|
10
19
|
|
|
11
|
-
For the Data Landing Zone, each account will need to be configured with a Slack channel. For an AWS account to be able
|
|
20
|
+
For the Data Landing Zone, each account will need to be configured with a Slack channel. For an AWS account to be able
|
|
21
|
+
to send notifications to Slack, it must be approved in the Slack workspace. You must manually connect Slack and the
|
|
22
|
+
aws account(s) before deploying the DLZ.
|
|
12
23
|
|
|
13
24
|
To follow along using AWS guide use this link: [setting up Slack](https://docs.aws.amazon.com/chatbot/latest/adminguide/Slack-setup.html)
|
|
14
25
|
|