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
|
@@ -1,42 +1,28 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Getting Started
|
|
3
|
-
description: Step-by-step guide to configuring and deploying the
|
|
3
|
+
description: Step-by-step guide to configuring and deploying the Data Landing Zone
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
import DualCode from "../../components/DualCode.astro";
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
:::
|
|
8
|
+
This guide provides a step-by-step walkthrough for configuring and deploying the **Data Landing Zone** (DLZ). The DLZ
|
|
9
|
+
streamlines the setup of a secure, scalable, and well-architected multi-account AWS environment. Let’s get started!
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
**AWS Data Landing Zone**. The landing zone simplifies the setup of a secure,
|
|
14
|
-
scalable, and well-architected multi-account AWS environment. Let’s get started!
|
|
11
|
+
## Quick Start
|
|
15
12
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
## Prerequisites
|
|
13
|
+
### Prerequisites
|
|
19
14
|
|
|
20
|
-
Before
|
|
15
|
+
Before starting, ensure you have the following tools installed and configured:
|
|
21
16
|
|
|
22
|
-
- **AWS CLI**: Installed and configured with credentials.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
- **Node.js**: Version 14 or higher.
|
|
17
|
+
- **AWS CLI**: Installed and configured with credentials. Use an **SSO User** or **IAM User** in the **management
|
|
18
|
+
account** with admin access or permissions to assume CDK roles and perform deployments. Ensure the AWS profile is
|
|
19
|
+
properly configured in your `~/.aws` config files.
|
|
20
|
+
- **Node.js**: Version 18 or higher.
|
|
27
21
|
- **AWS CDK**: Installed globally using `npm install -g aws-cdk`.
|
|
28
|
-
- **Git**: For cloning repositories.
|
|
29
|
-
|
|
30
|
-
Additionally, if you plan to use the TypeScript scripts included with
|
|
31
|
-
the project, you can use the **profile name** for your AWS CLI
|
|
32
|
-
configuration that is specified in the `localProfile` property of the
|
|
33
|
-
project configuration file.
|
|
34
|
-
|
|
35
|
-
---
|
|
36
22
|
|
|
37
|
-
|
|
23
|
+
### Step 1: Create a New CDK Project
|
|
38
24
|
|
|
39
|
-
|
|
25
|
+
Begin by creating a new AWS CDK project:
|
|
40
26
|
|
|
41
27
|
<DualCode>
|
|
42
28
|
<Fragment slot="ts">
|
|
@@ -45,7 +31,6 @@ To get started, create a new AWS CDK project:
|
|
|
45
31
|
cd my-data-landing-zone
|
|
46
32
|
cdk init app --language=typescript
|
|
47
33
|
```
|
|
48
|
-
|
|
49
34
|
</Fragment>
|
|
50
35
|
<Fragment slot="python">
|
|
51
36
|
```bash
|
|
@@ -53,135 +38,130 @@ To get started, create a new AWS CDK project:
|
|
|
53
38
|
cd my-data-landing-zone
|
|
54
39
|
cdk init app --language=python
|
|
55
40
|
```
|
|
56
|
-
|
|
57
41
|
</Fragment>
|
|
58
42
|
</DualCode>
|
|
59
43
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
---
|
|
63
|
-
|
|
64
|
-
## Step 2: Add the DataChef AWS Data Landing Zone Package
|
|
44
|
+
### Step 2: Install the package
|
|
65
45
|
|
|
66
|
-
|
|
46
|
+
Install the AWS Data Landing Zone package:
|
|
67
47
|
|
|
68
48
|
<DualCode>
|
|
69
49
|
<Fragment slot="ts">
|
|
70
50
|
```bash
|
|
71
51
|
npm install aws-data-landing-zone
|
|
72
52
|
```
|
|
73
|
-
|
|
74
53
|
</Fragment>
|
|
75
54
|
<Fragment slot="python">
|
|
76
55
|
```bash
|
|
77
56
|
pip install aws-data-landing-zone
|
|
78
57
|
```
|
|
79
|
-
|
|
80
58
|
</Fragment>
|
|
81
59
|
</DualCode>
|
|
82
60
|
|
|
83
|
-
|
|
61
|
+
### Step 3: Create the Configuration
|
|
84
62
|
|
|
85
|
-
|
|
63
|
+
Define the basic configuration parameters for the DLZ. It is recommended to create this configuration in a separate file,
|
|
64
|
+
such as `config.ts` or `config.py`, as it will be used by both CDK and local scripts.
|
|
86
65
|
|
|
87
|
-
|
|
66
|
+
Refer to the example projects for guidance:
|
|
67
|
+
- [DLZ TypeScript Example Repository](https://github.com/DataChefHQ/aws-data-landing-zone-example-typescript)
|
|
68
|
+
- [DLZ Python Example Repository](https://github.com/DataChefHQ/aws-data-landing-zone-example-python)
|
|
88
69
|
|
|
89
|
-
|
|
90
|
-
|
|
70
|
+
The configuration requires the following:
|
|
71
|
+
|
|
72
|
+
1. **Control Tower**: Ensure Control Tower is already set up. For details, see
|
|
73
|
+
[SOP - Control Tower Setup](/components/account-management/sop-initial-control-tower-setup).
|
|
74
|
+
2. **Local Profile**: Specify the AWS profile for local scripts like deploy and bootstrap.
|
|
75
|
+
See [Scripts and Commands](/reference/scripts-commands) for more details.
|
|
76
|
+
3. **Regions**: Define the global and regional AWS regions. The global(home) region is where Control Tower is deployed,
|
|
77
|
+
while the regional regions are additional managed regions. See [Regions](/components/account-management/regions)
|
|
78
|
+
for more information.
|
|
79
|
+
4. **Mandatory Tags**: Specify the mandatory tag values required for resources. Refer to
|
|
80
|
+
[Tagging](/components/account-management/tagging) for details.
|
|
81
|
+
5. **AWS Organization**: Provide details about your AWS Organization, including the Organization ID, OU IDs, and
|
|
82
|
+
Account IDs. Copy the IDs of accounts created by Control Tower, such as the management, security log, and security
|
|
83
|
+
audit accounts. Additional accounts can be created manually or moved under the Workloads OU. For more details, see
|
|
84
|
+
[AWS Organization](/components/account-management/aws-organization). In the code snippet below, we define a single
|
|
85
|
+
development account.
|
|
91
86
|
|
|
92
87
|
<DualCode>
|
|
93
88
|
<Fragment slot="ts">
|
|
94
|
-
- For a complete example check [DLZ TypeScript Sample](https://github.com/DataChefHQ/aws-data-landing-zone-example-typescript).
|
|
95
89
|
```ts
|
|
90
|
+
// bin/config.ts
|
|
96
91
|
export const config: DataLandingZoneProps = {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
},
|
|
107
|
-
budgets: [
|
|
108
|
-
...Defaults.budgets(100, 20, {}),
|
|
109
|
-
],
|
|
110
|
-
securityHubNotifications: [
|
|
111
|
-
],
|
|
112
|
-
organization: {
|
|
113
|
-
organizationId: 'RootOrganizationID',
|
|
114
|
-
root: {
|
|
115
|
-
accounts: {
|
|
116
|
-
management: {
|
|
117
|
-
accountId: 'YourRootAccountID',
|
|
118
|
-
},
|
|
119
|
-
},
|
|
120
|
-
controls: [],
|
|
92
|
+
localProfile: 'YourAwsProfile',
|
|
93
|
+
regions: {
|
|
94
|
+
global: Region.CHOOSE_A_GLOBAL_REGION,
|
|
95
|
+
regional: [Region.CHOOSE_ONE_OR_MORE_ADDITIONAL_REGIONS],
|
|
96
|
+
},
|
|
97
|
+
mandatoryTags: {
|
|
98
|
+
owner: ['ALLOWED_VALUES'],
|
|
99
|
+
project: ['ALLOWED_VALUES'],
|
|
100
|
+
environment: ['ALLOWED_VALUES'],
|
|
121
101
|
},
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
102
|
+
budgets: [
|
|
103
|
+
...Defaults.budgets(100, 20, {}),
|
|
104
|
+
],
|
|
105
|
+
securityHubNotifications: [
|
|
106
|
+
],
|
|
107
|
+
organization: {
|
|
108
|
+
organizationId: 'OrganizationID',
|
|
109
|
+
root: {
|
|
125
110
|
accounts: {
|
|
126
|
-
|
|
127
|
-
accountId: '
|
|
128
|
-
},
|
|
129
|
-
audit: {
|
|
130
|
-
accountId: 'YourAuditAccountID',
|
|
111
|
+
management: {
|
|
112
|
+
accountId: 'YourRootAccountID',
|
|
131
113
|
},
|
|
132
114
|
},
|
|
115
|
+
controls: [],
|
|
133
116
|
},
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
{
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
117
|
+
ous: {
|
|
118
|
+
security: {
|
|
119
|
+
ouId: 'SecurityOrganizationUnitId',
|
|
120
|
+
accounts: {
|
|
121
|
+
log: {
|
|
122
|
+
accountId: 'YourLogsAccountID',
|
|
123
|
+
},
|
|
124
|
+
audit: {
|
|
125
|
+
accountId: 'YourAuditAccountID',
|
|
126
|
+
},
|
|
141
127
|
},
|
|
142
|
-
],
|
|
143
|
-
},
|
|
144
|
-
suspended: {
|
|
145
|
-
ouId: 'SuspendedOrganizationUnitId',
|
|
146
|
-
},
|
|
147
|
-
},
|
|
148
|
-
},
|
|
149
|
-
deploymentPlatform: {
|
|
150
|
-
gitHub: {
|
|
151
|
-
references: [
|
|
152
|
-
{
|
|
153
|
-
owner: 'DataChefHQ',
|
|
154
|
-
repo: 'data-landing-zone-example-typescript',
|
|
155
128
|
},
|
|
156
|
-
|
|
129
|
+
workloads: {
|
|
130
|
+
ouId: 'WorkloadOrganizationUnitId',
|
|
131
|
+
accounts: [
|
|
132
|
+
{
|
|
133
|
+
name: 'development',
|
|
134
|
+
accountId: 'YourDevelopmentAccountID',
|
|
135
|
+
type: DlzAccountType.DEVELOP,
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
},
|
|
139
|
+
suspended: {
|
|
140
|
+
ouId: 'SuspendedOrganizationUnitId',
|
|
141
|
+
},
|
|
142
|
+
},
|
|
157
143
|
},
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
````
|
|
163
|
-
|
|
164
|
-
|
|
144
|
+
};
|
|
145
|
+
```
|
|
165
146
|
</Fragment>
|
|
166
147
|
<Fragment slot="python">
|
|
167
|
-
- For a complete example check [DLZ Python Sample](https://github.com/DataChefHQ/aws-data-landing-zone-example-python).
|
|
168
148
|
```python
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
local_profile="",
|
|
149
|
+
# my_data_landing_zone/config.py
|
|
150
|
+
config = DataLandingZoneProps(
|
|
151
|
+
local_profile="YourAwsProfile",
|
|
172
152
|
regions={
|
|
173
|
-
"global": Region.
|
|
174
|
-
"regional": [Region.
|
|
153
|
+
"global": Region.CHOOSE_A_GLOBAL_REGION,
|
|
154
|
+
"regional": [Region.CHOOSE_ONE_OR_MORE_ADDITIONAL_REGIONS],
|
|
175
155
|
},
|
|
176
156
|
mandatory_tags={
|
|
177
|
-
"owner": ["
|
|
178
|
-
"project": ["
|
|
179
|
-
"environment": ["
|
|
157
|
+
"owner": ["ALLOWED_VALUES"],
|
|
158
|
+
"project": ["ALLOWED_VALUES"],
|
|
159
|
+
"environment": ["ALLOWED_VALUES"],
|
|
180
160
|
},
|
|
181
161
|
budgets=Defaults.budgets(100, 20),
|
|
182
162
|
security_hub_notifications=[],
|
|
183
163
|
organization={
|
|
184
|
-
"organization_id": "
|
|
164
|
+
"organization_id": "OrganizationID",
|
|
185
165
|
"root": {
|
|
186
166
|
"accounts": {
|
|
187
167
|
"management": {
|
|
@@ -218,85 +198,133 @@ accounts.
|
|
|
218
198
|
},
|
|
219
199
|
)
|
|
220
200
|
```
|
|
221
|
-
|
|
222
201
|
</Fragment>
|
|
223
202
|
</DualCode>
|
|
224
203
|
|
|
225
|
-
---
|
|
226
204
|
|
|
227
|
-
|
|
205
|
+
### Step 4: Use the Configuration in CDK
|
|
228
206
|
|
|
229
|
-
|
|
207
|
+
Pass the configuration to the Data Landing Zone construct. This will create the necessary stacks in the appropriate
|
|
208
|
+
AWS accounts and regions. For more information, see [Deployment Order](/components/build-system/deployment-order).
|
|
230
209
|
|
|
231
210
|
<DualCode>
|
|
232
211
|
<Fragment slot="ts">
|
|
233
|
-
In your `lib/my-data-landing-zone-stack.ts` file, add the Data Landing Zone construct:
|
|
234
212
|
```ts
|
|
213
|
+
// bin/my-data-landing-zone.ts
|
|
235
214
|
import {App} from 'aws-cdk-lib';
|
|
236
|
-
import {config} from "./
|
|
237
|
-
import
|
|
238
|
-
import { DataLandingZone } from '@DataChefHQ/data-landing-zone';
|
|
215
|
+
import {config} from "./config";
|
|
216
|
+
import { DataLandingZone } from 'aws-data-landing-zone';
|
|
239
217
|
|
|
240
218
|
const app = new App();
|
|
241
219
|
const dlz = new DataLandingZone(app, config)
|
|
242
|
-
|
|
243
|
-
````
|
|
244
|
-
|
|
220
|
+
```
|
|
245
221
|
</Fragment>
|
|
246
222
|
<Fragment slot="python">
|
|
247
|
-
In your `main.py` file, add the Data Landing Zone construct:
|
|
248
223
|
```python
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
Region,
|
|
254
|
-
DataLandingZone,
|
|
255
|
-
)
|
|
256
|
-
|
|
257
|
-
app = cdk.App()
|
|
258
|
-
|
|
259
|
-
DataLandingZone(
|
|
260
|
-
app,
|
|
261
|
-
... # your config parameters
|
|
262
|
-
)
|
|
263
|
-
|
|
264
|
-
app.synth()
|
|
265
|
-
```
|
|
224
|
+
// app.py
|
|
225
|
+
import aws_cdk as cdk
|
|
226
|
+
from aws_data_landing_zone import ( DataLandingZone )
|
|
227
|
+
from my_data_landing_zone.config import config
|
|
266
228
|
|
|
229
|
+
app = cdk.App()
|
|
230
|
+
DataLandingZone(app, config)
|
|
231
|
+
```
|
|
267
232
|
</Fragment>
|
|
268
233
|
</DualCode>
|
|
269
234
|
|
|
270
|
-
|
|
235
|
+
### Step 5: Bootstrap Accounts
|
|
271
236
|
|
|
272
|
-
|
|
237
|
+
All accounts and regions need to be CDK bootstrapped before deploying.
|
|
273
238
|
|
|
274
|
-
|
|
239
|
+
The DLZ provides utility functions that abstract the complexity of common tasks such as bootstrapping accounts across
|
|
240
|
+
regions, running CDK diff or deploy commands, setting cost allocation tags, and more.
|
|
275
241
|
|
|
276
|
-
|
|
242
|
+
Use the `bootstrapAll` script or perform the process manually using bash and AWS CDK commands.
|
|
243
|
+
See [Scripts and Commands](/reference/scripts-commands) for more details.
|
|
277
244
|
|
|
278
|
-
|
|
279
|
-
|
|
245
|
+
Let's use the scripts. Create a standalone script file (e.g., `scripts/bootstrap.ts` or `scripts/bootstrap.py`) to handle bootstrapping.
|
|
246
|
+
The script uses the configuration file to identify the accounts and regions requiring bootstrap. This is why the
|
|
247
|
+
configuration file is standalone file, to be shared between the CDK and the scripts.
|
|
280
248
|
|
|
281
|
-
|
|
249
|
+
<DualCode>
|
|
250
|
+
<Fragment slot="ts">
|
|
251
|
+
```ts
|
|
252
|
+
// scripts/bootstrap.ts
|
|
253
|
+
import { Scripts } from "aws-data-landing-zone";
|
|
254
|
+
import { config } from "../bin/config";
|
|
282
255
|
|
|
283
|
-
|
|
256
|
+
(async () => {
|
|
257
|
+
await (new Scripts()).boostrapAll(config);
|
|
258
|
+
})();
|
|
259
|
+
```
|
|
284
260
|
|
|
285
|
-
|
|
261
|
+
Then run the script:
|
|
262
|
+
```bash
|
|
263
|
+
npx ts-node --prefer-ts-exts scripts/bootstrap.ts
|
|
264
|
+
```
|
|
265
|
+
</Fragment>
|
|
266
|
+
<Fragment slot="python">
|
|
267
|
+
```python
|
|
268
|
+
// scripts/bootstrap.py
|
|
269
|
+
from aws_data_landing_zone import Scripts
|
|
270
|
+
from data_landing_zone_example_python.config_minimum import config
|
|
286
271
|
|
|
287
|
-
|
|
288
|
-
|
|
272
|
+
scripts = Scripts()
|
|
273
|
+
scripts.bootstrap_all(props=config)
|
|
274
|
+
```
|
|
289
275
|
|
|
290
|
-
|
|
276
|
+
Then run the script:
|
|
277
|
+
```bash
|
|
278
|
+
python scripts/bootstrap.py
|
|
279
|
+
```
|
|
280
|
+
</Fragment>
|
|
281
|
+
</DualCode>
|
|
291
282
|
|
|
292
|
-
###
|
|
283
|
+
### Step 6: Deploy
|
|
293
284
|
|
|
294
|
-
|
|
285
|
+
Similar to the `bootstrapAll` script, a `deployAll`(`deploy_all`) script is also available.
|
|
295
286
|
|
|
296
|
-
|
|
287
|
+
<DualCode>
|
|
288
|
+
<Fragment slot="ts">
|
|
289
|
+
```ts
|
|
290
|
+
// scripts/deploy_all.ts
|
|
291
|
+
import { Scripts } from "aws-data-landing-zone";
|
|
292
|
+
import { config } from "../bin/config";
|
|
293
|
+
|
|
294
|
+
(async () => {
|
|
295
|
+
await (new Scripts()).deployAll(config);
|
|
296
|
+
})();
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
Then run the script:
|
|
300
|
+
```bash
|
|
301
|
+
npx ts-node --prefer-ts-exts scripts/deploy_all.ts
|
|
302
|
+
```
|
|
303
|
+
</Fragment>
|
|
304
|
+
<Fragment slot="python">
|
|
305
|
+
```python
|
|
306
|
+
// scripts/deploy_all.py
|
|
307
|
+
from aws_data_landing_zone import Scripts
|
|
308
|
+
from data_landing_zone_example_python.config_minimum import config
|
|
309
|
+
|
|
310
|
+
scripts = Scripts()
|
|
311
|
+
scripts.deploy_all(props=config)
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
Then run the script:
|
|
315
|
+
```bash
|
|
316
|
+
python scripts/deploy_all.py
|
|
317
|
+
```
|
|
318
|
+
</Fragment>
|
|
319
|
+
</DualCode>
|
|
320
|
+
|
|
321
|
+
Alternatively deploy the CDK application with the following command:
|
|
322
|
+
```bash
|
|
323
|
+
cdk deploy "**" --require-approval never --progress events --concurrency 10 --profile YourAwsProfile
|
|
324
|
+
```
|
|
297
325
|
|
|
298
326
|
## Next Steps
|
|
299
327
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
328
|
+
This guide covers the minimal setup required to get started. At this stage, only a few resources are deployed. Explore
|
|
329
|
+
the documentation to learn about advanced configurations and features, such as creating non-overlapping VPCs, bastions,
|
|
330
|
+
NAT gateways, Lake Formation setups and many more.
|
|
@@ -91,7 +91,7 @@ approvals in production environments.
|
|
|
91
91
|
<Fragment slot="ts">
|
|
92
92
|
```ts
|
|
93
93
|
import {App} from 'aws-cdk-lib';
|
|
94
|
-
import { DataLandingZone } from '
|
|
94
|
+
import { DataLandingZone } from 'aws-data-landing-zone';
|
|
95
95
|
|
|
96
96
|
const app = new App();
|
|
97
97
|
const dlz = new DataLandingZone(app, {
|
|
@@ -130,9 +130,8 @@ approvals in production environments.
|
|
|
130
130
|
</Fragment>
|
|
131
131
|
<Fragment slot="python">
|
|
132
132
|
```python
|
|
133
|
-
#!/usr/bin/env python3
|
|
134
133
|
import aws_cdk as cdk
|
|
135
|
-
import
|
|
134
|
+
import aws_data_landing_zone as dlz
|
|
136
135
|
|
|
137
136
|
app = cdk.App()
|
|
138
137
|
dlz.DataLandingZone(app,
|
|
@@ -167,9 +166,6 @@ approvals in production environments.
|
|
|
167
166
|
)
|
|
168
167
|
),
|
|
169
168
|
)
|
|
170
|
-
|
|
171
|
-
app.synth()
|
|
172
|
-
|
|
173
169
|
````
|
|
174
170
|
|
|
175
171
|
</Fragment>
|
|
@@ -236,7 +232,7 @@ all subnets, to the private subnets in the `production` account's VPC in the `eu
|
|
|
236
232
|
<Fragment slot="ts">
|
|
237
233
|
```ts {54-57}
|
|
238
234
|
import {App} from 'aws-cdk-lib';
|
|
239
|
-
import { DataLandingZone } from '
|
|
235
|
+
import { DataLandingZone } from 'aws-data-landing-zone';
|
|
240
236
|
|
|
241
237
|
const app = new App();
|
|
242
238
|
const dlz = new DataLandingZone(app, {
|
|
@@ -300,10 +296,9 @@ all subnets, to the private subnets in the `production` account's VPC in the `eu
|
|
|
300
296
|
|
|
301
297
|
</Fragment>
|
|
302
298
|
<Fragment slot="python">
|
|
303
|
-
```python {
|
|
304
|
-
#!/usr/bin/env python3
|
|
299
|
+
```python {79-84}
|
|
305
300
|
import aws_cdk as cdk
|
|
306
|
-
import
|
|
301
|
+
import aws_data_landing_zone as dlz
|
|
307
302
|
|
|
308
303
|
app = cdk.App()
|
|
309
304
|
dlz.DataLandingZone(app,
|
|
@@ -389,7 +384,6 @@ all subnets, to the private subnets in the `production` account's VPC in the `eu
|
|
|
389
384
|
)
|
|
390
385
|
)
|
|
391
386
|
)
|
|
392
|
-
app.synth()
|
|
393
387
|
```
|
|
394
388
|
|
|
395
389
|
</Fragment>
|
|
@@ -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
|
|
|
@@ -17204,9 +17193,9 @@ const mandatoryTags: MandatoryTags = { ... }
|
|
|
17204
17193
|
|
|
17205
17194
|
| **Name** | **Type** | **Description** |
|
|
17206
17195
|
| --- | --- | --- |
|
|
17207
|
-
| <code><a href="#aws-data-landing-zone.MandatoryTags.property.environment">environment</a></code> | <code>string[]</code> |
|
|
17208
|
-
| <code><a href="#aws-data-landing-zone.MandatoryTags.property.owner">owner</a></code> | <code>string[]</code> |
|
|
17209
|
-
| <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. |
|
|
17210
17199
|
|
|
17211
17200
|
---
|
|
17212
17201
|
|
|
@@ -17218,6 +17207,8 @@ public readonly environment: string[];
|
|
|
17218
17207
|
|
|
17219
17208
|
- *Type:* string[]
|
|
17220
17209
|
|
|
17210
|
+
The values of the mandatory `Environment` tag that all resources must have.
|
|
17211
|
+
|
|
17221
17212
|
---
|
|
17222
17213
|
|
|
17223
17214
|
##### `owner`<sup>Required</sup> <a name="owner" id="aws-data-landing-zone.MandatoryTags.property.owner"></a>
|
|
@@ -17228,6 +17219,8 @@ public readonly owner: string[];
|
|
|
17228
17219
|
|
|
17229
17220
|
- *Type:* string[]
|
|
17230
17221
|
|
|
17222
|
+
The values of the mandatory `Owner` tag that all resources must have.
|
|
17223
|
+
|
|
17231
17224
|
---
|
|
17232
17225
|
|
|
17233
17226
|
##### `project`<sup>Required</sup> <a name="project" id="aws-data-landing-zone.MandatoryTags.property.project"></a>
|
|
@@ -17238,6 +17231,8 @@ public readonly project: string[];
|
|
|
17238
17231
|
|
|
17239
17232
|
- *Type:* string[]
|
|
17240
17233
|
|
|
17234
|
+
The values of the mandatory `Project` tag that all resources must have.
|
|
17235
|
+
|
|
17241
17236
|
---
|
|
17242
17237
|
|
|
17243
17238
|
### Network <a name="Network" id="aws-data-landing-zone.Network"></a>
|
|
@@ -18473,9 +18468,9 @@ const slackChannel: SlackChannel = { ... }
|
|
|
18473
18468
|
|
|
18474
18469
|
| **Name** | **Type** | **Description** |
|
|
18475
18470
|
| --- | --- | --- |
|
|
18476
|
-
| <code><a href="#aws-data-landing-zone.SlackChannel.property.slackChannelConfigurationName">slackChannelConfigurationName</a></code> | <code>string</code> |
|
|
18477
|
-
| <code><a href="#aws-data-landing-zone.SlackChannel.property.slackChannelId">slackChannelId</a></code> | <code>string</code> |
|
|
18478
|
-
| <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. |
|
|
18479
18474
|
|
|
18480
18475
|
---
|
|
18481
18476
|
|
|
@@ -18487,6 +18482,8 @@ public readonly slackChannelConfigurationName: string;
|
|
|
18487
18482
|
|
|
18488
18483
|
- *Type:* string
|
|
18489
18484
|
|
|
18485
|
+
The name of Slack channel configuration.
|
|
18486
|
+
|
|
18490
18487
|
---
|
|
18491
18488
|
|
|
18492
18489
|
##### `slackChannelId`<sup>Required</sup> <a name="slackChannelId" id="aws-data-landing-zone.SlackChannel.property.slackChannelId"></a>
|
|
@@ -18497,6 +18494,11 @@ public readonly slackChannelId: string;
|
|
|
18497
18494
|
|
|
18498
18495
|
- *Type:* string
|
|
18499
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
|
+
|
|
18500
18502
|
---
|
|
18501
18503
|
|
|
18502
18504
|
##### `slackWorkspaceId`<sup>Required</sup> <a name="slackWorkspaceId" id="aws-data-landing-zone.SlackChannel.property.slackWorkspaceId"></a>
|
|
@@ -18507,6 +18509,14 @@ public readonly slackWorkspaceId: string;
|
|
|
18507
18509
|
|
|
18508
18510
|
- *Type:* string
|
|
18509
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
|
+
|
|
18510
18520
|
---
|
|
18511
18521
|
|
|
18512
18522
|
### WorkloadAccountProps <a name="WorkloadAccountProps" id="aws-data-landing-zone.WorkloadAccountProps"></a>
|