aws-data-landing-zone 0.0.42 → 0.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/.jsii +3 -3
  2. package/README.md +85 -19
  3. package/docs/astro.config.ts +47 -36
  4. package/docs/public/favicon.png +0 -0
  5. package/docs/src/content/docs/components/account-management/accounts.mdx +1 -1
  6. package/docs/src/content/docs/components/identity/iam-identity-center.mdx +148 -0
  7. package/docs/src/content/docs/components/networking/bastion-hosts.mdx +189 -0
  8. package/docs/src/content/docs/components/networking/imgs/nat_1.png +0 -0
  9. package/docs/src/content/docs/components/networking/imgs/nat_2.png +0 -0
  10. package/docs/src/content/docs/components/networking/imgs/vpt_1.png +0 -0
  11. package/docs/src/content/docs/components/networking/imgs/vpt_2.png +0 -0
  12. package/docs/src/content/docs/components/networking/imgs/vpt_3.png +0 -0
  13. package/docs/src/content/docs/components/networking/imgs/vpt_4.png +0 -0
  14. package/docs/src/content/docs/components/networking/imgs/vpt_5.png +0 -0
  15. package/docs/src/content/docs/components/networking/nats.mdx +462 -0
  16. package/docs/src/content/docs/components/networking/vpc-peering.mdx +313 -0
  17. package/docs/src/content/docs/components/networking/vpcs.mdx +284 -0
  18. package/docs/src/content/docs/components/security/control-tower-controls.mdx +66 -0
  19. package/docs/src/content/docs/components/security/iam-permission-boundary.mdx +70 -0
  20. package/docs/src/content/docs/components/security/security-hub.mdx +123 -0
  21. package/docs/src/content/docs/components/security/service-deny-list.mdx +59 -0
  22. package/docs/src/content/docs/getting-started.mdx +2 -2
  23. package/docs/src/content/docs/index.mdx +2 -2
  24. package/docs/src/content/docs/introduction.mdx +134 -49
  25. package/docs/src/content/docs/reference/defaults.mdx +9 -0
  26. package/docs/src/content/docs/reference/extending-and-escape-hatches.mdx +50 -0
  27. package/docs/src/content/docs/reference/integration/cdk-client.mdx +122 -0
  28. package/docs/src/content/docs/reference/integration/exported-ssm-parameters.mdx +28 -0
  29. package/docs/src/content/docs/reference/network-address.mdx +54 -0
  30. package/docs/src/content/docs/{components/account-management/sop-account-setup.mdx → sop/account-setup.mdx} +2 -2
  31. package/docs/src/content/docs/{components/account-management/sop-add-account.mdx → sop/add-account.mdx} +3 -3
  32. package/docs/src/content/docs/sop/iam-identity-center-setup-external.mdx +46 -0
  33. package/docs/src/content/docs/sop/iam-identity-center-setup-internal.mdx +23 -0
  34. package/docs/src/content/docs/sop/iam-identity-center.mdx +43 -0
  35. package/docs/src/content/docs/sop/imgs/aws_sso_enable_iam_identity_center.png +0 -0
  36. package/docs/src/content/docs/sop/imgs/aws_sso_external_change.png +0 -0
  37. package/docs/src/content/docs/sop/imgs/aws_sso_external_disable_provisioning_1.png +0 -0
  38. package/docs/src/content/docs/sop/imgs/aws_sso_external_disable_provisioning_2.png +0 -0
  39. package/docs/src/content/docs/sop/imgs/aws_sso_external_idp_config.png +0 -0
  40. package/docs/src/content/docs/sop/imgs/aws_sso_external_select.png +0 -0
  41. package/docs/src/content/docs/sop/imgs/aws_sso_external_trusted_token_1.png +0 -0
  42. package/docs/src/content/docs/sop/imgs/aws_sso_external_trusted_token_2.png +0 -0
  43. package/docs/src/content/docs/sop/imgs/aws_sso_internal_select_identity_source.png +0 -0
  44. package/docs/src/content/docs/sop/imgs/aws_sso_settings_configure.png +0 -0
  45. package/docs/src/content/docs/sop/imgs/select_settings.png +0 -0
  46. package/docs/src/content/docs/{components/account-management/sop-initial-control-tower-setup.mdx → sop/initial-control-tower-setup.mdx} +7 -4
  47. package/docs-old/sop/Setting Up IAM Identity Center External/README.md +1 -1
  48. package/docs-old/sop/Setting Up IAM Identity Center Internal/README.md +1 -1
  49. package/lib/constructs/account-chatbots/index.js +1 -1
  50. package/lib/constructs/dlz-budget/index.js +1 -1
  51. package/lib/constructs/dlz-control-tower-control/control-tower-control.js +1 -1
  52. package/lib/constructs/dlz-lake-formation/dlz-lake-formation.js +1 -1
  53. package/lib/constructs/dlz-ssm-reader/dlz-ssm-reader-stack-cache.js +1 -1
  54. package/lib/constructs/dlz-ssm-reader/dlz-ssm-reader.js +1 -1
  55. package/lib/constructs/dlz-stack/index.js +1 -1
  56. package/lib/constructs/dlz-vpc/dlz-account-networks.js +1 -1
  57. package/lib/constructs/dlz-vpc/dlz-vpc.js +1 -1
  58. package/lib/constructs/dlz-vpc/network-address.js +1 -1
  59. package/lib/constructs/iam-identity-center/iam-identity-center-group.js +1 -1
  60. package/lib/constructs/iam-identity-center/iam-identity-center.js +1 -1
  61. package/lib/constructs/iam-identity-center/identity-store-user.js +1 -1
  62. package/lib/constructs/organization-policies/service-control-policy.js +1 -1
  63. package/lib/constructs/organization-policies/tag-policy.js +1 -1
  64. package/lib/data-landing-zone-client.js +1 -1
  65. package/lib/data-landing-zone.js +1 -1
  66. package/lib/defaults.js +1 -1
  67. package/lib/lib/report/index.js +1 -1
  68. package/lib/scripts/index.js +1 -1
  69. package/lib/stacks/organization/management-stack.js +1 -1
  70. package/lib/stacks/organization/security/audit/global-stack.js +1 -1
  71. package/lib/stacks/organization/security/audit/regional-stack.js +1 -1
  72. package/lib/stacks/organization/security/log/global-stack.js +1 -1
  73. package/lib/stacks/organization/security/log/regional-stack.js +1 -1
  74. package/lib/stacks/organization/workloads/base/global-stack.js +1 -1
  75. package/lib/stacks/organization/workloads/base/regional-stack.js +1 -1
  76. package/lib/stacks/organization/workloads/data-services-phase-1-stack/global-stack.js +1 -1
  77. package/lib/stacks/organization/workloads/data-services-phase-1-stack/regional-stack.js +1 -1
  78. package/lib/stacks/organization/workloads/network-connections-phase-1-stack/global-stack.js +1 -1
  79. package/lib/stacks/organization/workloads/network-connections-phase-2-stack/global-stack.js +1 -1
  80. package/lib/stacks/organization/workloads/network-connections-phase-2-stack/regional-stack.js +1 -1
  81. package/lib/stacks/organization/workloads/network-connections-phase-3-stack/global-stack.js +1 -1
  82. package/lib/stacks/organization/workloads/network-connections-phase-3-stack/regional-stack.js +1 -1
  83. package/package.json +1 -1
  84. package/docs/public/favicon.svg +0 -1
  85. package/docs/src/assets/houston.webp +0 -0
  86. package/docs/src/content/docs/components/account-management/service-deny-list.mdx +0 -58
  87. package/docs/src/content/docs/components/identity/introduction.mdx +0 -4
  88. /package/docs/src/content/docs/{components/account-management → sop}/imgs/account_factory_settings.png +0 -0
  89. /package/docs/src/content/docs/{components/account-management → sop}/imgs/aws_new_account_1.png +0 -0
  90. /package/docs/src/content/docs/{components/account-management → sop}/imgs/aws_new_account_2.png +0 -0
  91. /package/docs/src/content/docs/{components/account-management → sop}/imgs/aws_new_account_3.png +0 -0
  92. /package/docs/src/content/docs/{components/account-management → sop}/imgs/aws_new_account_4.png +0 -0
  93. /package/docs/src/content/docs/{components/account-management → sop}/imgs/aws_new_account_5.png +0 -0
  94. /package/docs/src/content/docs/{components/account-management → sop}/imgs/aws_organisation_ids_final.png +0 -0
