Control Tower Controls
The Data Landing Zone supports specifying Control Tower Controls using the controlTowerControls property. This property
applies controls to the entire organization and all accounts within it.
The example below demonstrates how to use DLZ defaults and add the SH_SECRETS_MANAGER_3 control:
import {App} from 'aws-cdk-lib';import { DataLandingZone } from 'aws-data-landing-zone';
const app = new App();const dlz = new DataLandingZone(app, { organization: { root: { ... controls: [ ...Defaults.rootControls(), DlzControlTowerStandardControls.SH_SECRETS_MANAGER_3, ], }, ous: ... }, ...});import aws_cdk as cdkimport aws_data_landing_zone as dlz
app = cdk.App()dlz.DataLandingZone(app, organization=dlz.DLzOrganization( root=dlz.RootOptions( ... controls=[ *dlz.Defaults.root_controls(), dlz.DlzControlTowerStandardControls.SH_SECRETS_MANAGER_3 ] ), ...)Defaults
The Defaults.rootControls function returns a list of commonly used Control Tower Controls based on best practices
and data management. You can find a detailed list of these controls in the code
here.