aws-data-landing-zone 0.0.40 → 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.
Files changed (67) hide show
  1. package/.jsii +116 -123
  2. package/API.md +27 -17
  3. package/README.md +2 -2
  4. package/docs/astro.config.ts +17 -14
  5. package/docs/src/content/docs/components/account-management/accounts.mdx +142 -0
  6. package/docs/src/content/docs/components/account-management/budgets.mdx +152 -0
  7. package/docs/src/content/docs/components/account-management/imgs/account_factory_settings.png +0 -0
  8. package/docs/src/content/docs/components/account-management/imgs/aws_new_account_1.png +0 -0
  9. package/docs/src/content/docs/components/account-management/imgs/aws_new_account_2.png +0 -0
  10. package/docs/src/content/docs/components/account-management/imgs/aws_new_account_3.png +0 -0
  11. package/docs/src/content/docs/components/account-management/imgs/aws_new_account_4.png +0 -0
  12. package/docs/src/content/docs/components/account-management/imgs/aws_new_account_5.png +0 -0
  13. package/docs/src/content/docs/components/account-management/imgs/aws_organisation_ids_final.png +0 -0
  14. package/docs/src/content/docs/components/account-management/regions.mdx +68 -0
  15. package/docs/src/content/docs/components/account-management/service-deny-list.mdx +60 -0
  16. package/docs/src/content/docs/components/account-management/sop-account-setup.mdx +40 -0
  17. package/docs/src/content/docs/components/account-management/sop-add-account.mdx +121 -0
  18. package/docs/src/content/docs/components/account-management/sop-initial-control-tower-setup.mdx +205 -0
  19. package/docs/src/content/docs/components/account-management/tagging.mdx +130 -0
  20. package/docs/src/content/docs/components/build-system/ci-integration.mdx +7 -8
  21. package/docs/src/content/docs/getting-started.mdx +187 -159
  22. package/docs/src/content/docs/introduction.mdx +4 -5
  23. package/docs/src/content/docs/reference/api.md +27 -17
  24. package/docs/src/content/docs/reference/defaults.mdx +62 -0
  25. package/docs/src/content/docs/reference/scripts-commands.mdx +76 -39
  26. package/docs-old/rough-docs/default-notification/default-notification.md +14 -3
  27. package/lib/constructs/account-chatbots/index.d.ts +17 -0
  28. package/lib/constructs/account-chatbots/index.js +2 -2
  29. package/lib/constructs/dlz-budget/index.js +1 -1
  30. package/lib/constructs/dlz-control-tower-control/control-tower-control.js +1 -1
  31. package/lib/constructs/dlz-lake-formation/dlz-lake-formation.js +1 -1
  32. package/lib/constructs/dlz-ssm-reader/dlz-ssm-reader-stack-cache.js +1 -1
  33. package/lib/constructs/dlz-ssm-reader/dlz-ssm-reader.js +1 -1
  34. package/lib/constructs/dlz-stack/index.js +1 -1
  35. package/lib/constructs/dlz-vpc/dlz-account-networks.js +1 -1
  36. package/lib/constructs/dlz-vpc/dlz-vpc.js +1 -1
  37. package/lib/constructs/dlz-vpc/network-address.js +1 -1
  38. package/lib/constructs/iam-identity-center/iam-identity-center-group.js +1 -1
  39. package/lib/constructs/iam-identity-center/iam-identity-center.js +1 -1
  40. package/lib/constructs/iam-identity-center/identity-store-user.js +1 -1
  41. package/lib/constructs/organization-policies/service-control-policy.js +1 -1
  42. package/lib/constructs/organization-policies/tag-policy.js +1 -1
  43. package/lib/data-landing-zone-client.js +1 -1
  44. package/lib/data-landing-zone-types.d.ts +9 -0
  45. package/lib/data-landing-zone-types.js +1 -1
  46. package/lib/data-landing-zone.js +1 -1
  47. package/lib/defaults.js +1 -1
  48. package/lib/lib/report/index.js +1 -1
  49. package/lib/scripts/index.js +1 -1
  50. package/lib/stacks/organization/management-stack.js +1 -1
  51. package/lib/stacks/organization/security/audit/global-stack.js +1 -1
  52. package/lib/stacks/organization/security/audit/regional-stack.js +1 -1
  53. package/lib/stacks/organization/security/log/global-stack.js +1 -1
  54. package/lib/stacks/organization/security/log/regional-stack.js +1 -1
  55. package/lib/stacks/organization/workloads/base/global-stack.d.ts +0 -2
  56. package/lib/stacks/organization/workloads/base/global-stack.js +13 -13
  57. package/lib/stacks/organization/workloads/base/regional-stack.js +1 -1
  58. package/lib/stacks/organization/workloads/data-services-phase-1-stack/global-stack.js +1 -1
  59. package/lib/stacks/organization/workloads/data-services-phase-1-stack/regional-stack.js +1 -1
  60. package/lib/stacks/organization/workloads/network-connections-phase-1-stack/global-stack.js +1 -1
  61. package/lib/stacks/organization/workloads/network-connections-phase-2-stack/global-stack.js +1 -1
  62. package/lib/stacks/organization/workloads/network-connections-phase-2-stack/regional-stack.js +1 -1
  63. package/lib/stacks/organization/workloads/network-connections-phase-3-stack/global-stack.js +1 -1
  64. package/lib/stacks/organization/workloads/network-connections-phase-3-stack/regional-stack.js +1 -1
  65. package/package.json +1 -1
  66. package/docs/src/content/docs/components/account-management/introduction.mdx +0 -4
  67. 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
 
