aws-data-landing-zone 0.0.41 → 0.0.43
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 +3 -3
- package/README.md +0 -1
- package/docs/astro.config.ts +63 -50
- package/docs/public/favicon.png +0 -0
- package/docs/src/content/docs/components/account-management/accounts.mdx +1 -4
- package/docs/src/content/docs/components/account-management/budgets.mdx +1 -4
- package/docs/src/content/docs/components/account-management/regions.mdx +0 -2
- package/docs/src/content/docs/components/account-management/tagging.mdx +1 -4
- package/docs/src/content/docs/components/data-services/lake-formation.mdx +423 -0
- package/docs/src/content/docs/components/identity/iam-identity-center.mdx +148 -0
- package/docs/src/content/docs/components/networking/bastion-hosts.mdx +189 -0
- package/docs/src/content/docs/components/networking/imgs/nat_1.png +0 -0
- package/docs/src/content/docs/components/networking/imgs/nat_2.png +0 -0
- package/docs/src/content/docs/components/networking/imgs/vpt_1.png +0 -0
- package/docs/src/content/docs/components/networking/imgs/vpt_2.png +0 -0
- package/docs/src/content/docs/components/networking/imgs/vpt_3.png +0 -0
- package/docs/src/content/docs/components/networking/imgs/vpt_4.png +0 -0
- package/docs/src/content/docs/components/networking/imgs/vpt_5.png +0 -0
- package/docs/src/content/docs/components/networking/nats.mdx +462 -0
- package/docs/src/content/docs/components/networking/vpc-peering.mdx +313 -0
- package/docs/src/content/docs/components/networking/vpcs.mdx +284 -0
- package/docs/src/content/docs/components/security/control-tower-controls.mdx +66 -0
- package/docs/src/content/docs/components/security/iam-permission-boundary.mdx +70 -0
- package/docs/src/content/docs/components/security/security-hub.mdx +123 -0
- package/docs/src/content/docs/components/security/service-deny-list.mdx +59 -0
- package/docs/src/content/docs/getting-started.mdx +2 -2
- package/docs/src/content/docs/index.mdx +2 -2
- package/docs/src/content/docs/introduction.mdx +135 -55
- package/docs/src/content/docs/reference/defaults.mdx +10 -2
- package/docs/src/content/docs/reference/extending-and-escape-hatches.mdx +50 -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/integration/cdk-client.mdx +122 -0
- package/docs/src/content/docs/reference/integration/exported-ssm-parameters.mdx +28 -0
- package/docs/src/content/docs/reference/lake-formation-tbac-recommended-strategy.mdx +286 -0
- package/docs/src/content/docs/reference/network-address.mdx +54 -0
- package/docs/src/content/docs/{components/account-management/sop-account-setup.mdx → sop/account-setup.mdx} +2 -2
- package/docs/src/content/docs/{components/account-management/sop-add-account.mdx → sop/add-account.mdx} +3 -6
- package/docs/src/content/docs/sop/iam-identity-center-setup-external.mdx +46 -0
- package/docs/src/content/docs/sop/iam-identity-center-setup-internal.mdx +23 -0
- package/docs/src/content/docs/sop/iam-identity-center.mdx +43 -0
- package/docs/src/content/docs/sop/imgs/aws_sso_enable_iam_identity_center.png +0 -0
- package/docs/src/content/docs/sop/imgs/aws_sso_external_change.png +0 -0
- package/docs/src/content/docs/sop/imgs/aws_sso_external_disable_provisioning_1.png +0 -0
- package/docs/src/content/docs/sop/imgs/aws_sso_external_disable_provisioning_2.png +0 -0
- package/docs/src/content/docs/sop/imgs/aws_sso_external_idp_config.png +0 -0
- package/docs/src/content/docs/sop/imgs/aws_sso_external_select.png +0 -0
- package/docs/src/content/docs/sop/imgs/aws_sso_external_trusted_token_1.png +0 -0
- package/docs/src/content/docs/sop/imgs/aws_sso_external_trusted_token_2.png +0 -0
- package/docs/src/content/docs/sop/imgs/aws_sso_internal_select_identity_source.png +0 -0
- package/docs/src/content/docs/sop/imgs/aws_sso_settings_configure.png +0 -0
- package/docs/src/content/docs/sop/imgs/select_settings.png +0 -0
- package/docs/src/content/docs/{components/account-management/sop-initial-control-tower-setup.mdx → sop/initial-control-tower-setup.mdx} +7 -7
- package/docs-old/sop/Setting Up IAM Identity Center External/README.md +1 -1
- package/docs-old/sop/Setting Up IAM Identity Center Internal/README.md +1 -1
- package/lib/constructs/account-chatbots/index.js +1 -1
- 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.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.js +1 -1
- 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/public/favicon.svg +0 -1
- package/docs/src/assets/houston.webp +0 -0
- package/docs/src/content/docs/components/account-management/service-deny-list.mdx +0 -60
- package/docs/src/content/docs/components/identity/introduction.mdx +0 -4
- /package/docs/src/content/docs/{components/account-management → sop}/imgs/account_factory_settings.png +0 -0
- /package/docs/src/content/docs/{components/account-management → sop}/imgs/aws_new_account_1.png +0 -0
- /package/docs/src/content/docs/{components/account-management → sop}/imgs/aws_new_account_2.png +0 -0
- /package/docs/src/content/docs/{components/account-management → sop}/imgs/aws_new_account_3.png +0 -0
- /package/docs/src/content/docs/{components/account-management → sop}/imgs/aws_new_account_4.png +0 -0
- /package/docs/src/content/docs/{components/account-management → sop}/imgs/aws_new_account_5.png +0 -0
- /package/docs/src/content/docs/{components/account-management → sop}/imgs/aws_organisation_ids_final.png +0 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: IAM Permission Boundary
|
|
3
|
+
description: IAM Permission Boundary
|
|
4
|
+
---
|
|
5
|
+
import DualCode from '../../../../components/DualCode.astro';
|
|
6
|
+
|
|
7
|
+
A permissions boundary uses a managed IAM policy to define the maximum permissions an
|
|
8
|
+
identity-based policy can grant to an IAM entity. This ensures that the entity can perform only actions permitted
|
|
9
|
+
by both its identity-based policies and the permissions boundary, effectively preventing unauthorized permission
|
|
10
|
+
escalation.
|
|
11
|
+
|
|
12
|
+
The Data Landing Zone enables specifying an IAM policy to be used as a permissions boundary for all IAM users and
|
|
13
|
+
roles. The DLZ creates a managed policy named `IamPolicyPermissionBoundaryPolicy` and enforces its attachment to all IAM
|
|
14
|
+
users and roles through a
|
|
15
|
+
[Service Control Policy](https://github.com/DataChefHQ/aws-data-landing-zone/blob/cd54815aa4c2bdc7f1ba2d91b18df914280553fb/src/constructs/organization-policies/service-control-policy.ts#L38).
|
|
16
|
+
|
|
17
|
+
The example below demonstrates a permissions boundary that allows listing S3 bucket contents (`s3:ListBucket`) and
|
|
18
|
+
downloading objects (`s3:GetObject`) across all S3 resources in the account. Note that the entity must also have matching
|
|
19
|
+
permissions in its identity-based policy to perform these actions. This policy is for demonstration purposes only, as
|
|
20
|
+
it has limited scope and usability.
|
|
21
|
+
|
|
22
|
+
<DualCode>
|
|
23
|
+
<Fragment slot="ts">
|
|
24
|
+
```ts
|
|
25
|
+
import {App} from 'aws-cdk-lib';
|
|
26
|
+
import { DataLandingZone } from 'aws-data-landing-zone';
|
|
27
|
+
|
|
28
|
+
const app = new App();
|
|
29
|
+
const dlz = new DataLandingZone(app, {
|
|
30
|
+
iamPolicyPermissionBoundary: {
|
|
31
|
+
policyStatement: {
|
|
32
|
+
effect: iam.Effect.ALLOW,
|
|
33
|
+
actions: [
|
|
34
|
+
's3:ListBucket',
|
|
35
|
+
's3:GetObject',
|
|
36
|
+
],
|
|
37
|
+
resources: ['*'],
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
...
|
|
41
|
+
});
|
|
42
|
+
```
|
|
43
|
+
</Fragment>
|
|
44
|
+
<Fragment slot="python">
|
|
45
|
+
```python
|
|
46
|
+
import aws_cdk as cdk
|
|
47
|
+
import aws_data_landing_zone as dlz
|
|
48
|
+
|
|
49
|
+
app = cdk.App()
|
|
50
|
+
dlz.DataLandingZone(app,
|
|
51
|
+
iam_policy_permission_boundary={
|
|
52
|
+
"policy_statement": {
|
|
53
|
+
"effect": iam.Effect.ALLOW,
|
|
54
|
+
"actions: [
|
|
55
|
+
's3:ListBucket',
|
|
56
|
+
's3:GetObject',
|
|
57
|
+
],
|
|
58
|
+
"resources": ["*"],
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
...
|
|
62
|
+
)
|
|
63
|
+
```
|
|
64
|
+
</Fragment>
|
|
65
|
+
</DualCode>
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
## API References
|
|
69
|
+
- [iamPolicyPermissionBoundary](/reference/api/#aws-data-landing-zone.DataLandingZoneProps.property.iamPolicyPermissionBoundary)
|
|
70
|
+
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Security Hub
|
|
3
|
+
description: Security Hub
|
|
4
|
+
---
|
|
5
|
+
import DualCode from '../../../../components/DualCode.astro';
|
|
6
|
+
|
|
7
|
+
The Data Landing Zone integrates with Security Hub, utilizing the setup provided by Control Tower to enable Security Hub
|
|
8
|
+
in all regions of all accounts. Security Hub should be accessed through the Audit Account in the Security OU.
|
|
9
|
+
|
|
10
|
+
Security Hub notifications are delivered via Amazon SNS, with support for the following methods:
|
|
11
|
+
- **Email**: Each email address must confirm the notification opt-in the first time it is deployed.
|
|
12
|
+
- **Slack**: Notifications are sent to a designated Slack channel. The Slack workspace must be linked to the Management
|
|
13
|
+
Account. For setup details, see the SOP [AWS Chatbot and Slack Integration](sop-account-setup#aws-chatbot-and-slack-integration).
|
|
14
|
+
|
|
15
|
+
:::note
|
|
16
|
+
Email notifications are unstructured JSON and may appear messy. Slack notifications are well-formatted and easy to read.
|
|
17
|
+
:::
|
|
18
|
+
|
|
19
|
+
Below is an example of creating filters for findings based on their severity and workflow status. Notifications for
|
|
20
|
+
medium, high, and critical severity findings marked as "new" are sent to the `security-hub-high` Slack channel. A
|
|
21
|
+
separate filter for resolved and suppressed findings sends notifications to the `security-hub-resolved` Slack channel.
|
|
22
|
+
|
|
23
|
+
Using separate Slack channels helps manage the volume of notifications. Users interested in new findings can focus on
|
|
24
|
+
the `security-hub-high` channel, while others tracking resolved findings can monitor the `security-hub-resolved` channel.
|
|
25
|
+
This allows users to mute or unsubscribe from the channel they are not interested in.
|
|
26
|
+
|
|
27
|
+
<DualCode>
|
|
28
|
+
<Fragment slot="ts">
|
|
29
|
+
```ts
|
|
30
|
+
import {App} from 'aws-cdk-lib';
|
|
31
|
+
import { DataLandingZone } from 'aws-data-landing-zone';
|
|
32
|
+
|
|
33
|
+
const app = new App();
|
|
34
|
+
const dlz = new DataLandingZone(app, {
|
|
35
|
+
securityHubNotifications: [
|
|
36
|
+
{
|
|
37
|
+
id: 'notify-high',
|
|
38
|
+
severity: [
|
|
39
|
+
SecurityHubNotificationSeverity.MEDIUM,
|
|
40
|
+
SecurityHubNotificationSeverity.HIGH,
|
|
41
|
+
SecurityHubNotificationSeverity.CRITICAL,
|
|
42
|
+
],
|
|
43
|
+
workflowStatus: [
|
|
44
|
+
SecurityHubNotificationSWorkflowStatus.NEW,
|
|
45
|
+
],
|
|
46
|
+
notification: {
|
|
47
|
+
// emails: ['you@org.com'],
|
|
48
|
+
slack: {
|
|
49
|
+
slackChannelConfigurationName: 'security-hub-high',
|
|
50
|
+
slackWorkspaceId: 'YourWorkspaceId',
|
|
51
|
+
slackChannelId: 'YourChannelId',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: 'notify-resolved',
|
|
57
|
+
workflowStatus: [
|
|
58
|
+
SecurityHubNotificationSWorkflowStatus.RESOLVED,
|
|
59
|
+
SecurityHubNotificationSWorkflowStatus.SUPPRESSED,
|
|
60
|
+
],
|
|
61
|
+
notification: {
|
|
62
|
+
// emails: ['you@org.com'],
|
|
63
|
+
slack: {
|
|
64
|
+
slackChannelConfigurationName: 'security-hub-resolved',
|
|
65
|
+
slackWorkspaceId: 'YourWorkspaceId',
|
|
66
|
+
slackChannelId: 'YourChannelId',
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
...
|
|
72
|
+
});
|
|
73
|
+
```
|
|
74
|
+
</Fragment>
|
|
75
|
+
<Fragment slot="python">
|
|
76
|
+
```python
|
|
77
|
+
import aws_cdk as cdk
|
|
78
|
+
import aws_data_landing_zone as dlz
|
|
79
|
+
|
|
80
|
+
app = cdk.App()
|
|
81
|
+
dlz.DataLandingZone(app,
|
|
82
|
+
security_hub_notifications=[
|
|
83
|
+
{
|
|
84
|
+
"id": "notify-high",
|
|
85
|
+
"severity": [
|
|
86
|
+
SecurityHubNotificationSeverity.MEDIUM,
|
|
87
|
+
SecurityHubNotificationSeverity.HIGH,
|
|
88
|
+
SecurityHubNotificationSeverity.CRITICAL,
|
|
89
|
+
],
|
|
90
|
+
"workflow_status": [SecurityHubNotificationSWorkflowStatus.NEW],
|
|
91
|
+
"notification": {
|
|
92
|
+
"slack": {
|
|
93
|
+
"slack_channel_configuration_name": "security-hub-high",
|
|
94
|
+
"slack_workspace_id": "YourWordspaceID",
|
|
95
|
+
"slack_channel_id": "YourChannelID",
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"id": "notify-resolved",
|
|
101
|
+
"workflow_status": [
|
|
102
|
+
SecurityHubNotificationSWorkflowStatus.RESOLVED,
|
|
103
|
+
SecurityHubNotificationSWorkflowStatus.SUPPRESSED,
|
|
104
|
+
],
|
|
105
|
+
"notification": {
|
|
106
|
+
"slack": {
|
|
107
|
+
"slack_channel_configuration_name": "security-hub-resolved",
|
|
108
|
+
"slack_workspace_id": "YourWordspaceID",
|
|
109
|
+
"slack_channel_id": "YourChannelID",
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
...
|
|
115
|
+
)
|
|
116
|
+
```
|
|
117
|
+
</Fragment>
|
|
118
|
+
</DualCode>
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
## API References
|
|
122
|
+
- [SecurityHubNotification](/reference/api/#aws-data-landing-zone.SecurityHubNotification)
|
|
123
|
+
|
|
@@ -0,0 +1,59 @@
|
|
|
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 allows organizations to define a list of IAM actions (services) to be denied across all accounts and
|
|
8
|
+
regions. This feature is particularly useful for enforcing compliance with internal policies or regulatory
|
|
9
|
+
requirements by restricting access to specific services.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
To add a service to the `denyServiceList` property of the configuration, provide the service name in the format
|
|
13
|
+
`<service>:<action>`. For example, to deny all the `Default` actions and the complete ECS service, use `ecs:*`.
|
|
14
|
+
<DualCode>
|
|
15
|
+
<Fragment slot="ts">
|
|
16
|
+
```ts
|
|
17
|
+
import {App} from 'aws-cdk-lib';
|
|
18
|
+
import { DataLandingZone } from 'aws-data-landing-zone';
|
|
19
|
+
|
|
20
|
+
const app = new App();
|
|
21
|
+
const dlz = new DataLandingZone(app, {
|
|
22
|
+
denyServiceList: [
|
|
23
|
+
...Defaults.denyServiceList(),
|
|
24
|
+
'ecs:*',
|
|
25
|
+
],
|
|
26
|
+
...
|
|
27
|
+
});
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
</Fragment>
|
|
31
|
+
<Fragment slot="python">
|
|
32
|
+
```python
|
|
33
|
+
import aws_cdk as cdk
|
|
34
|
+
import aws_data_landing_zone as dlz
|
|
35
|
+
|
|
36
|
+
app = cdk.App()
|
|
37
|
+
dlz.DataLandingZone(app,
|
|
38
|
+
deny_service_list=[
|
|
39
|
+
*dlz.Defaults.deny_service_list(),
|
|
40
|
+
"ecs:*"
|
|
41
|
+
],
|
|
42
|
+
...
|
|
43
|
+
)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
</Fragment>
|
|
47
|
+
</DualCode>
|
|
48
|
+
|
|
49
|
+
## Defaults
|
|
50
|
+
|
|
51
|
+
The `Defaults.denyServiceList` function is used to create a list of services that should be denied across all accounts
|
|
52
|
+
and regions. This function currently returns the following list of services:
|
|
53
|
+
```
|
|
54
|
+
'eks:*',
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## API References
|
|
58
|
+
- [DataLandingZoneProps.denyServiceList](/reference/api/#aws-data-landing-zone.DataLandingZoneProps.property.denyServiceList)
|
|
59
|
+
|
|
@@ -70,7 +70,7 @@ Refer to the example projects for guidance:
|
|
|
70
70
|
The configuration requires the following:
|
|
71
71
|
|
|
72
72
|
1. **Control Tower**: Ensure Control Tower is already set up. For details, see
|
|
73
|
-
[SOP - Control Tower Setup](/
|
|
73
|
+
[SOP - Control Tower Setup](/sop/initial-control-tower-setup).
|
|
74
74
|
2. **Local Profile**: Specify the AWS profile for local scripts like deploy and bootstrap.
|
|
75
75
|
See [Scripts and Commands](/reference/scripts-commands) for more details.
|
|
76
76
|
3. **Regions**: Define the global and regional AWS regions. The global(home) region is where Control Tower is deployed,
|
|
@@ -150,7 +150,7 @@ development account.
|
|
|
150
150
|
config = DataLandingZoneProps(
|
|
151
151
|
local_profile="YourAwsProfile",
|
|
152
152
|
regions={
|
|
153
|
-
"
|
|
153
|
+
"global_": Region.CHOOSE_A_GLOBAL_REGION,
|
|
154
154
|
"regional": [Region.CHOOSE_ONE_OR_MORE_ADDITIONAL_REGIONS],
|
|
155
155
|
},
|
|
156
156
|
mandatory_tags={
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: Data Landing Zone
|
|
3
|
-
description: Data Landing Zone (DLZ) is CDK Construct
|
|
3
|
+
description: The Data Landing Zone (DLZ) is a CDK Construct designed to create a landing zone tailored for supporting and enabling AI, data-driven, data mesh, and cloud projects.
|
|
4
4
|
template: splash
|
|
5
5
|
hero:
|
|
6
|
-
tagline: Data Landing Zone (DLZ) is CDK Construct
|
|
6
|
+
tagline: The Data Landing Zone (DLZ) is a CDK Construct designed to create a landing zone tailored for supporting and enabling AI, data-driven, data mesh, and cloud projects.
|
|
7
7
|
image:
|
|
8
8
|
light: ../../assets/data_landing_zone_logo.png
|
|
9
9
|
dark: ../../assets/data_landing_zone_logo-white.png
|
|
@@ -17,17 +17,6 @@ The CDK construct is available in both TypeScript and Python. Example GitHub rep
|
|
|
17
17
|
- [TypeScript Example GitHub Repo](https://github.com/DataChefHQ/aws-data-landing-zone-example-typescript)
|
|
18
18
|
- [Python Example GitHub Repo](https://github.com/DataChefHQ/aws-data-landing-zone-example-python)
|
|
19
19
|
|
|
20
|
-
## Intended Audience
|
|
21
|
-
|
|
22
|
-
The DLZ handles the responsibilities and routine tasks typically managed by a Cloud Center of Excellence (CCoE) team.
|
|
23
|
-
It's easy enough for Data Engineers to use on their own, but flexible enough to be customized and fine-tuned by
|
|
24
|
-
experienced Cloud Engineers.
|
|
25
|
-
|
|
26
|
-
It's important to establish the following responsibilities to understand what is in and out of scope for the DLZ:
|
|
27
|
-
|
|
28
|
-
- **In scope** - Any CCoE responsibilities and tasks, such as account management, security, networking, compliance, etc.
|
|
29
|
-
- **Out of scope** - Application development, data engineering, and data science tasks.
|
|
30
|
-
|
|
31
20
|
## Key Features
|
|
32
21
|
|
|
33
22
|
Notable features of the DLZ include:
|
|
@@ -43,40 +32,6 @@ Notable features of the DLZ include:
|
|
|
43
32
|
- Includes helper scripts and Standard Operating Procedures (SOPs) for routine tasks.
|
|
44
33
|
- Accompanied by comprehensive documentation.
|
|
45
34
|
|
|
46
|
-
## Core Principles
|
|
47
|
-
|
|
48
|
-
The DLZ adheres to the following principles:
|
|
49
|
-
|
|
50
|
-
1. Opinionated but configurable defaults to suit diverse needs.
|
|
51
|
-
2. High levels of automation with manual SOPs where needed.
|
|
52
|
-
3. Simplicity and ease of understanding over complexity
|
|
53
|
-
4. Focused scope, limited to Landing Zone responsibilities.
|
|
54
|
-
|
|
55
|
-
## Integrated AWS Services
|
|
56
|
-
|
|
57
|
-
- **AWS Organizations:** Seamless multi-account management.
|
|
58
|
-
- **AWS Budgets:** Track spending by tags with notifications via Slack, Teams, or email.
|
|
59
|
-
- **Service Control Policies (SCPs):** Manage service deny lists.
|
|
60
|
-
- **Tag Policies:** Enforce resource tagging for spend tracking and ownership.
|
|
61
|
-
- **Control Tower Controls:** Opinionated defaults for preventive, detective, and proactive standards.
|
|
62
|
-
- **AWS Security Hub** and **AWS Config:** Additional standards not covered by Control Tower. Notifications are
|
|
63
|
-
delivered via Slack, Teams, or email
|
|
64
|
-
- **Network Management:**
|
|
65
|
-
- Non-overlapping **VPCs** across accounts.
|
|
66
|
-
- **NAT Gateways** or instances for outbound private access.
|
|
67
|
-
- **VPC Peering** for cross-account/region communication.
|
|
68
|
-
- **Bastion Hosts** with **AWS SSM** for secure private resource access.
|
|
69
|
-
- Simplified routing configurations.
|
|
70
|
-
- **IAM Identity Center (SSO):**
|
|
71
|
-
- User management with **AWS Identity Store** or external IDPs (e.g., Google, Active Directory).
|
|
72
|
-
- Manage **Permission Sets**
|
|
73
|
-
- Manage **Access Groups** to assign Users to Accounts with a given Permission Set
|
|
74
|
-
- **Permission Boundaries:** Prevent privilege escalation for all IAM roles and users.
|
|
75
|
-
- Configure **Lake Formation** for Data Lake management, including:
|
|
76
|
-
- General settings, like admins, version and setting hybrid iam mode
|
|
77
|
-
- Create **Tags** and specify their permissions for use within the same account and when sharing to other accounts.
|
|
78
|
-
- Optionally, set **Tag Permissions** on Tags. This is usually out of scope for DLZ, but can be configured.
|
|
79
|
-
|
|
80
35
|
## How it works
|
|
81
36
|
|
|
82
37
|
The DLZ defines all accounts and resources in a single CDK construct that can be used in Typescript or Python CDK
|
|
@@ -91,7 +46,7 @@ approvals in production environments.
|
|
|
91
46
|
<Fragment slot="ts">
|
|
92
47
|
```ts
|
|
93
48
|
import {App} from 'aws-cdk-lib';
|
|
94
|
-
import { DataLandingZone } from 'aws-data-landing-zone';
|
|
49
|
+
import { DataLandingZone, Defaults } from 'aws-data-landing-zone';
|
|
95
50
|
|
|
96
51
|
const app = new App();
|
|
97
52
|
const dlz = new DataLandingZone(app, {
|
|
@@ -100,6 +55,16 @@ approvals in production environments.
|
|
|
100
55
|
global: Region.EU_WEST_1,
|
|
101
56
|
regional: [Region.US_EAST_1],
|
|
102
57
|
},
|
|
58
|
+
budgets: [
|
|
59
|
+
...Defaults.budgets(100, 20, {
|
|
60
|
+
slack: slackBudgetNotifications,
|
|
61
|
+
emails: ['you@org.com'],
|
|
62
|
+
}),
|
|
63
|
+
],
|
|
64
|
+
denyServiceList: [
|
|
65
|
+
...Defaults.denyServiceList(),
|
|
66
|
+
'ecs:*',
|
|
67
|
+
],
|
|
103
68
|
organization: {
|
|
104
69
|
organizationId: 'o-0f5h921gk9',
|
|
105
70
|
root: { accounts: { management: { accountId: '123456789012', }, }, },
|
|
@@ -110,7 +75,10 @@ approvals in production environments.
|
|
|
110
75
|
name: 'development',
|
|
111
76
|
accountId: '123456789012',
|
|
112
77
|
type: DlzAccountType.DEVELOP,
|
|
113
|
-
|
|
78
|
+
vpcs: [
|
|
79
|
+
Defaults.vpcClassB3Private3Public(0, Region.EU_WEST_1), // CIDR 10.0.0./19
|
|
80
|
+
Defaults.vpcClassB3Private3Public(1, Region.US_EAST_1), // CIDR 10.1.0./19
|
|
81
|
+
]
|
|
114
82
|
},{
|
|
115
83
|
name: 'production',
|
|
116
84
|
accountId: '123456789012',
|
|
@@ -123,24 +91,58 @@ approvals in production environments.
|
|
|
123
91
|
},
|
|
124
92
|
},
|
|
125
93
|
...
|
|
126
|
-
|
|
94
|
+
},
|
|
95
|
+
network: {
|
|
96
|
+
nats: [
|
|
97
|
+
{
|
|
98
|
+
name: "development-eu-west-1-internet-access",
|
|
99
|
+
location: new NetworkAddress('development', Region.EU_WEST_1, 'default', 'public', 'public-1'),
|
|
100
|
+
allowAccessFrom: [
|
|
101
|
+
new NetworkAddress('development', Region.EU_WEST_1, 'default', 'private')
|
|
102
|
+
],
|
|
103
|
+
type: {
|
|
104
|
+
gateway: {
|
|
105
|
+
eip: ... //Optional
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
bastionHosts: [
|
|
111
|
+
{
|
|
112
|
+
name: 'default',
|
|
113
|
+
location: new NetworkAddress('development', Region.EU_WEST_1, 'default', 'private', 'private-1'),
|
|
114
|
+
instanceType: InstanceType.of(InstanceClass.T3, InstanceSize.MICRO),
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
}
|
|
127
118
|
});
|
|
128
119
|
```
|
|
129
120
|
|
|
130
121
|
</Fragment>
|
|
131
122
|
<Fragment slot="python">
|
|
132
123
|
```python
|
|
133
|
-
#!/usr/bin/env python3
|
|
134
124
|
import aws_cdk as cdk
|
|
135
125
|
import aws_data_landing_zone as dlz
|
|
136
126
|
|
|
137
127
|
app = cdk.App()
|
|
138
128
|
dlz.DataLandingZone(app,
|
|
139
|
-
|
|
129
|
+
...
|
|
140
130
|
regions=dlz.DlzRegions(
|
|
141
131
|
global_=dlz.Region.EU_WEST_1,
|
|
142
132
|
regional=[dlz.Region.US_EAST_1],
|
|
143
133
|
),
|
|
134
|
+
budgets=[
|
|
135
|
+
*dlz.Defaults.budgets(
|
|
136
|
+
100,
|
|
137
|
+
20,
|
|
138
|
+
slack=slack_budget_notifications,
|
|
139
|
+
emails=["you@org.com"],
|
|
140
|
+
),
|
|
141
|
+
],
|
|
142
|
+
deny_service_list=[
|
|
143
|
+
*dlz.Defaults.deny_service_list(),
|
|
144
|
+
"ecs:*"
|
|
145
|
+
],
|
|
144
146
|
organization=dlz.DLzOrganization(
|
|
145
147
|
organization_id='o-0f5h921gk9',
|
|
146
148
|
root=dlz.RootOptions(
|
|
@@ -156,6 +158,10 @@ approvals in production environments.
|
|
|
156
158
|
name='development',
|
|
157
159
|
account_id='123456789012',
|
|
158
160
|
type=dlz.DlzAccountType.DEVELOP,
|
|
161
|
+
vpcs: [
|
|
162
|
+
dlz.Defaults.vpc_class_b3_private3_public(0, dlz.Region.EU_WEST_1), # CIDR 10.0.0./19
|
|
163
|
+
dlz.Defaults.vpc_class_b3_private3_public(1, dlz.Region.US_EAST_1), # CIDR 10.1.0./19
|
|
164
|
+
]
|
|
159
165
|
),
|
|
160
166
|
dlz.DLzAccount(
|
|
161
167
|
name='production',
|
|
@@ -166,14 +172,90 @@ approvals in production environments.
|
|
|
166
172
|
),
|
|
167
173
|
)
|
|
168
174
|
),
|
|
175
|
+
network={
|
|
176
|
+
"nats": [
|
|
177
|
+
{
|
|
178
|
+
"name": "development-eu-west-1-internet-access",
|
|
179
|
+
"location": NetworkAddress(
|
|
180
|
+
"development", str(Region.EU_WEST_1), "default", "public", "public-1",
|
|
181
|
+
),
|
|
182
|
+
"allow_access_from": [
|
|
183
|
+
NetworkAddress(
|
|
184
|
+
"development", str(Region.EU_WEST_1), "default", "private"
|
|
185
|
+
),
|
|
186
|
+
],
|
|
187
|
+
"type": {
|
|
188
|
+
"gateway": {
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
],
|
|
193
|
+
"bastion_hosts": [
|
|
194
|
+
{
|
|
195
|
+
"name": "default",
|
|
196
|
+
"location": NetworkAddress(
|
|
197
|
+
"development", str(Region.EU_WEST_1), "default", "public", "public-1",
|
|
198
|
+
),
|
|
199
|
+
"instance_type": ec2.InstanceType.of(
|
|
200
|
+
ec2.InstanceClass.T3, ec2.InstanceSize.MICRO
|
|
201
|
+
),
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
}
|
|
169
205
|
)
|
|
170
|
-
|
|
171
|
-
app.synth()
|
|
172
206
|
````
|
|
173
207
|
|
|
174
208
|
</Fragment>
|
|
175
209
|
</DualCode>
|
|
176
210
|
|
|
211
|
+
## Intended Audience
|
|
212
|
+
|
|
213
|
+
The DLZ handles the responsibilities and routine tasks typically managed by a Cloud Center of Excellence (CCoE) team.
|
|
214
|
+
It's easy enough for Data Engineers to use on their own, but flexible enough to be customized and fine-tuned by
|
|
215
|
+
experienced Cloud Engineers.
|
|
216
|
+
|
|
217
|
+
It's important to establish the following responsibilities to understand what is in and out of scope for the DLZ:
|
|
218
|
+
|
|
219
|
+
- **In scope** - Any CCoE responsibilities and tasks, such as account management, security, networking, compliance, etc.
|
|
220
|
+
- **Out of scope** - Application development, data engineering, and data science tasks.
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
## Core Principles
|
|
224
|
+
|
|
225
|
+
The DLZ adheres to the following principles:
|
|
226
|
+
|
|
227
|
+
1. Opinionated but configurable defaults to suit diverse needs.
|
|
228
|
+
2. High levels of automation with manual SOPs where needed.
|
|
229
|
+
3. Simplicity and ease of understanding over complexity
|
|
230
|
+
4. Focused scope, limited to Landing Zone responsibilities.
|
|
231
|
+
|
|
232
|
+
## Integrated AWS Services
|
|
233
|
+
|
|
234
|
+
- **AWS Organizations:** Seamless multi-account management.
|
|
235
|
+
- **AWS Budgets:** Track spending by tags with notifications via Slack, Teams, or email.
|
|
236
|
+
- **Service Control Policies (SCPs):** Manage service deny lists.
|
|
237
|
+
- **Tag Policies:** Enforce resource tagging for spend tracking and ownership.
|
|
238
|
+
- **Control Tower Controls:** Opinionated defaults for preventive, detective, and proactive standards.
|
|
239
|
+
- **AWS Security Hub** and **AWS Config:** Additional standards not covered by Control Tower. Notifications are
|
|
240
|
+
delivered via Slack, Teams, or email
|
|
241
|
+
- **Network Management:**
|
|
242
|
+
- Non-overlapping **VPCs** across accounts.
|
|
243
|
+
- **NAT Gateways** or instances for outbound private access.
|
|
244
|
+
- **VPC Peering** for cross-account/region communication.
|
|
245
|
+
- **Bastion Hosts** with **AWS SSM** for secure private resource access.
|
|
246
|
+
- Simplified routing configurations.
|
|
247
|
+
- **IAM Identity Center (SSO):**
|
|
248
|
+
- User management with **AWS Identity Store** or external IDPs (e.g., Google, Active Directory).
|
|
249
|
+
- Manage **Permission Sets**
|
|
250
|
+
- Manage **Access Groups** to assign Users to Accounts with a given Permission Set
|
|
251
|
+
- **Permission Boundaries:** Prevent privilege escalation for all IAM roles and users.
|
|
252
|
+
- Configure **Lake Formation** for Data Lake management, including:
|
|
253
|
+
- General settings, like admins, version and setting hybrid iam mode
|
|
254
|
+
- Create **Tags** and specify their permissions for use within the same account and when sharing to other accounts.
|
|
255
|
+
- Optionally, set **Tag Permissions** on Tags. This is usually out of scope for DLZ, but can be configured.
|
|
256
|
+
|
|
257
|
+
## Internal Structure
|
|
258
|
+
|
|
177
259
|
The construct processes the provided configuration to create logical deployment layers for resources. Each layer
|
|
178
260
|
consists of a Global Wave and optionally one or more Regional Waves. This structure ensures that all `global` stacks
|
|
179
261
|
for the accounts are deployed before the `regional` stacks. Resources in the `global` stack are region-independent, such
|
|
@@ -299,8 +381,7 @@ all subnets, to the private subnets in the `production` account's VPC in the `eu
|
|
|
299
381
|
|
|
300
382
|
</Fragment>
|
|
301
383
|
<Fragment slot="python">
|
|
302
|
-
```python {
|
|
303
|
-
#!/usr/bin/env python3
|
|
384
|
+
```python {79-84}
|
|
304
385
|
import aws_cdk as cdk
|
|
305
386
|
import aws_data_landing_zone as dlz
|
|
306
387
|
|
|
@@ -388,7 +469,6 @@ all subnets, to the private subnets in the `production` account's VPC in the `eu
|
|
|
388
469
|
)
|
|
389
470
|
)
|
|
390
471
|
)
|
|
391
|
-
app.synth()
|
|
392
472
|
```
|
|
393
473
|
|
|
394
474
|
</Fragment>
|
|
@@ -34,7 +34,6 @@ resources created by the DLZ:
|
|
|
34
34
|
</Fragment>
|
|
35
35
|
<Fragment slot="python">
|
|
36
36
|
```python
|
|
37
|
-
#!/usr/bin/env python3
|
|
38
37
|
import aws_cdk as cdk
|
|
39
38
|
import aws_data_landing_zone as dlz
|
|
40
39
|
|
|
@@ -49,7 +48,7 @@ resources created by the DLZ:
|
|
|
49
48
|
],
|
|
50
49
|
...
|
|
51
50
|
)
|
|
52
|
-
|
|
51
|
+
|
|
53
52
|
```
|
|
54
53
|
</Fragment>
|
|
55
54
|
</DualCode>
|
|
@@ -58,5 +57,14 @@ resources created by the DLZ:
|
|
|
58
57
|
|
|
59
58
|
A comprehensive list of defaults referenced throughout the documentation:
|
|
60
59
|
|
|
60
|
+
- [Defaults.denyServiceList](/components/security/service-deny-list#defaults): Creates two budgets, one for the organization
|
|
61
61
|
- [Defaults.budgets](/components/account-management/budgets#defaults): Creates two budgets, one for the organization
|
|
62
62
|
and another for the DLZ-managed resources.
|
|
63
|
+
- [Defaults.vpcClassB3Private3Public](/components/networking/vpcs#defaults): Creates a VPC with three public and three
|
|
64
|
+
private subnets in the `eu-west-1` region.
|
|
65
|
+
- [Defaults.denyServiceList](/components/security/service-deny-list#defaults): Creates a list of services that should
|
|
66
|
+
be denied by default.
|
|
67
|
+
- [Defaults.rootControls](/components/security/control-tower-controls#defaults): Specifies a list of commonly used
|
|
68
|
+
Control Tower Controls based on best practices and data management.
|
|
69
|
+
- [Defaults.iamIdentityCenterPermissionSets](/components/identity/iam-identity-center) function creates two permission
|
|
70
|
+
sets, `AdministratorAccess` and `ReadOnlyAccess` from the respective AWS managed policies.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Extending and Escape Hatches
|
|
3
|
+
description: Extending and Escape Hatches
|
|
4
|
+
---
|
|
5
|
+
import DualCode from "../../../components/DualCode.astro";
|
|
6
|
+
|
|
7
|
+
The Data Landing Zone provides the flexibility to customize and extend stacks and their constructs. This section explains
|
|
8
|
+
how to extend the Data Landing Zone and use escape hatches to modify default behavior.
|
|
9
|
+
|
|
10
|
+
## Extending the Data Landing Zone
|
|
11
|
+
|
|
12
|
+
All stacks are accessible through the DLZ construct, enabling the addition or removal of constructs from these stacks.
|
|
13
|
+
|
|
14
|
+
Below is an example showing how to add an SNS topic to the management stack:
|
|
15
|
+
|
|
16
|
+
<DualCode>
|
|
17
|
+
<Fragment slot="ts">
|
|
18
|
+
```ts
|
|
19
|
+
import {App} from 'aws-cdk-lib';
|
|
20
|
+
import { DataLandingZone } from 'aws-data-landing-zone';
|
|
21
|
+
|
|
22
|
+
const app = new App();
|
|
23
|
+
const dlz = new DataLandingZone(app, { ... });
|
|
24
|
+
|
|
25
|
+
const topic = new sns.Topic(dlz.managementStack, "new-topic", {
|
|
26
|
+
displayName: "new-topic",
|
|
27
|
+
topicName: "new-topic",
|
|
28
|
+
});
|
|
29
|
+
```
|
|
30
|
+
</Fragment>
|
|
31
|
+
<Fragment slot="python">
|
|
32
|
+
```python
|
|
33
|
+
import aws_cdk as cdk
|
|
34
|
+
from aws_data_landing_zone import DataLandingZone
|
|
35
|
+
from aws_cdk import aws_sns as sns
|
|
36
|
+
|
|
37
|
+
app = cdk.App()
|
|
38
|
+
dlz = DataLandingZone(app, ... )
|
|
39
|
+
|
|
40
|
+
topic = sns.Topic(dlz.management_stack, "new-topic",
|
|
41
|
+
display_name="new-topic",
|
|
42
|
+
topic_name="new-topic")
|
|
43
|
+
```
|
|
44
|
+
</Fragment>
|
|
45
|
+
</DualCode>
|
|
46
|
+
|
|
47
|
+
## Escape Hatches
|
|
48
|
+
|
|
49
|
+
Constructs can be accessed and customized using common CDK [escape hatches](https://docs.aws.amazon.com/cdk/v2/guide/cfn_layer.html).
|
|
50
|
+
These include Aspects, using the `node` property, and the `addOverride` method.
|
|
Binary file
|
|
Binary file
|