@@ -0,0 +1,313 @@
1
+ ---
2
+ title: VPC Peering
3
+ description: VPC Peering
4
+ ---
5
+ import DualCode from '../../../../components/DualCode.astro';
6
+
7
+ VPC Peering establishes a secure networking connection between two VPCs, allowing resources within them to communicate.
8
+ These VPCs can belong to the same or different accounts and regions.
9
+
10
+ To configure VPC Peering, use the `DataLandingZoneProps` object within the `network.connections.vpcPeering` property.
11
+ The configurations leverage the specific accounts and VPCs below to demonstrate various setups.
12
+
13
+ <DualCode>
14
+ <Fragment slot="ts">
15
+ ```ts
16
+ import {App} from 'aws-cdk-lib';
17
+ import { DataLandingZone } from 'aws-data-landing-zone';
18
+
19
+ const app = new App();
20
+ const dlz = new DataLandingZone(app, {
21
+ organization: {
22
+ regions: {
23
+ global: Region.EU_WEST_1,
24
+ regional: [Region.US_EAST_1],
25
+ },
26
+ ...
27
+ ous: {
28
+ workloads: {
29
+ accounts: [
30
+ {
31
+ name: 'development',
32
+ vpcs: [
33
+ Defaults.vpcClassB3Private3Public(0, Region.US_EAST_1), // CIDR 10.0.0./19
34
+ Defaults.vpcClassB3Private3Public(1, Region.EU_WEST_1), // CIDR 10.1.0./19
35
+ ],
36
+ },
37
+ {
38
+ name: 'production',
39
+ vpcs: [
40
+ Defaults.vpcClassB3Private3Public(2, Region.US_EAST_1), // CIDR 10.2.0./19
41
+ Defaults.vpcClassB3Private3Public(3, Region.EU_WEST_1), // CIDR 10.3.0./19
42
+ ],
43
+ },
44
+ ]
45
+ },
46
+ },
47
+ ...
48
+ },
49
+ network: {
50
+ connections: {
51
+ vpcPeering: [
52
+ ... See below configurations ...
53
+ ],
54
+ },
55
+ },
56
+ );
57
+ ````
58
+ </Fragment>
59
+
60
+ <Fragment slot="python">
61
+ ```python
62
+ import aws_cdk as cdk
63
+ import aws_data_landing_zone as dlz
64
+
65
+ app = cdk.App()
66
+ dlz.DataLandingZone(app,
67
+ ...
68
+ organization=dlz.DLzOrganization(
69
+ ous=dlz.OrgOus(
70
+ regions=dlz.DlzRegions(
71
+ global_=dlz.Region.EU_WEST_1,
72
+ regional=[dlz.Region.US_EAST_1],
73
+ ),
74
+ workloads=dlz.OrgOuWorkloads(
75
+ accounts=[
76
+ dlz.DLzAccount(
77
+ name='development',
78
+ vpcs: [
79
+ dlz.Defaults.vpc_class_b3_private3_public(0, dlz.Region.US_EAST_1), // CIDR 10.0.0./19
80
+ dlz.Defaults.vpc_class_b3_private3_public(1, dlz.Region.EU_WEST_1), // CIDR 10.1.0./19
81
+ ]
82
+ ),
83
+ dlz.DLzAccount(
84
+ name='production',
85
+ vpcs: [
86
+ dlz.Defaults.vpc_class_b3_private3_public(2, dlz.Region.US_EAST_1), // CIDR 10.2.0./19
87
+ dlz.Defaults.vpc_class_b3_private3_public(3, dlz.Region.EU_WEST_1), // CIDR 10.3.0./19
88
+ ]
89
+ ),
90
+ ],
91
+ ),
92
+ ),
93
+ network={
94
+ "connections": {
95
+ "vpc_peering": [
96
+ ... See below configurations ...
97
+ ],
98
+ },
99
+ }
100
+ ),
101
+ )
102
+ ```
103
+ </Fragment>
104
+ </DualCode>
105
+
106
+
107
+ ## Configurations
108
+
109
+ ### 1. Single route table across regions in the same account
110
+
111
+ Connects the private subnet of the development global VPC to the private subnet of the development regional VPC.
112
+
113
+ <DualCode>
114
+ <Fragment slot="ts">
115
+ ```ts
116
+ ...
117
+ network: {
118
+ connections: {
119
+ vpcPeering: [
120
+ {
121
+ source: new NetworkAddress('development', Region.EU_WEST_1, 'default', 'private'),
122
+ destination: new NetworkAddress('development', Region.US_EAST_1, 'default', 'private'),
123
+ },
124
+ ],
125
+ },
126
+ },
127
+ ```
128
+ </Fragment>
129
+ <Fragment slot="python">
130
+ ```python
131
+ ...
132
+ network=dlz.Network(
133
+ connections=dlz.NetworkConnection(
134
+ vpc_peering=[
135
+ dlz.NetworkConnectionVpcPeering(
136
+ source=dlz.NetworkAddress.from_string('development.eu-west-1.default.private'),
137
+ destination=dlz.NetworkAddress.from_string('development.us-east-1.default.private')
138
+ )
139
+ ]
140
+ )
141
+ ),
142
+ ```
143
+ </Fragment>
144
+ </DualCode>
145
+
146
+ ![vpt_4.png](imgs/vpt_4.png)
147
+
148
+ ### 2. Single route tables across accounts
149
+
150
+ Connects the private subnet of the development global VPC to the private subnet of the production regional VPC.
151
+
152
+ <DualCode>
153
+ <Fragment slot="ts">
154
+ ```ts
155
+ const config: DataLandingZoneProps = {
156
+ ...configBase,
157
+ network: {
158
+ connections: {
159
+ vpcPeering: [
160
+ {
161
+ source: new NetworkAddress('development', Region.EU_WEST_1, 'default', 'private'),
162
+ destination: NetworkAddress.fromString('production.us-east-1.default.private'),
163
+ },
164
+ ],
165
+ },
166
+ },
167
+ };
168
+ ```
169
+ </Fragment>
170
+ <Fragment slot="python">
171
+ ```python
172
+ ...
173
+ network=dlz.Network(
174
+ connections=dlz.NetworkConnection(
175
+ vpc_peering=[
176
+ dlz.NetworkConnectionVpcPeering(
177
+ source=dlz.NetworkAddress.from_string('development.eu-west-1.default.private'),
178
+ destination=dlz.NetworkAddress.from_string('production.us-east-1.default.private')
179
+ )
180
+ ]
181
+ )
182
+ ),
183
+ ```
184
+ </Fragment>
185
+ </DualCode>
186
+
187
+ ![vpt_1.png](imgs/vpt_1.png)
188
+
189
+ ### 3. All Dev route tables cross account with a single Pord route table
190
+
191
+ Connects all subnets of the development account in both regions to a single private subnet in the production account.
192
+
193
+ <DualCode>
194
+ <Fragment slot="ts">
195
+ ```ts
196
+ const config: DataLandingZoneProps = {
197
+ ...configBase,
198
+ network: {
199
+ connections: {
200
+ vpcPeering: [
201
+ {
202
+ source: new NetworkAddress('development'),
203
+ destination: NetworkAddress.fromString('production.us-east-1.default.private'),
204
+ },
205
+ ],
206
+ },
207
+ },
208
+ };
209
+ ```
210
+ </Fragment>
211
+ <Fragment slot="python">
212
+ ```python
213
+ ...
214
+ network=dlz.Network(
215
+ connections=dlz.NetworkConnection(
216
+ vpc_peering=[
217
+ dlz.NetworkConnectionVpcPeering(
218
+ source=dlz.NetworkAddress.from_string('development'),
219
+ destination=dlz.NetworkAddress.from_string('production.us-east-1.default.private')
220
+ )
221
+ ]
222
+ )
223
+ ),
224
+ ```
225
+ </Fragment>
226
+ </DualCode>
227
+
228
+ ![vpt_2.png](imgs/vpt_2.png)
229
+
230
+ ### 4. All Dev route tables cross account with all Prod route tables
231
+
232
+ Connects all subnets of the development account in both regions to all the private subnets of the production account
233
+ in both regions.
234
+
235
+ <DualCode>
236
+ <Fragment slot="ts">
237
+ ```ts
238
+ const config: DataLandingZoneProps = {
239
+ ...configBase,
240
+ network: {
241
+ connections: {
242
+ vpcPeering: [
243
+ {
244
+ source: new NetworkAddress('development'),
245
+ destination: NetworkAddress.fromString('production'),
246
+ },
247
+ ],
248
+ },
249
+ },
250
+ };
251
+ ```
252
+ </Fragment>
253
+ <Fragment slot="python">
254
+ ```python
255
+ ...
256
+ network=dlz.Network(
257
+ connections=dlz.NetworkConnection(
258
+ vpc_peering=[
259
+ dlz.NetworkConnectionVpcPeering(
260
+ source=dlz.NetworkAddress.from_string('development'),
261
+ destination=dlz.NetworkAddress.from_string('production')
262
+ )
263
+ ]
264
+ )
265
+ ),
266
+ ```
267
+ </Fragment>
268
+ </DualCode>
269
+
270
+ ![vpt_3.png](imgs/vpt_3.png)
271
+
272
+
273
+ ## Important considerations
274
+
275
+ - VPC Peering is a hub-spoke connection, traffic cannot leave the spoke (destination account).
276
+ - Peered VPCs can communicate bi-directionally, traffic cannot be restricted to flow in one direction. While access
277
+ can be managed using security groups, it cannot be controlled at the networking level.
278
+ - VPC Peering cannot route all traffic through a central egress account due to its hub-spoke limitation. Traffic cannot
279
+ exit the destination VPC through a NAT.
280
+ - Peering roles are not created between VPCs in the same account.
281
+ - Route table entries are limited. By default, the limit is 50, but it can be increased to 1,000 with a service quota
282
+ request.
283
+
284
+ ## FAQ
285
+
286
+ ### When should you use VPC Peering?
287
+
288
+ - There is no extra charges(fixed or variable) for a VPC Peering Connection.
289
+ - Data transfer between AZ, regardless of the same account or not, is free. You only pay standard EC2 data transfer
290
+ rates if data crosses AZ and Regions. This makes for cost-effective data transfer between Accounts and VPCs.
291
+ Especially for large data transfers between Accounts and VPCs in the same Region and AZ.
292
+ - You accept the hub-spoke architecture and do not require a central egress point for all traffic. In many cases,
293
+ this makes VPC Peering a better alternative to a centralized egress account with a NAT Gateway. While you can
294
+ achieve centralized routing with a Transit Gateway, it incurs additional costs, including an hourly fee for
295
+ attachments and higher data transfer rates, ~4 times more expensive than a NAT Gateway. Furthermore,
296
+ you would still need to account for the NAT Gateway's data transfer costs. For cost efficiency and reliability,
297
+ deploying individual NAT Gateways or instances in each VPC is often a superior approach. This strategy avoids a
298
+ single point of failure while maintaining cost-effectiveness.
299
+
300
+ ### When should you NOT use VPC Peering?
301
+
302
+ - VPC Peering is not transitive. For example, if VPC A is peered with VPC B and VPC B is peered with VPC C, VPC A cannot
303
+ communicate with VPC C. A direct peering connection between VPC A and VPC C would be required.
304
+ - If you have many accounts needing inter-communication, the route table entry limit(1000) may become a bottleneck. For
305
+ example, connecting 10 accounts with 3 private subnets each requires 27 routes per table (9 accounts × 3 subnets),
306
+ which does not scale efficiently as the number of accounts and VPCs grows.
307
+ - If you want a central egress point for all traffic. Due to the hub-spoke architecture, traffic
308
+ cannot leave the destination VPC, except through manual proxy configurations, which are generally not recommended.
309
+
310
+
311
+
312
+ ## API References
313
+ - [NetworkConnectionVpcPeering](/reference/api/#networkconnectionvpcpeering)
@@ -0,0 +1,284 @@
1
+ ---
2
+ title: VPCs
3
+ description: VPCs
4
+ ---
5
+ import DualCode from '../../../../components/DualCode.astro';
6
+
7
+ The Data Landing Zone provides support for creating Virtual Private Clouds (VPCs) in multiple regions and accounts. It
8
+ enforces non-overlapping CIDR ranges across VPCs within the same account and across accounts.
9
+
10
+ :::note
11
+ Ensure that default VPC creation is disabled when setting up accounts with Control Tower, as outlined in the
12
+ [SOP - Add Account](/sop/add-account). All VPCs are defined programmatically by the DLZ.
13
+ :::
14
+
15
+ The DLZ enables precise control over VPCs, subnets, and route tables. Each VPC, route table, and subnet is named to
16
+ facilitate addressing using a
17
+ [Network Address](/reference/network-address). For example, this allows you to target a specific subnet for deploying a
18
+ resource.
19
+
20
+ The example below defines two VPCs:
21
+ - A VPC created using the default function in the `eu-west-1` region with a CIDR block of `10.0.0.0/16`.
22
+ - A manually configured VPC in the `us-east-1` region with a CIDR block of `10.1.0.0/16`.
23
+
24
+ Both VPCs include:
25
+ - A `private` route table and a `public` route table, each containing three subnets with `/19` CIDRs that allow for
26
+ approximately 8k hosts per subnet.
27
+ - Reserved space for additional subnets, leaving two `/19` subnets available at the end of each VPC's CIDR range.
28
+
29
+ <DualCode>
30
+ <Fragment slot="ts">
31
+ ```ts
32
+ import {App} from 'aws-cdk-lib';
33
+ import { DataLandingZone } from 'aws-data-landing-zone';
34
+
35
+ const app = new App();
36
+ const dlz = new DataLandingZone(app, {
37
+ ...
38
+ organization: {
39
+ ...
40
+ workloads: {
41
+ accounts: [{
42
+ name: 'development',
43
+ vpcs: [
44
+ /* Use the default function */
45
+ Defaults.vpcClassB3Private3Public(0, Region.EU_WEST_1),
46
+ /* Or define manually */
47
+ {
48
+ name: 'default',
49
+ region: Region.US_EAST_1,
50
+ cidr: '10.1.0.0/16',
51
+ routeTables: [
52
+ /* Evenly divide, each /19 = 8k hosts */
53
+ {
54
+ name: 'private',
55
+ subnets: [
56
+ /* Evenly divide, each /19 = 8k hosts */
57
+ {
58
+ name: 'private-1',
59
+ cidr: '10.1.0.0/19',
60
+ az: 'us-east-1a',
61
+ },
62
+ {
63
+ name: 'private-2',
64
+ cidr: '10.1.32.0/19',
65
+ az: 'us-east-1b',
66
+ },
67
+ {
68
+ name: 'private-3',
69
+ cidr: '10.1.64.0/19',
70
+ az: 'us-east-1c',
71
+ },
72
+ ],
73
+ },
74
+ {
75
+ name: 'public',
76
+ subnets: [
77
+ {
78
+ name: 'public-1',
79
+ cidr: '10.1.96.0/19',
80
+ az: 'us-east-1a',
81
+ },
82
+ {
83
+ name: 'public-2',
84
+ cidr: '10.1.128.0/19',
85
+ az: 'us-east-1a',
86
+ },
87
+ {
88
+ name: 'public-3',
89
+ cidr: '10.1.160.0/19',
90
+ az: 'us-east-1a',
91
+ },
92
+ ],
93
+ },
94
+ /* Remaining:
95
+ * - 10.1.192.0/19
96
+ * - 10.1.224.0/19
97
+ * */
98
+ ],
99
+ },
100
+ ],
101
+ ...
102
+ },
103
+ ...
104
+ ]
105
+ },
106
+ },
107
+ ...
108
+ }
109
+ });
110
+ ```
111
+ </Fragment>
112
+ <Fragment slot="python">
113
+ ```python
114
+ #!/usr/bin/env python3
115
+ import aws_cdk as cdk
116
+ import aws_data_landing_zone as dlz
117
+
118
+ app = cdk.App()
119
+ dlz.DataLandingZone(app,
120
+ ...
121
+ organization=dlz.DLzOrganization(
122
+ ous=dlz.OrgOus(
123
+ ...
124
+ workloads=dlz.OrgOuWorkloads(
125
+ accounts=[
126
+ dlz.DLzAccount(
127
+ name='development',
128
+ vpcs: [
129
+ # Use the default function
130
+ dlz.Defaults.vpc_class_b3_private3_public(0, dlz.Region.EU_WEST_1),
131
+ # Or define manually
132
+ {
133
+ "name": "default",
134
+ "region": Region.US_EAST_1,
135
+ "cidr": "10.1.0.0/16",
136
+ "route_tables": [
137
+ # Evenly divide, each /19 = 8k hosts
138
+ {
139
+ "name": "private",
140
+ "subnets": [
141
+ # Evenly divide, each /19 = 8k hosts
142
+ {
143
+ "name": "private-1",
144
+ "cidr": "10.1.0.0/19",
145
+ "az": "us-east-1a",
146
+ },
147
+ {
148
+ "name": "private-2",
149
+ "cidr": "10.1.32.0/19",
150
+ "az": "us-east-1b",
151
+ },
152
+ {
153
+ "name": "private-3",
154
+ "cidr": "10.1.64.0/19",
155
+ "az": "us-east-1c",
156
+ },
157
+ ],
158
+ },
159
+ {
160
+ "name": "public",
161
+ "subnets": [
162
+ {
163
+ "name": "public-1",
164
+ "cidr": "10.1.96.0/19",
165
+ "az": "us-east-1a",
166
+ },
167
+ {
168
+ "name": "public-2",
169
+ "cidr": "10.1.128.0/19",
170
+ "az": "us-east-1a",
171
+ },
172
+ {
173
+ "name": "public-3",
174
+ "cidr": "10.1.160.0/19",
175
+ "az": "us-east-1a",
176
+ },
177
+ ],
178
+ },
179
+ # Remaining:
180
+ # - 10.1.192.0/19
181
+ # - 10.1.224.0/19
182
+ ],
183
+ },
184
+ ]
185
+ ...
186
+ ),
187
+ ],
188
+ ),
189
+ )
190
+ ),
191
+ )
192
+ ````
193
+ </Fragment>
194
+ </DualCode>
195
+
196
+ ## Defaults
197
+
198
+ The `Defaults.vpcClassB3Private3Public` function creates a VPC with a CIDR block of `10.x.0.0/16`, where `x` can be
199
+ specified. It creates two route tables; one for public subnets and one for private subnets, each containing three
200
+ subnets. Each subnet is assigned a `/19` CIDR block. The VPC CIDR block is divided into eight subnets, with six in use
201
+ and two `/19` blocks reserved for future expansion. The specified region determines the availability zones for the
202
+ subnets.
203
+
204
+ <DualCode>
205
+ <Fragment slot="ts">
206
+ ```ts {25}
207
+ import {App} from 'aws-cdk-lib';
208
+ import { DataLandingZone } from 'aws-data-landing-zone';
209
+
210
+ const app = new App();
211
+ const dlz = new DataLandingZone(app, {
212
+ ...
213
+ organization: {
214
+ ...
215
+ workloads: {
216
+ accounts: [{
217
+ name: 'development',
218
+ vpcs: [
219
+ Defaults.vpcClassB3Private3Public(0, Region.EU_WEST_1),
220
+ ]
221
+ },
222
+ },
223
+ ...
224
+ }
225
+ });
226
+ ```
227
+ </Fragment>
228
+ <Fragment slot="python">
229
+ ```python {25}
230
+ #!/usr/bin/env python3
231
+ import aws_cdk as cdk
232
+ import aws_data_landing_zone as dlz
233
+
234
+ app = cdk.App()
235
+ dlz.DataLandingZone(app,
236
+ ...
237
+ organization=dlz.DLzOrganization(
238
+ ous=dlz.OrgOus(
239
+ ...
240
+ workloads=dlz.OrgOuWorkloads(
241
+ accounts=[
242
+ dlz.DLzAccount(
243
+ name='development',
244
+ vpcs: [
245
+ dlz.Defaults.vpc_class_b3_private3_public(0, dlz.Region.EU_WEST_1),
246
+ ]
247
+ ...
248
+ ),
249
+ ],
250
+ ),
251
+ )
252
+ ),
253
+ )
254
+ ````
255
+ </Fragment>
256
+ </DualCode>
257
+
258
+ ## Exported SSM Parameters
259
+
260
+ Each VPC generates the following parameters in the SSM Parameter Store:
261
+ - `/dlz/networking-entity/vpc/<account-name>.<region>.<vpc-name>/id`: The VPC ID.
262
+ - `/dlz/networking-entity/vpc/<account-name>.<region>.<vpc-name>.<route-table-name>/id`: The route table ID for each route table.
263
+ - `/dlz/networking-entity/vpc/<account-name>.<region>.<vpc-name>.<route-table-name>.<subnet-name>/id`: The subnet ID for each subnet.
264
+
265
+ For instance, the `Defaults.vpcClassB3Private3Public(0, Regions.EU_WEST_1)` function creates a VPC named `default` in
266
+ the `eu-west-1` region. This VPC has a CIDR block of `10.0.0.0/16`, two route tables (`private` and `public`), and six
267
+ subnets named `private-1`, `private-2`, `private-3`, `public-1`, `public-2`, and `public-3`.
268
+
269
+ The following parameters will be created in the account for this VPC:
270
+ - VPC parameters:
271
+ - `/dlz/networking-entity/vpc/development.eu-west-1.default/id`
272
+ - Route table parameters:
273
+ - `/dlz/networking-entity/vpc/development.eu-west-1.default.private/id`
274
+ - `/dlz/networking-entity/vpc/development.eu-west-1.default.public/id`
275
+ - Subnet parameters:
276
+ - `/dlz/networking-entity/vpc/development.eu-west-1.default.private.private-1/id`
277
+ - `/dlz/networking-entity/vpc/development.eu-west-1.default.private.private-2/id`
278
+ - `/dlz/networking-entity/vpc/development.eu-west-1.default.private.private-3/id`
279
+ - `/dlz/networking-entity/vpc/development.eu-west-1.default.public.public-1/id`
280
+ - `/dlz/networking-entity/vpc/development.eu-west-1.default.public.public-2/id`
281
+ - `/dlz/networking-entity/vpc/development.eu-west-1.default.public/public-3/id`
282
+
283
+ ## API References
284
+ - [DlzVpcProps](/reference/api#dlzvpcprops)
@@ -0,0 +1,66 @@
1
+ ---
2
+ title: Control Tower Controls
3
+ description: Control Tower Controls
4
+ ---
5
+ import DualCode from '../../../../components/DualCode.astro';
6
+
7
+ The Data Landing Zone supports specifying Control Tower Controls using the `controlTowerControls` property. This property
8
+ applies controls to the entire organization and all accounts within it.
9
+
10
+ The example below demonstrates how to use DLZ defaults and add the `SH_SECRETS_MANAGER_3` control:
11
+
12
+ <DualCode>
13
+ <Fragment slot="ts">
14
+ ```ts
15
+ import {App} from 'aws-cdk-lib';
16
+ import { DataLandingZone } from 'aws-data-landing-zone';
17
+
18
+ const app = new App();
19
+ const dlz = new DataLandingZone(app, {
20
+ organization: {
21
+ root: {
22
+ ...
23
+ controls: [
24
+ ...Defaults.rootControls(),
25
+ DlzControlTowerStandardControls.SH_SECRETS_MANAGER_3,
26
+ ],
27
+ },
28
+ ous: ...
29
+ },
30
+ ...
31
+ });
32
+ ```
33
+ </Fragment>
34
+ <Fragment slot="python">
35
+ ```python
36
+ import aws_cdk as cdk
37
+ import aws_data_landing_zone as dlz
38
+
39
+ app = cdk.App()
40
+ dlz.DataLandingZone(app,
41
+ organization=dlz.DLzOrganization(
42
+ root=dlz.RootOptions(
43
+ ...
44
+ controls=[
45
+ *dlz.Defaults.root_controls(),
46
+ dlz.DlzControlTowerStandardControls.SH_SECRETS_MANAGER_3
47
+ ]
48
+ ),
49
+ ...
50
+ )
51
+ ```
52
+ </Fragment>
53
+ </DualCode>
54
+
55
+ ## Defaults
56
+
57
+ The `Defaults.rootControls` function returns a list of commonly used Control Tower Controls based on best practices
58
+ and data management. You can find a detailed list of these controls in the code
59
+ [here](https://github.com/DataChefHQ/aws-data-landing-zone/blob/dfe6f6d7ea991aa37976fae41b9ab38c81a2748a/src/defaults.ts#L143).
60
+
61
+ ## API References
62
+ - [DlzControlTowerEnabledControl](/reference/api/#dlzcontroltowerenabledcontrol)
63
+ - [DlzControlTowerControlFormat](/reference/api/#dlzcontroltowercontrolformat)
64
+ - [IDlzControlTowerControl](/reference/api/#idlzcontroltowercontrol)
65
+ - [DlzControlTowerStandardControls](/reference/api/#dlzcontroltowerstandardcontrols)
66
+ - [DlzControlTowerSpecializedControls](/reference/api/#dlzcontroltowerspecializedcontrols)