@@ -17200,9 +17189,9 @@ const mandatoryTags: MandatoryTags = { ... }
17200
17189
 
17201
17190
  | **Name** | **Type** | **Description** |
17202
17191
  | --- | --- | --- |
17203
- | <code><a href="#aws-data-landing-zone.MandatoryTags.property.environment">environment</a></code> | <code>string[]</code> | *No description.* |
17204
- | <code><a href="#aws-data-landing-zone.MandatoryTags.property.owner">owner</a></code> | <code>string[]</code> | *No description.* |
17205
- | <code><a href="#aws-data-landing-zone.MandatoryTags.property.project">project</a></code> | <code>string[]</code> | *No description.* |
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. |
17206
17195
 
17207
17196
  ---
17208
17197
 
@@ -17214,6 +17203,8 @@ public readonly environment: string[];
17214
17203
 
17215
17204
  - *Type:* string[]
17216
17205
 
17206
+ The values of the mandatory `Environment` tag that all resources must have.
17207
+
17217
17208
  ---
17218
17209
 
17219
17210
  ##### `owner`<sup>Required</sup> <a name="owner" id="aws-data-landing-zone.MandatoryTags.property.owner"></a>
@@ -17224,6 +17215,8 @@ public readonly owner: string[];
17224
17215
 
17225
17216
  - *Type:* string[]
17226
17217
 
17218
+ The values of the mandatory `Owner` tag that all resources must have.
17219
+
17227
17220
  ---
17228
17221
 
17229
17222
  ##### `project`<sup>Required</sup> <a name="project" id="aws-data-landing-zone.MandatoryTags.property.project"></a>
@@ -17234,6 +17227,8 @@ public readonly project: string[];
17234
17227
 
17235
17228
  - *Type:* string[]
17236
17229
 
17230
+ The values of the mandatory `Project` tag that all resources must have.
17231
+
17237
17232
  ---
17238
17233
 
17239
17234
  ### Network <a name="Network" id="aws-data-landing-zone.Network"></a>
@@ -18469,9 +18464,9 @@ const slackChannel: SlackChannel = { ... }
18469
18464
 
18470
18465
  | **Name** | **Type** | **Description** |
18471
18466
  | --- | --- | --- |
18472
- | <code><a href="#aws-data-landing-zone.SlackChannel.property.slackChannelConfigurationName">slackChannelConfigurationName</a></code> | <code>string</code> | *No description.* |
18473
- | <code><a href="#aws-data-landing-zone.SlackChannel.property.slackChannelId">slackChannelId</a></code> | <code>string</code> | *No description.* |
18474
- | <code><a href="#aws-data-landing-zone.SlackChannel.property.slackWorkspaceId">slackWorkspaceId</a></code> | <code>string</code> | *No description.* |
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. |
18475
18470
 
18476
18471
  ---
18477
18472
 
@@ -18483,6 +18478,8 @@ public readonly slackChannelConfigurationName: string;
18483
18478
 
18484
18479
  - *Type:* string
18485
18480
 
18481
+ The name of Slack channel configuration.
18482
+
18486
18483
  ---
18487
18484
 
