Skip to content

Extending and Escape Hatches

The Data Landing Zone provides the flexibility to customize and extend stacks and their constructs. This section explains how to extend the Data Landing Zone and use escape hatches to modify default behavior.

Extending the Data Landing Zone

All stacks are accessible through the DLZ construct, enabling the addition or removal of constructs from these stacks.

Below is an example showing how to add an SNS topic to the management stack:

import {App} from 'aws-cdk-lib';
import { DataLandingZone } from 'aws-data-landing-zone';
const app = new App();
const dlz = new DataLandingZone(app, { ... });
const topic = new sns.Topic(dlz.managementStack, "new-topic", {
displayName: "new-topic",
topicName: "new-topic",
});

Escape Hatches

Constructs can be accessed and customized using common CDK escape hatches. These include Aspects, using the node property, and the addOverride method.