aws-data-landing-zone 0.6.17 → 0.6.18
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 +216 -46
- package/API.md +145 -0
- package/docs/src/content/docs/reference/api.md +145 -0
- package/docs/src/content/docs/reference/scripts-commands.mdx +4 -2
- package/docs/src/content/docs/sop/aws-nuke.mdx +53 -1
- package/lib/constructs/account-chatbots/index.js +1 -1
- package/lib/constructs/dlz-account-budgets/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-cost-anomaly-detection/index.js +1 -1
- package/lib/constructs/dlz-data-exports/dlz-data-export.js +1 -1
- package/lib/constructs/dlz-data-exports/dlz-data-exports-athena.js +1 -1
- package/lib/constructs/dlz-data-exports/dlz-data-exports-data-plane.js +1 -1
- package/lib/constructs/dlz-data-exports/dlz-data-exports-tag-activation.js +1 -1
- package/lib/constructs/dlz-guardduty/guardduty-delegated-admin.js +1 -1
- package/lib/constructs/dlz-guardduty/guardduty-member-features.js +1 -1
- package/lib/constructs/dlz-guardduty/guardduty-org-config.js +1 -1
- package/lib/constructs/dlz-lake-formation/dlz-lake-formation.js +1 -1
- package/lib/constructs/dlz-macie/macie-delegated-admin.js +1 -1
- package/lib/constructs/dlz-macie/macie-members.js +1 -1
- package/lib/constructs/dlz-macie/macie-org-config.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-tag-compliance-alert/index.js +2 -2
- 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/iam-account-alias.js +1 -1
- package/lib/constructs/iam/iam-password-policy.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/scp-merge.js +2 -2
- package/lib/constructs/organization-policies/scp-presets/control-tower-exemption.js +1 -1
- package/lib/constructs/organization-policies/scp-presets/deny-actions-outside-regions.js +1 -1
- package/lib/constructs/organization-policies/scp-presets/deny-backup-vault-lock.js +1 -1
- package/lib/constructs/organization-policies/scp-presets/deny-bedrock-provisioned-throughput.js +1 -1
- package/lib/constructs/organization-policies/scp-presets/deny-cfn-stacks-without-standard-tags.js +1 -1
- package/lib/constructs/organization-policies/scp-presets/deny-dedicated-infra-and-subscriptions.js +1 -1
- package/lib/constructs/organization-policies/scp-presets/deny-disabling-security-services.js +1 -1
- package/lib/constructs/organization-policies/scp-presets/deny-domain-registrations.js +1 -1
- package/lib/constructs/organization-policies/scp-presets/deny-glacier-vault-lock.js +1 -1
- package/lib/constructs/organization-policies/scp-presets/deny-iam-without-permissions-boundary.js +1 -1
- package/lib/constructs/organization-policies/scp-presets/deny-leaving-organization.js +1 -1
- package/lib/constructs/organization-policies/scp-presets/deny-marketplace-subscriptions.js +1 -1
- package/lib/constructs/organization-policies/scp-presets/deny-reserved-capacity-purchases.js +1 -1
- package/lib/constructs/organization-policies/scp-presets/deny-resource-creation-without-standard-tags.js +1 -1
- package/lib/constructs/organization-policies/scp-presets/deny-root-credentials-management-in-member-accounts.js +1 -1
- package/lib/constructs/organization-policies/scp-presets/deny-root-user-actions.js +1 -1
- package/lib/constructs/organization-policies/scp-presets/deny-s3-object-lock-and-retention.js +1 -1
- package/lib/constructs/organization-policies/scp-presets/deny-s3-public-access-bypass.js +1 -1
- package/lib/constructs/organization-policies/scp-presets/deny-savings-plan-purchases.js +1 -1
- package/lib/constructs/organization-policies/scp-presets/deny-service-actions.js +1 -1
- package/lib/constructs/organization-policies/scp-presets/finops-account-baseline.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 +44 -0
- package/lib/data-landing-zone-types.js +9 -2
- 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/aws-nuke/index.js +44 -24
- package/lib/scripts/index.js +1 -1
- package/lib/stacks/organization/management/management-data-exports-stack.js +1 -1
- package/lib/stacks/organization/management/management-global-iam-identity-center-stack.js +1 -1
- package/lib/stacks/organization/management/management-global-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/shared-services/finops/global-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/API.md
CHANGED
|
@@ -23546,6 +23546,7 @@ const dataLandingZoneProps: DataLandingZoneProps = { ... }
|
|
|
23546
23546
|
| <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.regions">regions</a></code> | <code><a href="#aws-data-landing-zone.DlzRegions">DlzRegions</a></code> | *No description.* |
|
|
23547
23547
|
| <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.securityHubNotifications">securityHubNotifications</a></code> | <code><a href="#aws-data-landing-zone.SecurityHubNotification">SecurityHubNotification</a>[]</code> | *No description.* |
|
|
23548
23548
|
| <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.additionalMandatoryTags">additionalMandatoryTags</a></code> | <code><a href="#aws-data-landing-zone.DlzTag">DlzTag</a>[]</code> | Extra tags appended to the five baseline mandatory tags (Owner, Project, Environment, CostCenter, Name). |
|
|
23549
|
+
| <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.awsNuke">awsNuke</a></code> | <code><a href="#aws-data-landing-zone.DlzAwsNukeProps">DlzAwsNukeProps</a></code> | Settings for the `awsNuke` script. |
|
|
23549
23550
|
| <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.defaultNotification">defaultNotification</a></code> | <code><a href="#aws-data-landing-zone.NotificationDetailsProps">NotificationDetailsProps</a></code> | Default notification settings for the organization. |
|
|
23550
23551
|
| <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.deploymentPlatform">deploymentPlatform</a></code> | <code><a href="#aws-data-landing-zone.DeploymentPlatform">DeploymentPlatform</a></code> | *No description.* |
|
|
23551
23552
|
| <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.finOps">finOps</a></code> | <code><a href="#aws-data-landing-zone.DlzFinOpsProps">DlzFinOpsProps</a></code> | Cost-management capabilities. |
|
|
@@ -23645,6 +23646,19 @@ Name=dlz.
|
|
|
23645
23646
|
|
|
23646
23647
|
---
|
|
23647
23648
|
|
|
23649
|
+
##### `awsNuke`<sup>Optional</sup> <a name="awsNuke" id="aws-data-landing-zone.DataLandingZoneProps.property.awsNuke"></a>
|
|
23650
|
+
|
|
23651
|
+
```typescript
|
|
23652
|
+
public readonly awsNuke: DlzAwsNukeProps;
|
|
23653
|
+
```
|
|
23654
|
+
|
|
23655
|
+
- *Type:* <a href="#aws-data-landing-zone.DlzAwsNukeProps">DlzAwsNukeProps</a>
|
|
23656
|
+
- *Default:* keep only the Control Tower, CDK bootstrap and DLZ resources
|
|
23657
|
+
|
|
23658
|
+
Settings for the `awsNuke` script.
|
|
23659
|
+
|
|
23660
|
+
---
|
|
23661
|
+
|
|
23648
23662
|
##### `defaultNotification`<sup>Optional</sup> <a name="defaultNotification" id="aws-data-landing-zone.DataLandingZoneProps.property.defaultNotification"></a>
|
|
23649
23663
|
|
|
23650
23664
|
```typescript
|
|
@@ -24393,6 +24407,104 @@ Mutually exclusive with `dimension`.
|
|
|
24393
24407
|
|
|
24394
24408
|
---
|
|
24395
24409
|
|
|
24410
|
+
### DlzAwsNukeFilter <a name="DlzAwsNukeFilter" id="aws-data-landing-zone.DlzAwsNukeFilter"></a>
|
|
24411
|
+
|
|
24412
|
+
An AWS Nuke filter that applies to all resource types.
|
|
24413
|
+
|
|
24414
|
+
AWS Nuke keeps the resources that match it.
|
|
24415
|
+
See https://ekristen.github.io/aws-nuke/config-filtering/
|
|
24416
|
+
|
|
24417
|
+
#### Initializer <a name="Initializer" id="aws-data-landing-zone.DlzAwsNukeFilter.Initializer"></a>
|
|
24418
|
+
|
|
24419
|
+
```typescript
|
|
24420
|
+
import { DlzAwsNukeFilter } from 'aws-data-landing-zone'
|
|
24421
|
+
|
|
24422
|
+
const dlzAwsNukeFilter: DlzAwsNukeFilter = { ... }
|
|
24423
|
+
```
|
|
24424
|
+
|
|
24425
|
+
#### Properties <a name="Properties" id="Properties"></a>
|
|
24426
|
+
|
|
24427
|
+
| **Name** | **Type** | **Description** |
|
|
24428
|
+
| --- | --- | --- |
|
|
24429
|
+
| <code><a href="#aws-data-landing-zone.DlzAwsNukeFilter.property.value">value</a></code> | <code>string</code> | The value to compare with. |
|
|
24430
|
+
| <code><a href="#aws-data-landing-zone.DlzAwsNukeFilter.property.property">property</a></code> | <code>string</code> | The resource property to compare, for example `tag:Owner`. |
|
|
24431
|
+
| <code><a href="#aws-data-landing-zone.DlzAwsNukeFilter.property.type">type</a></code> | <code><a href="#aws-data-landing-zone.DlzAwsNukeFilterType">DlzAwsNukeFilterType</a></code> | How to compare the value. |
|
|
24432
|
+
|
|
24433
|
+
---
|
|
24434
|
+
|
|
24435
|
+
##### `value`<sup>Required</sup> <a name="value" id="aws-data-landing-zone.DlzAwsNukeFilter.property.value"></a>
|
|
24436
|
+
|
|
24437
|
+
```typescript
|
|
24438
|
+
public readonly value: string;
|
|
24439
|
+
```
|
|
24440
|
+
|
|
24441
|
+
- *Type:* string
|
|
24442
|
+
|
|
24443
|
+
The value to compare with.
|
|
24444
|
+
|
|
24445
|
+
---
|
|
24446
|
+
|
|
24447
|
+
##### `property`<sup>Optional</sup> <a name="property" id="aws-data-landing-zone.DlzAwsNukeFilter.property.property"></a>
|
|
24448
|
+
|
|
24449
|
+
```typescript
|
|
24450
|
+
public readonly property: string;
|
|
24451
|
+
```
|
|
24452
|
+
|
|
24453
|
+
- *Type:* string
|
|
24454
|
+
- *Default:* the resource identifier that AWS Nuke prints, such as the role or stack name
|
|
24455
|
+
|
|
24456
|
+
The resource property to compare, for example `tag:Owner`.
|
|
24457
|
+
|
|
24458
|
+
---
|
|
24459
|
+
|
|
24460
|
+
##### `type`<sup>Optional</sup> <a name="type" id="aws-data-landing-zone.DlzAwsNukeFilter.property.type"></a>
|
|
24461
|
+
|
|
24462
|
+
```typescript
|
|
24463
|
+
public readonly type: DlzAwsNukeFilterType;
|
|
24464
|
+
```
|
|
24465
|
+
|
|
24466
|
+
- *Type:* <a href="#aws-data-landing-zone.DlzAwsNukeFilterType">DlzAwsNukeFilterType</a>
|
|
24467
|
+
- *Default:* DlzAwsNukeFilterType.EXACT
|
|
24468
|
+
|
|
24469
|
+
How to compare the value.
|
|
24470
|
+
|
|
24471
|
+
---
|
|
24472
|
+
|
|
24473
|
+
### DlzAwsNukeProps <a name="DlzAwsNukeProps" id="aws-data-landing-zone.DlzAwsNukeProps"></a>
|
|
24474
|
+
|
|
24475
|
+
#### Initializer <a name="Initializer" id="aws-data-landing-zone.DlzAwsNukeProps.Initializer"></a>
|
|
24476
|
+
|
|
24477
|
+
```typescript
|
|
24478
|
+
import { DlzAwsNukeProps } from 'aws-data-landing-zone'
|
|
24479
|
+
|
|
24480
|
+
const dlzAwsNukeProps: DlzAwsNukeProps = { ... }
|
|
24481
|
+
```
|
|
24482
|
+
|
|
24483
|
+
#### Properties <a name="Properties" id="Properties"></a>
|
|
24484
|
+
|
|
24485
|
+
| **Name** | **Type** | **Description** |
|
|
24486
|
+
| --- | --- | --- |
|
|
24487
|
+
| <code><a href="#aws-data-landing-zone.DlzAwsNukeProps.property.filters">filters</a></code> | <code><a href="#aws-data-landing-zone.DlzAwsNukeFilter">DlzAwsNukeFilter</a>[]</code> | Extra AWS Nuke filters for Workloads OU accounts. |
|
|
24488
|
+
|
|
24489
|
+
---
|
|
24490
|
+
|
|
24491
|
+
##### `filters`<sup>Optional</sup> <a name="filters" id="aws-data-landing-zone.DlzAwsNukeProps.property.filters"></a>
|
|
24492
|
+
|
|
24493
|
+
```typescript
|
|
24494
|
+
public readonly filters: DlzAwsNukeFilter[];
|
|
24495
|
+
```
|
|
24496
|
+
|
|
24497
|
+
- *Type:* <a href="#aws-data-landing-zone.DlzAwsNukeFilter">DlzAwsNukeFilter</a>[]
|
|
24498
|
+
- *Default:* no extra filters
|
|
24499
|
+
|
|
24500
|
+
Extra AWS Nuke filters for Workloads OU accounts.
|
|
24501
|
+
|
|
24502
|
+
AWS Nuke keeps every resource that matches
|
|
24503
|
+
a filter. Use them for resources your own stacks or StackSets deploy into workload accounts,
|
|
24504
|
+
next to the Control Tower, CDK bootstrap and DLZ resources that are always kept.
|
|
24505
|
+
|
|
24506
|
+
---
|
|
24507
|
+
|
|
24396
24508
|
### DlzBudgetProps <a name="DlzBudgetProps" id="aws-data-landing-zone.DlzBudgetProps"></a>
|
|
24397
24509
|
|
|
24398
24510
|
#### Initializer <a name="Initializer" id="aws-data-landing-zone.DlzBudgetProps.Initializer"></a>
|
|
@@ -35256,6 +35368,39 @@ public readonly reportResource: ReportResource;
|
|
|
35256
35368
|
---
|
|
35257
35369
|
|
|
35258
35370
|
|
|
35371
|
+
### DlzAwsNukeFilterType <a name="DlzAwsNukeFilterType" id="aws-data-landing-zone.DlzAwsNukeFilterType"></a>
|
|
35372
|
+
|
|
35373
|
+
#### Members <a name="Members" id="Members"></a>
|
|
35374
|
+
|
|
35375
|
+
| **Name** | **Description** |
|
|
35376
|
+
| --- | --- |
|
|
35377
|
+
| <code><a href="#aws-data-landing-zone.DlzAwsNukeFilterType.EXACT">EXACT</a></code> | *No description.* |
|
|
35378
|
+
| <code><a href="#aws-data-landing-zone.DlzAwsNukeFilterType.CONTAINS">CONTAINS</a></code> | *No description.* |
|
|
35379
|
+
| <code><a href="#aws-data-landing-zone.DlzAwsNukeFilterType.GLOB">GLOB</a></code> | *No description.* |
|
|
35380
|
+
| <code><a href="#aws-data-landing-zone.DlzAwsNukeFilterType.REGEX">REGEX</a></code> | *No description.* |
|
|
35381
|
+
|
|
35382
|
+
---
|
|
35383
|
+
|
|
35384
|
+
##### `EXACT` <a name="EXACT" id="aws-data-landing-zone.DlzAwsNukeFilterType.EXACT"></a>
|
|
35385
|
+
|
|
35386
|
+
---
|
|
35387
|
+
|
|
35388
|
+
|
|
35389
|
+
##### `CONTAINS` <a name="CONTAINS" id="aws-data-landing-zone.DlzAwsNukeFilterType.CONTAINS"></a>
|
|
35390
|
+
|
|
35391
|
+
---
|
|
35392
|
+
|
|
35393
|
+
|
|
35394
|
+
##### `GLOB` <a name="GLOB" id="aws-data-landing-zone.DlzAwsNukeFilterType.GLOB"></a>
|
|
35395
|
+
|
|
35396
|
+
---
|
|
35397
|
+
|
|
35398
|
+
|
|
35399
|
+
##### `REGEX` <a name="REGEX" id="aws-data-landing-zone.DlzAwsNukeFilterType.REGEX"></a>
|
|
35400
|
+
|
|
35401
|
+
---
|
|
35402
|
+
|
|
35403
|
+
|
|
35259
35404
|
### DlzControlTowerControlFormat <a name="DlzControlTowerControlFormat" id="aws-data-landing-zone.DlzControlTowerControlFormat"></a>
|
|
35260
35405
|
|
|
35261
35406
|
#### Members <a name="Members" id="Members"></a>
|
|
@@ -23550,6 +23550,7 @@ const dataLandingZoneProps: DataLandingZoneProps = { ... }
|
|
|
23550
23550
|
| <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.regions">regions</a></code> | <code><a href="#aws-data-landing-zone.DlzRegions">DlzRegions</a></code> | *No description.* |
|
|
23551
23551
|
| <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.securityHubNotifications">securityHubNotifications</a></code> | <code><a href="#aws-data-landing-zone.SecurityHubNotification">SecurityHubNotification</a>[]</code> | *No description.* |
|
|
23552
23552
|
| <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.additionalMandatoryTags">additionalMandatoryTags</a></code> | <code><a href="#aws-data-landing-zone.DlzTag">DlzTag</a>[]</code> | Extra tags appended to the five baseline mandatory tags (Owner, Project, Environment, CostCenter, Name). |
|
|
23553
|
+
| <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.awsNuke">awsNuke</a></code> | <code><a href="#aws-data-landing-zone.DlzAwsNukeProps">DlzAwsNukeProps</a></code> | Settings for the `awsNuke` script. |
|
|
23553
23554
|
| <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.defaultNotification">defaultNotification</a></code> | <code><a href="#aws-data-landing-zone.NotificationDetailsProps">NotificationDetailsProps</a></code> | Default notification settings for the organization. |
|
|
23554
23555
|
| <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.deploymentPlatform">deploymentPlatform</a></code> | <code><a href="#aws-data-landing-zone.DeploymentPlatform">DeploymentPlatform</a></code> | *No description.* |
|
|
23555
23556
|
| <code><a href="#aws-data-landing-zone.DataLandingZoneProps.property.finOps">finOps</a></code> | <code><a href="#aws-data-landing-zone.DlzFinOpsProps">DlzFinOpsProps</a></code> | Cost-management capabilities. |
|
|
@@ -23649,6 +23650,19 @@ Name=dlz.
|
|
|
23649
23650
|
|
|
23650
23651
|
---
|
|
23651
23652
|
|
|
23653
|
+
##### `awsNuke`<sup>Optional</sup> <a name="awsNuke" id="aws-data-landing-zone.DataLandingZoneProps.property.awsNuke"></a>
|
|
23654
|
+
|
|
23655
|
+
```typescript
|
|
23656
|
+
public readonly awsNuke: DlzAwsNukeProps;
|
|
23657
|
+
```
|
|
23658
|
+
|
|
23659
|
+
- *Type:* <a href="#aws-data-landing-zone.DlzAwsNukeProps">DlzAwsNukeProps</a>
|
|
23660
|
+
- *Default:* keep only the Control Tower, CDK bootstrap and DLZ resources
|
|
23661
|
+
|
|
23662
|
+
Settings for the `awsNuke` script.
|
|
23663
|
+
|
|
23664
|
+
---
|
|
23665
|
+
|
|
23652
23666
|
##### `defaultNotification`<sup>Optional</sup> <a name="defaultNotification" id="aws-data-landing-zone.DataLandingZoneProps.property.defaultNotification"></a>
|
|
23653
23667
|
|
|
23654
23668
|
```typescript
|
|
@@ -24397,6 +24411,104 @@ Mutually exclusive with `dimension`.
|
|
|
24397
24411
|
|
|
24398
24412
|
---
|
|
24399
24413
|
|
|
24414
|
+
### DlzAwsNukeFilter <a name="DlzAwsNukeFilter" id="aws-data-landing-zone.DlzAwsNukeFilter"></a>
|
|
24415
|
+
|
|
24416
|
+
An AWS Nuke filter that applies to all resource types.
|
|
24417
|
+
|
|
24418
|
+
AWS Nuke keeps the resources that match it.
|
|
24419
|
+
See https://ekristen.github.io/aws-nuke/config-filtering/
|
|
24420
|
+
|
|
24421
|
+
#### Initializer <a name="Initializer" id="aws-data-landing-zone.DlzAwsNukeFilter.Initializer"></a>
|
|
24422
|
+
|
|
24423
|
+
```typescript
|
|
24424
|
+
import { DlzAwsNukeFilter } from 'aws-data-landing-zone'
|
|
24425
|
+
|
|
24426
|
+
const dlzAwsNukeFilter: DlzAwsNukeFilter = { ... }
|
|
24427
|
+
```
|
|
24428
|
+
|
|
24429
|
+
#### Properties <a name="Properties" id="Properties"></a>
|
|
24430
|
+
|
|
24431
|
+
| **Name** | **Type** | **Description** |
|
|
24432
|
+
| --- | --- | --- |
|
|
24433
|
+
| <code><a href="#aws-data-landing-zone.DlzAwsNukeFilter.property.value">value</a></code> | <code>string</code> | The value to compare with. |
|
|
24434
|
+
| <code><a href="#aws-data-landing-zone.DlzAwsNukeFilter.property.property">property</a></code> | <code>string</code> | The resource property to compare, for example `tag:Owner`. |
|
|
24435
|
+
| <code><a href="#aws-data-landing-zone.DlzAwsNukeFilter.property.type">type</a></code> | <code><a href="#aws-data-landing-zone.DlzAwsNukeFilterType">DlzAwsNukeFilterType</a></code> | How to compare the value. |
|
|
24436
|
+
|
|
24437
|
+
---
|
|
24438
|
+
|
|
24439
|
+
##### `value`<sup>Required</sup> <a name="value" id="aws-data-landing-zone.DlzAwsNukeFilter.property.value"></a>
|
|
24440
|
+
|
|
24441
|
+
```typescript
|
|
24442
|
+
public readonly value: string;
|
|
24443
|
+
```
|
|
24444
|
+
|
|
24445
|
+
- *Type:* string
|
|
24446
|
+
|
|
24447
|
+
The value to compare with.
|
|
24448
|
+
|
|
24449
|
+
---
|
|
24450
|
+
|
|
24451
|
+
##### `property`<sup>Optional</sup> <a name="property" id="aws-data-landing-zone.DlzAwsNukeFilter.property.property"></a>
|
|
24452
|
+
|
|
24453
|
+
```typescript
|
|
24454
|
+
public readonly property: string;
|
|
24455
|
+
```
|
|
24456
|
+
|
|
24457
|
+
- *Type:* string
|
|
24458
|
+
- *Default:* the resource identifier that AWS Nuke prints, such as the role or stack name
|
|
24459
|
+
|
|
24460
|
+
The resource property to compare, for example `tag:Owner`.
|
|
24461
|
+
|
|
24462
|
+
---
|
|
24463
|
+
|
|
24464
|
+
##### `type`<sup>Optional</sup> <a name="type" id="aws-data-landing-zone.DlzAwsNukeFilter.property.type"></a>
|
|
24465
|
+
|
|
24466
|
+
```typescript
|
|
24467
|
+
public readonly type: DlzAwsNukeFilterType;
|
|
24468
|
+
```
|
|
24469
|
+
|
|
24470
|
+
- *Type:* <a href="#aws-data-landing-zone.DlzAwsNukeFilterType">DlzAwsNukeFilterType</a>
|
|
24471
|
+
- *Default:* DlzAwsNukeFilterType.EXACT
|
|
24472
|
+
|
|
24473
|
+
How to compare the value.
|
|
24474
|
+
|
|
24475
|
+
---
|
|
24476
|
+
|
|
24477
|
+
### DlzAwsNukeProps <a name="DlzAwsNukeProps" id="aws-data-landing-zone.DlzAwsNukeProps"></a>
|
|
24478
|
+
|
|
24479
|
+
#### Initializer <a name="Initializer" id="aws-data-landing-zone.DlzAwsNukeProps.Initializer"></a>
|
|
24480
|
+
|
|
24481
|
+
```typescript
|
|
24482
|
+
import { DlzAwsNukeProps } from 'aws-data-landing-zone'
|
|
24483
|
+
|
|
24484
|
+
const dlzAwsNukeProps: DlzAwsNukeProps = { ... }
|
|
24485
|
+
```
|
|
24486
|
+
|
|
24487
|
+
#### Properties <a name="Properties" id="Properties"></a>
|
|
24488
|
+
|
|
24489
|
+
| **Name** | **Type** | **Description** |
|
|
24490
|
+
| --- | --- | --- |
|
|
24491
|
+
| <code><a href="#aws-data-landing-zone.DlzAwsNukeProps.property.filters">filters</a></code> | <code><a href="#aws-data-landing-zone.DlzAwsNukeFilter">DlzAwsNukeFilter</a>[]</code> | Extra AWS Nuke filters for Workloads OU accounts. |
|
|
24492
|
+
|
|
24493
|
+
---
|
|
24494
|
+
|
|
24495
|
+
##### `filters`<sup>Optional</sup> <a name="filters" id="aws-data-landing-zone.DlzAwsNukeProps.property.filters"></a>
|
|
24496
|
+
|
|
24497
|
+
```typescript
|
|
24498
|
+
public readonly filters: DlzAwsNukeFilter[];
|
|
24499
|
+
```
|
|
24500
|
+
|
|
24501
|
+
- *Type:* <a href="#aws-data-landing-zone.DlzAwsNukeFilter">DlzAwsNukeFilter</a>[]
|
|
24502
|
+
- *Default:* no extra filters
|
|
24503
|
+
|
|
24504
|
+
Extra AWS Nuke filters for Workloads OU accounts.
|
|
24505
|
+
|
|
24506
|
+
AWS Nuke keeps every resource that matches
|
|
24507
|
+
a filter. Use them for resources your own stacks or StackSets deploy into workload accounts,
|
|
24508
|
+
next to the Control Tower, CDK bootstrap and DLZ resources that are always kept.
|
|
24509
|
+
|
|
24510
|
+
---
|
|
24511
|
+
|
|
24400
24512
|
### DlzBudgetProps <a name="DlzBudgetProps" id="aws-data-landing-zone.DlzBudgetProps"></a>
|
|
24401
24513
|
|
|
24402
24514
|
#### Initializer <a name="Initializer" id="aws-data-landing-zone.DlzBudgetProps.Initializer"></a>
|
|
@@ -35260,6 +35372,39 @@ public readonly reportResource: ReportResource;
|
|
|
35260
35372
|
---
|
|
35261
35373
|
|
|
35262
35374
|
|
|
35375
|
+
### DlzAwsNukeFilterType <a name="DlzAwsNukeFilterType" id="aws-data-landing-zone.DlzAwsNukeFilterType"></a>
|
|
35376
|
+
|
|
35377
|
+
#### Members <a name="Members" id="Members"></a>
|
|
35378
|
+
|
|
35379
|
+
| **Name** | **Description** |
|
|
35380
|
+
| --- | --- |
|
|
35381
|
+
| <code><a href="#aws-data-landing-zone.DlzAwsNukeFilterType.EXACT">EXACT</a></code> | *No description.* |
|
|
35382
|
+
| <code><a href="#aws-data-landing-zone.DlzAwsNukeFilterType.CONTAINS">CONTAINS</a></code> | *No description.* |
|
|
35383
|
+
| <code><a href="#aws-data-landing-zone.DlzAwsNukeFilterType.GLOB">GLOB</a></code> | *No description.* |
|
|
35384
|
+
| <code><a href="#aws-data-landing-zone.DlzAwsNukeFilterType.REGEX">REGEX</a></code> | *No description.* |
|
|
35385
|
+
|
|
35386
|
+
---
|
|
35387
|
+
|
|
35388
|
+
##### `EXACT` <a name="EXACT" id="aws-data-landing-zone.DlzAwsNukeFilterType.EXACT"></a>
|
|
35389
|
+
|
|
35390
|
+
---
|
|
35391
|
+
|
|
35392
|
+
|
|
35393
|
+
##### `CONTAINS` <a name="CONTAINS" id="aws-data-landing-zone.DlzAwsNukeFilterType.CONTAINS"></a>
|
|
35394
|
+
|
|
35395
|
+
---
|
|
35396
|
+
|
|
35397
|
+
|
|
35398
|
+
##### `GLOB` <a name="GLOB" id="aws-data-landing-zone.DlzAwsNukeFilterType.GLOB"></a>
|
|
35399
|
+
|
|
35400
|
+
---
|
|
35401
|
+
|
|
35402
|
+
|
|
35403
|
+
##### `REGEX` <a name="REGEX" id="aws-data-landing-zone.DlzAwsNukeFilterType.REGEX"></a>
|
|
35404
|
+
|
|
35405
|
+
---
|
|
35406
|
+
|
|
35407
|
+
|
|
35263
35408
|
### DlzControlTowerControlFormat <a name="DlzControlTowerControlFormat" id="aws-data-landing-zone.DlzControlTowerControlFormat"></a>
|
|
35264
35409
|
|
|
35265
35410
|
#### Members <a name="Members" id="Members"></a>
|
|
@@ -106,7 +106,8 @@ Usage is demonstrated below for both TypeScript and Python.
|
|
|
106
106
|
- `awsNuke(props: DataLandingZoneProps, relativeDir: string, awsNukeBinary: string, accountName: string, dryRun: boolean = true): Promise<void>;`
|
|
107
107
|
Runs AWS Nuke on the specified account. If the account is in the Suspended OU, it will delete all resources but
|
|
108
108
|
EXCLUDE the ControlTower and CDK Bootstrap resources. If the account is in the Workloads OU, it will additionally
|
|
109
|
-
EXCLUDE the DLZ resources.
|
|
109
|
+
EXCLUDE the DLZ resources and the resources that match `props.awsNuke.filters`, and it refuses to run without
|
|
110
|
+
a dry run on a `PRODUCTION` account. See the [AWS Nuke SOP](/sop/aws-nuke). Parameters:
|
|
110
111
|
- `props` - The DLZ configuration.
|
|
111
112
|
- `relativeDir` - The directory of the script, used to build the full path to the AWS Nuke binary.
|
|
112
113
|
- `awsNukeBinary` - The path of the AWS Nuke binary, relative to the `relativeDir` parameter.
|
|
@@ -166,7 +167,8 @@ Usage is demonstrated below for both TypeScript and Python.
|
|
|
166
167
|
- `aws_nuke(props: DataLandingZoneProps, relative_dir: str, aws_nuke_binary: str, account_name: str, dry_run: bool = True) -> None:`
|
|
167
168
|
Runs AWS Nuke on the specified account. If the account is in the Suspended OU, it will delete all resources but
|
|
168
169
|
EXCLUDE the ControlTower and CDK Bootstrap resources. If the account is in the Workloads OU, it will additionally
|
|
169
|
-
EXCLUDE the DLZ resources.
|
|
170
|
+
EXCLUDE the DLZ resources and the resources that match `props.aws_nuke.filters`, and it refuses to run without
|
|
171
|
+
a dry run on a `PRODUCTION` account. See the [AWS Nuke SOP](/sop/aws-nuke). Parameters:
|
|
170
172
|
- `props` - The DLZ configuration.
|
|
171
173
|
- `relative_dir` - The directory of the script, used to build the full path to the AWS Nuke binary.
|
|
172
174
|
- `aws_nuke_binary` - The path of the AWS Nuke binary, relative to the `relative_dir` parameter.
|
|
@@ -17,6 +17,7 @@ The generated configuration file varies based on the account's Organizational Un
|
|
|
17
17
|
- ControlTower resources
|
|
18
18
|
- CDK Bootstrap resources
|
|
19
19
|
- DLZ-defined resources
|
|
20
|
+
- Resources that match the `awsNuke.filters` in your DLZ config, see [Keep your own resources](#keep-your-own-resources)
|
|
20
21
|
- **Suspended OU**: Will delete all resources except:
|
|
21
22
|
- ControlTower resources
|
|
22
23
|
- CDK Bootstrap resources
|
|
@@ -24,6 +25,57 @@ The generated configuration file varies based on the account's Organizational Un
|
|
|
24
25
|
Refer to the [Account Management / Accounts](/components/account-management/accounts#suspended-ou) page for instructions
|
|
25
26
|
on moving an account from the Workloads OU to the Suspended OU.
|
|
26
27
|
|
|
28
|
+
The script refuses to delete resources in a Workloads OU account of type `PRODUCTION`. A dry run still works. To empty
|
|
29
|
+
a production account, move it to the Suspended OU first.
|
|
30
|
+
|
|
31
|
+
The script never deletes the GuardDuty detector, because the DLZ GuardDuty organization setup manages it and member
|
|
32
|
+
accounts can not delete it. It also skips resource types of retired or closed AWS services, whose listing only fails.
|
|
33
|
+
|
|
34
|
+
Use AWS Nuke v3.68.3 or later. Older versions try to delete the `default.iam-user` and `default.iam-user-group`
|
|
35
|
+
ElastiCache resources that AWS creates in every region, which always fails.
|
|
36
|
+
|
|
37
|
+
## Keep your own resources
|
|
38
|
+
|
|
39
|
+
Stacks and StackSets that you deploy into workload accounts outside the DLZ are deleted unless you add a filter for
|
|
40
|
+
them. AWS Nuke keeps every resource that matches one of the `awsNuke.filters` in your DLZ config. Without a `property`,
|
|
41
|
+
a filter compares against the resource identifier that AWS Nuke prints in its output, such as the role or stack name.
|
|
42
|
+
See the [AWS Nuke filtering docs](https://ekristen.github.io/aws-nuke/config-filtering/) for how each type matches.
|
|
43
|
+
|
|
44
|
+
<DualCode>
|
|
45
|
+
<Fragment slot="ts">
|
|
46
|
+
```ts
|
|
47
|
+
awsNuke: {
|
|
48
|
+
filters: [
|
|
49
|
+
{ type: DlzAwsNukeFilterType.GLOB, value: 'security-baseline-*' },
|
|
50
|
+
{ property: 'tag:Owner', value: 'security' },
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
```
|
|
54
|
+
</Fragment>
|
|
55
|
+
<Fragment slot="python">
|
|
56
|
+
```python
|
|
57
|
+
aws_nuke=dlz.DlzAwsNukeProps(
|
|
58
|
+
filters=[
|
|
59
|
+
dlz.DlzAwsNukeFilter(type=dlz.DlzAwsNukeFilterType.GLOB, value="security-baseline-*"),
|
|
60
|
+
dlz.DlzAwsNukeFilter(property="tag:Owner", value="security"),
|
|
61
|
+
],
|
|
62
|
+
),
|
|
63
|
+
```
|
|
64
|
+
</Fragment>
|
|
65
|
+
</DualCode>
|
|
66
|
+
|
|
67
|
+
Run a dry run and check that these resources show as `filtered by config` before you run it with `--no-dry-run`.
|
|
68
|
+
|
|
69
|
+
## Resources to remove by hand
|
|
70
|
+
|
|
71
|
+
AWS Nuke can not remove these resources, and the run fails while they exist:
|
|
72
|
+
|
|
73
|
+
- **A CloudFront distribution on a flat-rate pricing plan.** Cancel the pricing plan in the CloudFront console, then run
|
|
74
|
+
AWS Nuke again. The `CreatedByCloudFront-*` WAF web ACL of that distribution is deleted after the distribution is gone.
|
|
75
|
+
|
|
76
|
+
When a run fails, the script throws an error that names the account. The AWS Nuke output above it shows the cause,
|
|
77
|
+
such as the resources it could not remove, each followed by the AWS error.
|
|
78
|
+
|
|
27
79
|
## Usage
|
|
28
80
|
|
|
29
81
|
The AWS Nuke script can be used in a similar manner to the suggested script usage described in the
|
|
@@ -188,7 +240,7 @@ jobs:
|
|
|
188
240
|
- name: Download the aws-nuke binary
|
|
189
241
|
run: |
|
|
190
242
|
cd scripts
|
|
191
|
-
curl -L -o aws-nuke.tar.gz https://github.com/ekristen/aws-nuke/releases/download/v3.
|
|
243
|
+
curl -L -o aws-nuke.tar.gz https://github.com/ekristen/aws-nuke/releases/download/v3.69.1/aws-nuke-v3.69.1-linux-amd64.tar.gz
|
|
192
244
|
tar -xzf aws-nuke.tar.gz
|
|
193
245
|
- name: Run AWS Nuke
|
|
194
246
|
run: npm run aws-nuke -- ${{ inputs.account-name }} ${{ inputs.dry-run == 'false' && '--no-dry-run' || '' }}
|
|
@@ -38,7 +38,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
|
|
|
38
38
|
const aws_cdk_lib_1 = require("aws-cdk-lib");
|
|
39
39
|
const chatbot = __importStar(require("aws-cdk-lib/aws-chatbot"));
|
|
40
40
|
class AccountChatbots {
|
|
41
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.AccountChatbots", version: "0.6.
|
|
41
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.AccountChatbots", version: "0.6.18" };
|
|
42
42
|
static slackChatBots = {};
|
|
43
43
|
static existsSlackChannel(scope, chatbotProps) {
|
|
44
44
|
const account = aws_cdk_lib_1.Stack.of(scope).account;
|
|
@@ -24,7 +24,7 @@ __exportStar(require("./account-budgets-types"), exports);
|
|
|
24
24
|
* roll-ups. Composes the `DlzBudget` primitive.
|
|
25
25
|
*/
|
|
26
26
|
class DlzAccountBudgets extends constructs_1.Construct {
|
|
27
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzAccountBudgets", version: "0.6.
|
|
27
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzAccountBudgets", version: "0.6.18" };
|
|
28
28
|
constructor(scope, id, props, accounts, budgetSnsCache) {
|
|
29
29
|
super(scope, id);
|
|
30
30
|
for (const account of accounts) {
|
|
@@ -41,7 +41,7 @@ const sns = __importStar(require("aws-cdk-lib/aws-sns"));
|
|
|
41
41
|
const subscriptions = __importStar(require("aws-cdk-lib/aws-sns-subscriptions"));
|
|
42
42
|
const account_chatbots_1 = require("../account-chatbots");
|
|
43
43
|
class DlzBudget {
|
|
44
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzBudget", version: "0.6.
|
|
44
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzBudget", version: "0.6.18" };
|
|
45
45
|
cfnBudget;
|
|
46
46
|
constructor(scope, id, props, budgetSnsCache) {
|
|
47
47
|
let costFilters = undefined;
|
|
@@ -41,7 +41,7 @@ const controls_1 = require("./controls");
|
|
|
41
41
|
const data_landing_zone_types_1 = require("../../data-landing-zone-types");
|
|
42
42
|
const lib_1 = require("../../lib");
|
|
43
43
|
class DlzControlTowerEnabledControl {
|
|
44
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzControlTowerEnabledControl", version: "0.6.
|
|
44
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzControlTowerEnabledControl", version: "0.6.18" };
|
|
45
45
|
/**
|
|
46
46
|
* Check if the control can be applied to the Security OU. Only LEGACY controls can be applied to the Security OU.
|
|
47
47
|
*/
|
|
@@ -51,7 +51,7 @@ __exportStar(require("./cost-anomaly-detection-types"), exports);
|
|
|
51
51
|
* SNS topic.
|
|
52
52
|
*/
|
|
53
53
|
class DlzCostAnomalyDetection extends constructs_1.Construct {
|
|
54
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzCostAnomalyDetection", version: "0.6.
|
|
54
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzCostAnomalyDetection", version: "0.6.18" };
|
|
55
55
|
constructor(scope, id, props, budgetSnsCache) {
|
|
56
56
|
super(scope, id);
|
|
57
57
|
for (const monitor of props.monitors) {
|
|
@@ -49,7 +49,7 @@ const data_exports_types_1 = require("./data-exports-types");
|
|
|
49
49
|
* any export type may need.
|
|
50
50
|
*/
|
|
51
51
|
class DlzDataExport extends constructs_1.Construct {
|
|
52
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzDataExport", version: "0.6.
|
|
52
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzDataExport", version: "0.6.18" };
|
|
53
53
|
static fetchExportManagerCodeDirectory() {
|
|
54
54
|
return DlzDataExport.fetchLambdaDir('data-export-manager');
|
|
55
55
|
}
|
|
@@ -49,7 +49,7 @@ const constants_1 = require("../../stacks/organization/constants");
|
|
|
49
49
|
* encryption client-side.
|
|
50
50
|
*/
|
|
51
51
|
class DlzDataExportsAthena extends constructs_1.Construct {
|
|
52
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzDataExportsAthena", version: "0.6.
|
|
52
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzDataExportsAthena", version: "0.6.18" };
|
|
53
53
|
resultsBucket;
|
|
54
54
|
workgroup;
|
|
55
55
|
workgroupName;
|
|
@@ -52,7 +52,7 @@ const constants_1 = require("../../stacks/organization/constants");
|
|
|
52
52
|
* same database — cheaper than per-export crawlers with no Athena downside.
|
|
53
53
|
*/
|
|
54
54
|
class DlzDataExportsDataPlane extends constructs_1.Construct {
|
|
55
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzDataExportsDataPlane", version: "0.6.
|
|
55
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzDataExportsDataPlane", version: "0.6.18" };
|
|
56
56
|
bucket;
|
|
57
57
|
glueDatabase;
|
|
58
58
|
glueCrawler;
|
|
@@ -44,7 +44,7 @@ const constructs_1 = require("constructs");
|
|
|
44
44
|
* Delete is a no-op because the tags may be in use by consumers outside this stack.
|
|
45
45
|
*/
|
|
46
46
|
class DlzDataExportsTagActivation extends constructs_1.Construct {
|
|
47
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzDataExportsTagActivation", version: "0.6.
|
|
47
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzDataExportsTagActivation", version: "0.6.18" };
|
|
48
48
|
static fetchTagActivationCodeDirectory() {
|
|
49
49
|
const dir = path.join(__dirname, 'lambda', 'tag-activation');
|
|
50
50
|
if (fs.existsSync(path.join(dir, 'index.js'))) {
|
|
@@ -48,7 +48,7 @@ const lib_1 = require("../../lib");
|
|
|
48
48
|
* Must be deployed in the management account.
|
|
49
49
|
*/
|
|
50
50
|
class GuardDutyDelegatedAdmin extends constructs_1.Construct {
|
|
51
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.GuardDutyDelegatedAdmin", version: "0.6.
|
|
51
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.GuardDutyDelegatedAdmin", version: "0.6.18" };
|
|
52
52
|
static fetchCodeDirectory() {
|
|
53
53
|
const dir = path.join(__dirname, 'lambda', 'guardduty-delegated-admin');
|
|
54
54
|
if (fs.existsSync(path.join(dir, 'index.js'))) {
|
|
@@ -48,7 +48,7 @@ const lib_1 = require("../../lib");
|
|
|
48
48
|
* Must be deployed in the delegated admin (audit) account.
|
|
49
49
|
*/
|
|
50
50
|
class GuardDutyMemberFeatures extends constructs_1.Construct {
|
|
51
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.GuardDutyMemberFeatures", version: "0.6.
|
|
51
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.GuardDutyMemberFeatures", version: "0.6.18" };
|
|
52
52
|
static fetchCodeDirectory() {
|
|
53
53
|
const dir = path.join(__dirname, 'lambda', 'guardduty-member-features');
|
|
54
54
|
if (fs.existsSync(path.join(dir, 'index.js'))) {
|
|
@@ -48,7 +48,7 @@ const lib_1 = require("../../lib");
|
|
|
48
48
|
* Must be deployed in the delegated admin (audit) account.
|
|
49
49
|
*/
|
|
50
50
|
class GuardDutyOrgConfig extends constructs_1.Construct {
|
|
51
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.GuardDutyOrgConfig", version: "0.6.
|
|
51
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.GuardDutyOrgConfig", version: "0.6.18" };
|
|
52
52
|
static fetchCodeDirectory() {
|
|
53
53
|
const dir = path.join(__dirname, 'lambda', 'guardduty-org-config');
|
|
54
54
|
if (fs.existsSync(path.join(dir, 'index.js'))) {
|
|
@@ -46,7 +46,7 @@ const DEFAULTS = {
|
|
|
46
46
|
class DlzLakeFormation {
|
|
47
47
|
scope;
|
|
48
48
|
id;
|
|
49
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzLakeFormation", version: "0.6.
|
|
49
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzLakeFormation", version: "0.6.18" };
|
|
50
50
|
props;
|
|
51
51
|
account;
|
|
52
52
|
dataLakeSettings;
|
|
@@ -48,7 +48,7 @@ const lib_1 = require("../../lib");
|
|
|
48
48
|
* Must be deployed in the management account.
|
|
49
49
|
*/
|
|
50
50
|
class MacieDelegatedAdmin extends constructs_1.Construct {
|
|
51
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.MacieDelegatedAdmin", version: "0.6.
|
|
51
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.MacieDelegatedAdmin", version: "0.6.18" };
|
|
52
52
|
static fetchCodeDirectory() {
|
|
53
53
|
const dir = path.join(__dirname, 'lambda', 'macie-delegated-admin');
|
|
54
54
|
if (fs.existsSync(path.join(dir, 'index.js'))) {
|
|
@@ -47,7 +47,7 @@ const lib_1 = require("../../lib");
|
|
|
47
47
|
* Must be deployed in the delegated admin (audit) account.
|
|
48
48
|
*/
|
|
49
49
|
class MacieMembers extends constructs_1.Construct {
|
|
50
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.MacieMembers", version: "0.6.
|
|
50
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.MacieMembers", version: "0.6.18" };
|
|
51
51
|
static fetchCodeDirectory() {
|
|
52
52
|
const dir = path.join(__dirname, 'lambda', 'macie-members');
|
|
53
53
|
if (fs.existsSync(path.join(dir, 'index.js'))) {
|
|
@@ -47,7 +47,7 @@ const lib_1 = require("../../lib");
|
|
|
47
47
|
* Must be deployed in the delegated admin (audit) account.
|
|
48
48
|
*/
|
|
49
49
|
class MacieOrgConfig extends constructs_1.Construct {
|
|
50
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.MacieOrgConfig", version: "0.6.
|
|
50
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.MacieOrgConfig", version: "0.6.18" };
|
|
51
51
|
static fetchCodeDirectory() {
|
|
52
52
|
const dir = path.join(__dirname, 'lambda', 'macie-org-config');
|
|
53
53
|
if (fs.existsSync(path.join(dir, 'index.js'))) {
|
|
@@ -9,7 +9,7 @@ const dlz_ssm_reader_1 = require("./dlz-ssm-reader");
|
|
|
9
9
|
* of lookups to the same resource within a stack.
|
|
10
10
|
*/
|
|
11
11
|
class DlzSsmReaderStackCache {
|
|
12
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzSsmReaderStackCache", version: "0.6.
|
|
12
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzSsmReaderStackCache", version: "0.6.18" };
|
|
13
13
|
cachedValues = {};
|
|
14
14
|
/**
|
|
15
15
|
* Fetch type `always` will always fetch the value from SSM Parameter Store, this will produce a CDK diff every time.
|
|
@@ -39,7 +39,7 @@ const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
|
39
39
|
const cr = __importStar(require("aws-cdk-lib/custom-resources"));
|
|
40
40
|
const constants_1 = require("../../stacks/organization/constants");
|
|
41
41
|
class DlzSsmReader {
|
|
42
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzSsmReader", version: "0.6.
|
|
42
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzSsmReader", version: "0.6.18" };
|
|
43
43
|
/**
|
|
44
44
|
* Get the value of an SSM Parameter Store value.
|
|
45
45
|
*
|
|
@@ -5,7 +5,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
|
|
|
5
5
|
const cdk_express_pipeline_1 = require("cdk-express-pipeline");
|
|
6
6
|
const DlzStackNamePrefix = 'dlz-';
|
|
7
7
|
class DlzStack extends cdk_express_pipeline_1.ExpressStack {
|
|
8
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzStack", version: "0.6.
|
|
8
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzStack", version: "0.6.18" };
|
|
9
9
|
accountName;
|
|
10
10
|
accountId;
|
|
11
11
|
constructor(scope, props) {
|