18488
18485
  ##### `slackChannelId`<sup>Required</sup> <a name="slackChannelId" id="aws-data-landing-zone.SlackChannel.property.slackChannelId"></a>
@@ -18493,6 +18490,11 @@ public readonly slackChannelId: string;
18493
18490
 
18494
18491
  - *Type:* string
18495
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
+
18496
18498
  ---
18497
18499
 
18498
18500
  ##### `slackWorkspaceId`<sup>Required</sup> <a name="slackWorkspaceId" id="aws-data-landing-zone.SlackChannel.property.slackWorkspaceId"></a>
@@ -18503,6 +18505,14 @@ public readonly slackWorkspaceId: string;
18503
18505
 
18504
18506
  - *Type:* string
18505
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
+
18506
18516
  ---
18507
18517
 
18508
18518
  ### WorkloadAccountProps <a name="WorkloadAccountProps" id="aws-data-landing-zone.WorkloadAccountProps"></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 '@DataChefHQ/data-landing-zone';
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 recipes_dlz as dlz
112
+ import aws_data_landing_zone as dlz
113
113
 
114
114
  app = cdk.App()
115
115
  dlz.DataLandingZone(app,
@@ -49,16 +49,19 @@ export default defineConfig({
49
49
  label: 'Components',
50
50
  items: [
51
51
  // TODO: Complete docs
52
- // {
53
- // label: 'Account Management',
54
- // items: [
55
- // { label: 'Overview', slug: 'introduction'},
56
- // { label: 'Tagging', slug: 'introduction'},
57
- // { label: 'Budgets', slug: 'introduction'},
58
- // { label: 'SOP - Create Account', slug: 'introduction'},
59
- // { label: 'SOP - Add Account & Bootstrap', slug: 'introduction'},
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
- // { label: 'Defaults', slug: 'introduction'},
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)
@@ -0,0 +1,152 @@
1
+ ---
2
+ title: Budgets
3
+ description: Budgets
4
+ ---
5
+ import DualCode from '../../../../components/DualCode.astro';
6
+
7
+ AWS Budgets provides tools to monitor and control costs by setting custom spending thresholds. You can create monthly
8
+ budgets, specifying the budget amount and filtering resources based on their tags.
9
+
10
+ :::caution
11
+ Tags used for budget filters must be activated as Cost Allocation Tags in your account settings. See
12
+ [Activate Cost Allocation Tags](/components/account-management/tagging#activate-cost-allocation-tags) for details.
13
+ :::
14
+
15
+ Budget notifications are sent via Amazon SNS, which can be configured for the following delivery methods:
16
+ - **Email**: Each email address must confirm the notification opt-in the first time it is deployed.
17
+ - **Slack**: Notifications are sent to a designated Slack channel. The Slack workspace must be linked to the Management
18
+ Account. For setup details, see the SOP [AWS Chatbot and Slack Integration](sop-account-setup#aws-chatbot-and-slack-integration).
19
+
20
+ Below is an example of creating a budget for resources tagged with `Owner: backend`. Notifications will be sent to a
21
+ specified Slack channel and email address once the budget exceeds $100.
22
+ <DualCode>
23
+ <Fragment slot="ts">
24
+ ```ts
25
+ import {App} from 'aws-cdk-lib';
26
+ import { DataLandingZone, SlackChannel } from 'aws-data-landing-zone';
27
+
28
+ const slackBudgetNotifications: SlackChannel = {
29
+ slackChannelConfigurationName: 'budget-alerts',
30
+ slackWorkspaceId: 'YourWorkspaceId:',
31
+ slackChannelId: 'YourChannelId',
32
+ };
33
+
34
+ const app = new App();
35
+ const dlz = new DataLandingZone(app, {
36
+ budgets: [
37
+ {
38
+ name: 'backend',
39
+ forTags: {
40
+ owner: 'backend',
41
+ },
42
+ amount: 100,
43
+ subscribers: {
44
+ slack: slackBudgetNotifications,
45
+ emails: ['you@org.com'],
46
+ },
47
+ },
48
+ ],
49
+ ...
50
+ });
51
+ ```
52
+ </Fragment>
53
+ <Fragment slot="python">
54
+ ```python
55
+ #!/usr/bin/env python3
56
+ import aws_cdk as cdk
57
+ import aws_data_landing_zone as dlz
58
+
59
+ slack_budget_notifications = dlz.SlackChannel(
60
+ slack_channel_configuration_name="budget-alerts",
61
+ slack_workspace_id="YourWorkspaceId",
62
+ slack_channel_id="YourChannelId",
63
+ )
64
+
65
+ app = cdk.App()
66
+ dlz.DataLandingZone(app,
67
+ budgets=[
68
+ {
69
+ "name": "backend",
70
+ "for_tags": {
71
+ "owner": "backend",
72
+ },
73
+ "amount": 100,
74
+ "subscribers": {
75
+ "slack": slack_budget_notifications,
76
+ "emails": ["you@org.com"],
77
+ },
78
+ },
79
+ ],
80
+ ...
81
+ )
82
+ app.synth()
83
+ ```
84
+ </Fragment>
85
+ </DualCode>
86
+
87
+ ## Defaults
88
+
89
+ The construct provides two default budgets available via `Defaults.budgets`. These include:
90
+ - **Organizational Budget**: Covers all resources across all AWS accounts.
91
+ - **DLZ Resources Budget**: Tracks resources created by DLZ, filtered by the tags `Owner: 'infra'` and `Project: 'dlz'`.
92
+
93
+ The example below demonstrates creating a $100 budget for the entire organization and a $20 budget for DLZ-managed
94
+ resources. Notifications are sent to the specified Slack channel and email address.
95
+ <DualCode>
96
+ <Fragment slot="ts">
97
+ ```ts
98
+ import {App} from 'aws-cdk-lib';
99
+ import { DataLandingZone, SlackChannel } from 'aws-data-landing-zone';
100
+
101
+ const slackBudgetNotifications: SlackChannel = {
102
+ slackChannelConfigurationName: 'budget-alerts',
103
+ slackWorkspaceId: 'YourWorkspaceId:',
104
+ slackChannelId: 'YourChannelId',
105
+ };
106
+
107
+ const app = new App();
108
+ const dlz = new DataLandingZone(app, {
109
+ budgets: [
110
+ ...Defaults.budgets(100, 20, {
111
+ slack: slackBudgetNotifications,
112
+ emails: ['you@org.com'],
113
+ }),
114
+ ],
115
+ ...
116
+ });
117
+ ```
118
+ </Fragment>
119
+ <Fragment slot="python">
120
+ ```python
121
+ #!/usr/bin/env python3
122
+ import aws_cdk as cdk
123
+ import aws_data_landing_zone as dlz
124
+
125
+ slack_budget_notifications = dlz.SlackChannel(
126
+ slack_channel_configuration_name="budget-alerts",
127
+ slack_workspace_id="YourWorkspaceId",
128
+ slack_channel_id="YourChannelId",
129
+ )
130
+
131
+ app = cdk.App()
132
+ dlz.DataLandingZone(app,
133
+ budgets=[
134
+ *dlz.Defaults.budgets(
135
+ 100,
136
+ 20,
137
+ slack=slack_budget_notifications,
138
+ emails=["you@org.com"],
139
+ ),
140
+ ],
141
+ ...
142
+ )
143
+ app.synth()
144
+ ```
145
+ </Fragment>
146
+ </DualCode>
147
+
148
+ ## API References
149
+ - [Budget](/reference/api#dlzbudget)
150
+ - [BudgetProps](/reference/api#dlzbudgetprops)
151
+ - [Defaults.budgets](/reference/api#aws-data-landing-zone.Defaults.budgets)
152
+ - [SlackChannel](/reference/api#slackchannel)
@@ -0,0 +1,68 @@
1
+ ---
2
+ title: Regions
3
+ description: Regions
4
+ ---
5
+ import DualCode from '../../../../components/DualCode.astro';
6
+
7
+ The Data Landing Zone supports deployment across multiple AWS regions. When configuring regions, you must define:
8
+ - **Global Region**: Also referred to as the "home region" by Control Tower, this is where Control Tower is deployed.
9
+ It hosts non-regional resources such as IAM. The global region is deployed first, as other regions may depend on
10
+ resources created there. Note: the global region should not and cannot be changed after deployment.
11
+ - **Additional Regions**: One or more regions where you wish to manage and govern resources.
12
+
13
+
14
+ :::tip
15
+ Not all [AWS regions](https://docs.aws.amazon.com/controltower/latest/userguide/region-how.html) support every resource.
16
+ It is recommended to use major regions like `eu-west-1` or `us-east-1`, which typically have comprehensive support.
17
+ :::
18
+
19
+ Below is an example of defining a global region and one additional region.
20
+
21
+ <DualCode>
22
+ <Fragment slot="ts">
23
+ ```ts
24
+ import {App} from 'aws-cdk-lib';
25
+ import { DataLandingZone } from 'aws-data-landing-zone';
26
+
27
+ const app = new App();
28
+ const dlz = new DataLandingZone(app, {
29
+ regions: {
30
+ global: Region.EU_WEST_1,
31
+ regional: [Region.US_EAST_1],
32
+ },
33
+ ...
34
+ });
35
+ ```
36
+
37
+ </Fragment>
38
+ <Fragment slot="python">
39
+ ```python
40
+ #!/usr/bin/env python3
41
+ import aws_cdk as cdk
42
+ import aws_data_landing_zone as dlz
43
+
44
+ app = cdk.App()
45
+ dlz.DataLandingZone(app,
46
+ regions=dlz.DlzRegions(
47
+ global_=dlz.Region.EU_WEST_1,
48
+ regional=[dlz.Region.US_EAST_1],
49
+ ),
50
+ ...
51
+ )
52
+ app.synth()
53
+ ```
54
+
55
+ </Fragment>
56
+ </DualCode>
57
+
58
+ ## Adding a region
59
+
60
+ 1. Add the region to Control Tower and wait for the setup/deployment to complete.
61
+ 1. Update the Data Landing Zone configuration to include the new region.
62
+ 1. Run the `bootstrapAll` script or manually bootstrap the account using the AWS CDK. Refer to
63
+ [Scripts and Commands](/reference/scripts-commands) for detailed instructions.
64
+
65
+ ## API References
66
+ - [DataLandingZoneProps.regions](/reference/api#aws-data-landing-zone.DataLandingZoneProps.property.regions)
67
+ - [DlzRegions](/reference/api#aws-data-landing-zone.DlzRegions)
68
+ - [Region](/reference/api#aws-data-landing-zone.Region)
@@ -0,0 +1,60 @@
1
+ ---
2
+ title: Service Deny List
3
+ description: Service Deny List
4
+ ---
5
+ import DualCode from '../../../../components/DualCode.astro';
6
+
7
+ The Data Landing Zone supports deployment across multiple AWS regions. When configuring regions, you must define:
8
+ - **Global Region**: Also referred to as the "home region" by Control Tower, this is where Control Tower is deployed.
9
+ It hosts non-regional resources such as IAM. The global region is deployed first, as other regions may depend on
10
+ resources created there. Note: the global region should not and cannot be changed after deployment.
11
+ - **Additional Regions**: One or more regions where you wish to manage and govern resources.
12
+
13
+ :::tip
14
+ Not all [AWS regions](https://docs.aws.amazon.com/controltower/latest/userguide/region-how.html) support every resource.
15
+ It is recommended to use major regions like `eu-west-1` or `us-east-1`, which typically have comprehensive support.
16
+ :::
17
+
18
+ Below is an example of defining a global region and one additional region.
19
+
20
+ <DualCode>
21
+ <Fragment slot="ts">
22
+ ```ts
23
+ import {App} from 'aws-cdk-lib';
24
+ import { DataLandingZone } from 'aws-data-landing-zone';
25
+
26
+ const app = new App();
27
+ const dlz = new DataLandingZone(app, {
28
+ regions: {
29
+ global: Region.EU_WEST_1,
30
+ regional: [Region.US_EAST_1],
31
+ },
32
+ ...
33
+ });
34
+ ```
35
+
36
+ </Fragment>
37
+ <Fragment slot="python">
38
+ ```python
39
+ #!/usr/bin/env python3
40
+ import aws_cdk as cdk
41
+ import aws_data_landing_zone as dlz
42
+
43
+ app = cdk.App()
44
+ dlz.DataLandingZone(app,
45
+ regions=dlz.DlzRegions(
46
+ global_=dlz.Region.EU_WEST_1,
47
+ regional=[dlz.Region.US_EAST_1],
48
+ ),
49
+ ...
50
+ )
51
+ app.synth()
52
+ ```
53
+
54
+ </Fragment>
55
+ </DualCode>
56
+
57
+ ## API References
58
+ - [DataLandingZoneProps.regions](/reference/api#aws-data-landing-zone.DataLandingZoneProps.property.regions)
59
+ - [DlzRegions](/reference/api#aws-data-landing-zone.DlzRegions)
60
+ - [Region](/reference/api#aws-data-landing-zone.Region)