aws-data-landing-zone 0.0.40 → 0.0.42
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 +116 -123
- package/API.md +27 -17
- package/README.md +2 -3
- package/docs/astro.config.ts +33 -28
- package/docs/src/content/docs/components/account-management/accounts.mdx +139 -0
- package/docs/src/content/docs/components/account-management/budgets.mdx +149 -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 +66 -0
- package/docs/src/content/docs/components/account-management/service-deny-list.mdx +58 -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 +118 -0
- package/docs/src/content/docs/components/account-management/sop-initial-control-tower-setup.mdx +202 -0
- package/docs/src/content/docs/components/account-management/tagging.mdx +127 -0
- package/docs/src/content/docs/components/build-system/ci-integration.mdx +7 -8
- package/docs/src/content/docs/components/data-services/lake-formation.mdx +423 -0
- package/docs/src/content/docs/getting-started.mdx +187 -159
- package/docs/src/content/docs/introduction.mdx +5 -11
- package/docs/src/content/docs/reference/api.md +27 -17
- package/docs/src/content/docs/reference/defaults.mdx +61 -0
- package/docs/src/content/docs/reference/imgs/grants_diagram.png +0 -0
- package/docs/src/content/docs/reference/imgs/tag_inheritance.png +0 -0
- package/docs/src/content/docs/reference/lake-formation-tbac-recommended-strategy.mdx +286 -0
- package/docs/src/content/docs/reference/scripts-commands.mdx +76 -39
- 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 +9 -0
- package/lib/data-landing-zone-types.js +1 -1
- package/lib/data-landing-zone.js +1 -1
- package/lib/defaults.js +1 -1
- package/lib/lib/report/index.js +1 -1
- package/lib/scripts/index.js +1 -1
- 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
|
|
|
@@ -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> |
|
|
17204
|
-
| <code><a href="#aws-data-landing-zone.MandatoryTags.property.owner">owner</a></code> | <code>string[]</code> |
|
|
17205
|
-
| <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. |
|
|
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> |
|
|
18473
|
-
| <code><a href="#aws-data-landing-zone.SlackChannel.property.slackChannelId">slackChannelId</a></code> | <code>string</code> |
|
|
18474
|
-
| <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. |
|
|
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 '
|
|
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,
|
|
@@ -152,7 +152,6 @@ dlz.DataLandingZone(app,
|
|
|
152
152
|
)
|
|
153
153
|
),
|
|
154
154
|
)
|
|
155
|
-
app.synth()
|
|
156
155
|
```
|
|
157
156
|
|
|
158
157
|
Continue reading [Getting Started](https://datalandingzone.com/getting-started/) on the DLZ documentation site.
|
package/docs/astro.config.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineConfig } from 'astro/config';
|
|
2
1
|
import starlight from '@astrojs/starlight';
|
|
2
|
+
import { defineConfig } from 'astro/config';
|
|
3
3
|
import rehypeMermaid from "rehype-mermaid";
|
|
4
|
-
import starlightImageZoom from 'starlight-image-zoom'
|
|
4
|
+
import starlightImageZoom from 'starlight-image-zoom';
|
|
5
5
|
|
|
6
6
|
let site: string;
|
|
7
7
|
if (process.env.CF_PAGES_BRANCH) {
|
|
@@ -26,7 +26,7 @@ export default defineConfig({
|
|
|
26
26
|
Footer: './src/components/Footer.astro',
|
|
27
27
|
},
|
|
28
28
|
social: {
|
|
29
|
-
github: 'https://github.com/
|
|
29
|
+
github: 'https://github.com/DataChefHQ/aws-data-landing-zone',
|
|
30
30
|
},
|
|
31
31
|
sidebar: [
|
|
32
32
|
{
|
|
@@ -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'},
|
|
@@ -89,32 +92,34 @@ export default defineConfig({
|
|
|
89
92
|
// { label: 'Iam Identity Center', slug: 'introduction'},
|
|
90
93
|
// ]
|
|
91
94
|
// },
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
{
|
|
96
|
+
label: 'Data Services',
|
|
97
|
+
items: [
|
|
98
|
+
{
|
|
99
|
+
label: 'Lake Formation', slug: 'components/data-services/lake-formation'
|
|
100
|
+
},
|
|
101
|
+
]
|
|
102
|
+
},
|
|
99
103
|
{
|
|
100
104
|
label: 'Build System',
|
|
101
105
|
items: [
|
|
102
|
-
{ label: 'Overview', slug: 'components/build-system/overview'},
|
|
103
106
|
{ label: 'Deployment Order', slug: 'components/build-system/deployment-order'},
|
|
104
107
|
{ label: 'CI Integration', slug: 'components/build-system/ci-integration'},
|
|
105
108
|
]
|
|
106
|
-
}
|
|
109
|
+
}
|
|
107
110
|
],
|
|
108
111
|
},
|
|
109
112
|
{
|
|
110
113
|
label: 'Reference',
|
|
111
114
|
items: [
|
|
112
|
-
{ label: 'API', slug: 'reference/api'},
|
|
113
115
|
// TODO: Complete docs
|
|
114
|
-
|
|
116
|
+
{ label: 'API', slug: 'reference/api'},
|
|
117
|
+
{ label: 'Defaults', slug: 'reference/defaults'},
|
|
115
118
|
// { label: 'Config sharing', slug: 'introduction'},
|
|
116
|
-
{ label: 'Scripts & commands',
|
|
119
|
+
{ label: 'Scripts & commands', slug: 'reference/scripts-commands' },
|
|
120
|
+
{ label: 'Lake Formation TBAC strategy', slug: 'reference/lake-formation-tbac-recommended-strategy' },
|
|
117
121
|
// { label: 'Roadmap', slug: 'introduction'},
|
|
122
|
+
// { label: 'Escape Hatches', slug: 'introduction'}, // How to extend and modify/add components
|
|
118
123
|
]
|
|
119
124
|
},
|
|
120
125
|
|
|
@@ -123,9 +128,9 @@ export default defineConfig({
|
|
|
123
128
|
'./src/styles/custom.css',
|
|
124
129
|
],
|
|
125
130
|
plugins: [starlightImageZoom()],
|
|
126
|
-
|
|
131
|
+
})],
|
|
127
132
|
markdown: {
|
|
128
|
-
rehypePlugins: [
|
|
133
|
+
rehypePlugins: [[rehypeMermaid, { strategy: "img-png", mermaidConfig: { theme: 'neutral' } }]], // CSS styles do not apply, have to inline
|
|
129
134
|
// rehypePlugins: [ rehypeMermaid ], //For occasional testing, see the SVG component and class names
|
|
130
135
|
},
|
|
131
136
|
});
|
|
@@ -0,0 +1,139 @@
|
|
|
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
|
+
import aws_cdk as cdk
|
|
93
|
+
import aws_data_landing_zone as dlz
|
|
94
|
+
|
|
95
|
+
app = cdk.App()
|
|
96
|
+
dlz.DataLandingZone(app,
|
|
97
|
+
...
|
|
98
|
+
organization=dlz.DLzOrganization(
|
|
99
|
+
organization_id='o-0f5h921gk9',
|
|
100
|
+
root=dlz.RootOptions(
|
|
101
|
+
accounts=dlz.OrgRootAccounts(
|
|
102
|
+
management=dlz.DLzManagementAccount(account_id='123456789012'),
|
|
103
|
+
),
|
|
104
|
+
),
|
|
105
|
+
ous=dlz.OrgOus(
|
|
106
|
+
security=dlz.OrgOuSecurity(
|
|
107
|
+
ou_id='ou-hj29-dfhjj787i7',
|
|
108
|
+
accounts=dlz.OrgOuSecurityAccounts(
|
|
109
|
+
log=dlz.DLzManagementAccount(account_id='123456789012'),
|
|
110
|
+
audit=dlz.DLzManagementAccount(account_id='123456789012'),
|
|
111
|
+
),
|
|
112
|
+
),
|
|
113
|
+
workloads=dlz.OrgOuWorkloads(
|
|
114
|
+
ou_id='ou-h2l0-gjr36ikn',
|
|
115
|
+
accounts=[
|
|
116
|
+
dlz.DLzAccount(
|
|
117
|
+
name='development',
|
|
118
|
+
account_id='123456789012',
|
|
119
|
+
type=dlz.DlzAccountType.DEVELOP,
|
|
120
|
+
),
|
|
121
|
+
dlz.DLzAccount(
|
|
122
|
+
name='production',
|
|
123
|
+
account_id='123456789012',
|
|
124
|
+
type=dlz.DlzAccountType.PRODUCTION,
|
|
125
|
+
),
|
|
126
|
+
|
|
127
|
+
...AS MANY ACCOUNTS AS DESIRED...
|
|
128
|
+
],
|
|
129
|
+
),
|
|
130
|
+
)
|
|
131
|
+
),
|
|
132
|
+
)
|
|
133
|
+
````
|
|
134
|
+
</Fragment>
|
|
135
|
+
</DualCode>
|
|
136
|
+
|
|
137
|
+
## API References
|
|
138
|
+
- [DataLandingZoneProps](/reference/api#datalandingzoneprops)
|
|
139
|
+
- [DLzOrganization](/reference/api#aws-data-landing-zone.DLzOrganization)
|
|
@@ -0,0 +1,149 @@
|
|
|
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
|
+
import aws_cdk as cdk
|
|
56
|
+
import aws_data_landing_zone as dlz
|
|
57
|
+
|
|
58
|
+
slack_budget_notifications = dlz.SlackChannel(
|
|
59
|
+
slack_channel_configuration_name="budget-alerts",
|
|
60
|
+
slack_workspace_id="YourWorkspaceId",
|
|
61
|
+
slack_channel_id="YourChannelId",
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
app = cdk.App()
|
|
65
|
+
dlz.DataLandingZone(app,
|
|
66
|
+
budgets=[
|
|
67
|
+
{
|
|
68
|
+
"name": "backend",
|
|
69
|
+
"for_tags": {
|
|
70
|
+
"owner": "backend",
|
|
71
|
+
},
|
|
72
|
+
"amount": 100,
|
|
73
|
+
"subscribers": {
|
|
74
|
+
"slack": slack_budget_notifications,
|
|
75
|
+
"emails": ["you@org.com"],
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
...
|
|
80
|
+
)
|
|
81
|
+
```
|
|
82
|
+
</Fragment>
|
|
83
|
+
</DualCode>
|
|
84
|
+
|
|
85
|
+
## Defaults
|
|
86
|
+
|
|
87
|
+
The construct provides two default budgets available via `Defaults.budgets`. These include:
|
|
88
|
+
- **Organizational Budget**: Covers all resources across all AWS accounts.
|
|
89
|
+
- **DLZ Resources Budget**: Tracks resources created by DLZ, filtered by the tags `Owner: 'infra'` and `Project: 'dlz'`.
|
|
90
|
+
|
|
91
|
+
The example below demonstrates creating a $100 budget for the entire organization and a $20 budget for DLZ-managed
|
|
92
|
+
resources. Notifications are sent to the specified Slack channel and email address.
|
|
93
|
+
<DualCode>
|
|
94
|
+
<Fragment slot="ts">
|
|
95
|
+
```ts
|
|
96
|
+
import {App} from 'aws-cdk-lib';
|
|
97
|
+
import { DataLandingZone, SlackChannel } from 'aws-data-landing-zone';
|
|
98
|
+
|
|
99
|
+
const slackBudgetNotifications: SlackChannel = {
|
|
100
|
+
slackChannelConfigurationName: 'budget-alerts',
|
|
101
|
+
slackWorkspaceId: 'YourWorkspaceId:',
|
|
102
|
+
slackChannelId: 'YourChannelId',
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
const app = new App();
|
|
106
|
+
const dlz = new DataLandingZone(app, {
|
|
107
|
+
budgets: [
|
|
108
|
+
...Defaults.budgets(100, 20, {
|
|
109
|
+
slack: slackBudgetNotifications,
|
|
110
|
+
emails: ['you@org.com'],
|
|
111
|
+
}),
|
|
112
|
+
],
|
|
113
|
+
...
|
|
114
|
+
});
|
|
115
|
+
```
|
|
116
|
+
</Fragment>
|
|
117
|
+
<Fragment slot="python">
|
|
118
|
+
```python
|
|
119
|
+
import aws_cdk as cdk
|
|
120
|
+
import aws_data_landing_zone as dlz
|
|
121
|
+
|
|
122
|
+
slack_budget_notifications = dlz.SlackChannel(
|
|
123
|
+
slack_channel_configuration_name="budget-alerts",
|
|
124
|
+
slack_workspace_id="YourWorkspaceId",
|
|
125
|
+
slack_channel_id="YourChannelId",
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
app = cdk.App()
|
|
129
|
+
dlz.DataLandingZone(app,
|
|
130
|
+
budgets=[
|
|
131
|
+
*dlz.Defaults.budgets(
|
|
132
|
+
100,
|
|
133
|
+
20,
|
|
134
|
+
slack=slack_budget_notifications,
|
|
135
|
+
emails=["you@org.com"],
|
|
136
|
+
),
|
|
137
|
+
],
|
|
138
|
+
...
|
|
139
|
+
)
|
|
140
|
+
|
|
141
|
+
```
|
|
142
|
+
</Fragment>
|
|
143
|
+
</DualCode>
|
|
144
|
+
|
|
145
|
+
## API References
|
|
146
|
+
- [Budget](/reference/api#dlzbudget)
|
|
147
|
+
- [BudgetProps](/reference/api#dlzbudgetprops)
|
|
148
|
+
- [Defaults.budgets](/reference/api#aws-data-landing-zone.Defaults.budgets)
|
|
149
|
+
- [SlackChannel](/reference/api#slackchannel)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/docs/src/content/docs/components/account-management/imgs/aws_organisation_ids_final.png
ADDED
|
Binary file
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
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
|
+
```
|
|
52
|
+
|
|
53
|
+
</Fragment>
|
|
54
|
+
</DualCode>
|
|
55
|
+
|
|
56
|
+
## Adding a region
|
|
57
|
+
|
|
58
|
+
1. Add the region to Control Tower and wait for the setup/deployment to complete.
|
|
59
|
+
1. Update the Data Landing Zone configuration to include the new region.
|
|
60
|
+
1. Run the `bootstrapAll` script or manually bootstrap the account using the AWS CDK. Refer to
|
|
61
|
+
[Scripts and Commands](/reference/scripts-commands) for detailed instructions.
|
|
62
|
+
|
|
63
|
+
## API References
|
|
64
|
+
- [DataLandingZoneProps.regions](/reference/api#aws-data-landing-zone.DataLandingZoneProps.property.regions)
|
|
65
|
+
- [DlzRegions](/reference/api#aws-data-landing-zone.DlzRegions)
|
|
66
|
+
- [Region](/reference/api#aws-data-landing-zone.Region)
|