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
|
@@ -60,7 +60,7 @@ const scp_presets_1 = require("../organization-policies/scp-presets");
|
|
|
60
60
|
* Slack config for the whole org, instead of one per workload account × region.
|
|
61
61
|
*/
|
|
62
62
|
class DlzTagComplianceCentralAlert {
|
|
63
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzTagComplianceCentralAlert", version: "0.6.
|
|
63
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzTagComplianceCentralAlert", version: "0.6.18" };
|
|
64
64
|
/**
|
|
65
65
|
* Fixed name of the central event bus. Single-sourced so the workload-side forwarding rules can
|
|
66
66
|
* build the bus ARN (via `busArn`) without a cross-stack reference.
|
|
@@ -242,7 +242,7 @@ exports.DlzTagComplianceCentralAlert = DlzTagComplianceCentralAlert;
|
|
|
242
242
|
* in the management account (cross-account, cross-region — a single hop). No local SNS/Chatbot.
|
|
243
243
|
*/
|
|
244
244
|
class DlzTagComplianceForwardingRule {
|
|
245
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzTagComplianceForwardingRule", version: "0.6.
|
|
245
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzTagComplianceForwardingRule", version: "0.6.18" };
|
|
246
246
|
constructor(scope, id, props) {
|
|
247
247
|
const centralBus = events.EventBus.fromEventBusArn(scope, `${id}-central-bus`, props.centralBusArn);
|
|
248
248
|
// EventBridge assumes this role to PutEvents on the central bus. A dedicated role scoped to the
|
|
@@ -32,7 +32,7 @@ function findCidrOverlap(newCidr, existingCidrs) {
|
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
34
34
|
class DlzAccountNetworks {
|
|
35
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzAccountNetworks", version: "0.6.
|
|
35
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzAccountNetworks", version: "0.6.18" };
|
|
36
36
|
dlzAccountNetworks = [];
|
|
37
37
|
add(dlzAccount, networkEntityVpc) {
|
|
38
38
|
/* Only need to check VPC overlaps */
|
|
@@ -45,7 +45,7 @@ class DlzVpc {
|
|
|
45
45
|
dlzAccount;
|
|
46
46
|
dlzStack;
|
|
47
47
|
networkNats;
|
|
48
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzVpc", version: "0.6.
|
|
48
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzVpc", version: "0.6.18" };
|
|
49
49
|
networkEntityVpc;
|
|
50
50
|
constructor(dlzAccount, dlzStack, dlzVpc, networkNats) {
|
|
51
51
|
this.dlzAccount = dlzAccount;
|
|
@@ -4,7 +4,7 @@ exports.NetworkAddress = exports.NETWORK_ADDRESS_SEPARATOR = void 0;
|
|
|
4
4
|
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
|
|
5
5
|
exports.NETWORK_ADDRESS_SEPARATOR = '.';
|
|
6
6
|
class NetworkAddress {
|
|
7
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.NetworkAddress", version: "0.6.
|
|
7
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.NetworkAddress", version: "0.6.18" };
|
|
8
8
|
static fromString(props) {
|
|
9
9
|
const parts = props.split(exports.NETWORK_ADDRESS_SEPARATOR);
|
|
10
10
|
if (parts.length < 1 || parts.length > 5) {
|
|
@@ -43,7 +43,7 @@ const lib_1 = require("../../lib");
|
|
|
43
43
|
* Set the IAM Account Alias
|
|
44
44
|
*/
|
|
45
45
|
class IamAccountAlias extends constructs_1.Construct {
|
|
46
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.IamAccountAlias", version: "0.6.
|
|
46
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.IamAccountAlias", version: "0.6.18" };
|
|
47
47
|
static fetchCodeDirectory() {
|
|
48
48
|
return path.join(__dirname, 'lambda', 'iam-account-alias');
|
|
49
49
|
}
|
|
@@ -43,7 +43,7 @@ const lib_1 = require("../../lib");
|
|
|
43
43
|
* Set the IAM Password Policy
|
|
44
44
|
*/
|
|
45
45
|
class IamPasswordPolicy extends constructs_1.Construct {
|
|
46
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.IamPasswordPolicy", version: "0.6.
|
|
46
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.IamPasswordPolicy", version: "0.6.18" };
|
|
47
47
|
reportResource;
|
|
48
48
|
constructor(scope, id, props) {
|
|
49
49
|
super(scope, id);
|
|
@@ -42,7 +42,7 @@ const constructs_1 = require("constructs");
|
|
|
42
42
|
* A group of users in the IAM Identity Center
|
|
43
43
|
*/
|
|
44
44
|
class IamIdentityCenterGroup extends constructs_1.Construct {
|
|
45
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.IamIdentityCenterGroup", version: "0.6.
|
|
45
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.IamIdentityCenterGroup", version: "0.6.18" };
|
|
46
46
|
groupId;
|
|
47
47
|
constructor(scope, id, props) {
|
|
48
48
|
super(scope, id);
|
|
@@ -46,7 +46,7 @@ const constants_1 = require("../../stacks/organization/constants");
|
|
|
46
46
|
* The IAM Identity Center
|
|
47
47
|
*/
|
|
48
48
|
class IamIdentityCenter {
|
|
49
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.IamIdentityCenter", version: "0.6.
|
|
49
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.IamIdentityCenter", version: "0.6.18" };
|
|
50
50
|
constructor(dlzStack, organization, iamIdentityCenter) {
|
|
51
51
|
/* Get map of all accounts */
|
|
52
52
|
const allAccountIds = new Map();
|
|
@@ -42,7 +42,7 @@ const constructs_1 = require("constructs");
|
|
|
42
42
|
* A user in the IAM Identity Center
|
|
43
43
|
*/
|
|
44
44
|
class IdentityStoreUser extends constructs_1.Construct {
|
|
45
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.IdentityStoreUser", version: "0.6.
|
|
45
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.IdentityStoreUser", version: "0.6.18" };
|
|
46
46
|
static fetchCodeDirectory() {
|
|
47
47
|
return path.join(__dirname, 'identity-store-user-lambda');
|
|
48
48
|
}
|
|
@@ -47,7 +47,7 @@ const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
|
47
47
|
* @see https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html
|
|
48
48
|
*/
|
|
49
49
|
class ScpLimits {
|
|
50
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpLimits", version: "0.6.
|
|
50
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpLimits", version: "0.6.18" };
|
|
51
51
|
static MAX_BODY_SIZE = 10240;
|
|
52
52
|
static MAX_PER_TARGET = 10;
|
|
53
53
|
/**
|
|
@@ -85,7 +85,7 @@ class ScpLimits {
|
|
|
85
85
|
exports.ScpLimits = ScpLimits;
|
|
86
86
|
/** Merges SCP statements: baseline -> account-type -> per-account (additive only). */
|
|
87
87
|
class ScpMerge {
|
|
88
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpMerge", version: "0.6.
|
|
88
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpMerge", version: "0.6.18" };
|
|
89
89
|
static resolve(input) {
|
|
90
90
|
return [
|
|
91
91
|
...input.baseline,
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ControlTowerExemption = void 0;
|
|
4
4
|
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
|
|
5
5
|
class ControlTowerExemption {
|
|
6
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ControlTowerExemption", version: "0.6.
|
|
6
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ControlTowerExemption", version: "0.6.18" };
|
|
7
7
|
static arnNotLike() {
|
|
8
8
|
return {
|
|
9
9
|
ArnNotLike: {
|
|
@@ -39,7 +39,7 @@ const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
|
39
39
|
const control_tower_exemption_1 = require("./control-tower-exemption");
|
|
40
40
|
/** Denies regional API calls outside `allowedRegions`, with global-services exempted. */
|
|
41
41
|
class ScpDenyActionsOutsideRegions {
|
|
42
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyActionsOutsideRegions", version: "0.6.
|
|
42
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyActionsOutsideRegions", version: "0.6.18" };
|
|
43
43
|
static statement(allowedRegions) {
|
|
44
44
|
return new iam.PolicyStatement({
|
|
45
45
|
sid: 'DenyActionsOutsideAllowedRegions',
|
|
@@ -39,7 +39,7 @@ const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
|
39
39
|
const control_tower_exemption_1 = require("./control-tower-exemption");
|
|
40
40
|
/** Denies enabling AWS Backup Vault Lock. */
|
|
41
41
|
class ScpDenyBackupVaultLock {
|
|
42
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyBackupVaultLock", version: "0.6.
|
|
42
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyBackupVaultLock", version: "0.6.18" };
|
|
43
43
|
static statement() {
|
|
44
44
|
return new iam.PolicyStatement({
|
|
45
45
|
sid: 'DenyBackupVaultLock',
|
package/lib/constructs/organization-policies/scp-presets/deny-bedrock-provisioned-throughput.js
CHANGED
|
@@ -39,7 +39,7 @@ const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
|
39
39
|
const control_tower_exemption_1 = require("./control-tower-exemption");
|
|
40
40
|
/** Denies Bedrock provisioned model throughput (on-demand inference still works). */
|
|
41
41
|
class ScpDenyBedrockProvisionedThroughput {
|
|
42
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyBedrockProvisionedThroughput", version: "0.6.
|
|
42
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyBedrockProvisionedThroughput", version: "0.6.18" };
|
|
43
43
|
static statement() {
|
|
44
44
|
return new iam.PolicyStatement({
|
|
45
45
|
sid: 'DenyBedrockProvisionedThroughput',
|
package/lib/constructs/organization-policies/scp-presets/deny-cfn-stacks-without-standard-tags.js
CHANGED
|
@@ -38,7 +38,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
|
|
|
38
38
|
const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
39
39
|
/** Denies CloudFormation stack creation unless required tags are present (and match values, if constrained). */
|
|
40
40
|
class ScpDenyCfnStacksWithoutStandardTags {
|
|
41
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyCfnStacksWithoutStandardTags", version: "0.6.
|
|
41
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyCfnStacksWithoutStandardTags", version: "0.6.18" };
|
|
42
42
|
static statement(tags) {
|
|
43
43
|
return new iam.PolicyStatement({
|
|
44
44
|
sid: 'DenyCfnStacksWithoutStandardTags',
|
package/lib/constructs/organization-policies/scp-presets/deny-dedicated-infra-and-subscriptions.js
CHANGED
|
@@ -39,7 +39,7 @@ const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
|
39
39
|
const control_tower_exemption_1 = require("./control-tower-exemption");
|
|
40
40
|
/** Denies Outposts, Snowball, Shield Advanced, and ACM Private CA provisioning. */
|
|
41
41
|
class ScpDenyDedicatedInfraAndSubscriptions {
|
|
42
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyDedicatedInfraAndSubscriptions", version: "0.6.
|
|
42
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyDedicatedInfraAndSubscriptions", version: "0.6.18" };
|
|
43
43
|
static statement() {
|
|
44
44
|
return new iam.PolicyStatement({
|
|
45
45
|
sid: 'DenyDedicatedInfraAndSubscriptions',
|
package/lib/constructs/organization-policies/scp-presets/deny-disabling-security-services.js
CHANGED
|
@@ -39,7 +39,7 @@ const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
|
39
39
|
const control_tower_exemption_1 = require("./control-tower-exemption");
|
|
40
40
|
/** Denies disabling/deleting CloudTrail, Config, GuardDuty, Security Hub, or Macie. */
|
|
41
41
|
class ScpDenyDisablingSecurityServices {
|
|
42
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyDisablingSecurityServices", version: "0.6.
|
|
42
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyDisablingSecurityServices", version: "0.6.18" };
|
|
43
43
|
static statement() {
|
|
44
44
|
return new iam.PolicyStatement({
|
|
45
45
|
sid: 'DenyDisablingSecurityServices',
|
|
@@ -39,7 +39,7 @@ const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
|
39
39
|
const control_tower_exemption_1 = require("./control-tower-exemption");
|
|
40
40
|
/** Denies Route 53 domain registrations, renewals, and transfers. */
|
|
41
41
|
class ScpDenyDomainRegistrations {
|
|
42
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyDomainRegistrations", version: "0.6.
|
|
42
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyDomainRegistrations", version: "0.6.18" };
|
|
43
43
|
static statement() {
|
|
44
44
|
return new iam.PolicyStatement({
|
|
45
45
|
sid: 'DenyDomainRegistrations',
|
|
@@ -39,7 +39,7 @@ const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
|
39
39
|
const control_tower_exemption_1 = require("./control-tower-exemption");
|
|
40
40
|
/** Denies S3 Glacier Vault Lock initiation/completion. */
|
|
41
41
|
class ScpDenyGlacierVaultLock {
|
|
42
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyGlacierVaultLock", version: "0.6.
|
|
42
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyGlacierVaultLock", version: "0.6.18" };
|
|
43
43
|
static statement() {
|
|
44
44
|
return new iam.PolicyStatement({
|
|
45
45
|
sid: 'DenyGlacierVaultLock',
|
package/lib/constructs/organization-policies/scp-presets/deny-iam-without-permissions-boundary.js
CHANGED
|
@@ -39,7 +39,7 @@ const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
|
39
39
|
const control_tower_exemption_1 = require("./control-tower-exemption");
|
|
40
40
|
/** Enforces the `IamPolicyPermissionBoundaryPolicy` boundary across IAM create/update/delete. Requires `iamPolicyPermissionBoundary` to be configured. */
|
|
41
41
|
class ScpDenyIamWithoutPermissionsBoundary {
|
|
42
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyIamWithoutPermissionsBoundary", version: "0.6.
|
|
42
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyIamWithoutPermissionsBoundary", version: "0.6.18" };
|
|
43
43
|
static statements() {
|
|
44
44
|
const boundaryArn = 'arn:aws:iam::*:policy/IamPolicyPermissionBoundaryPolicy';
|
|
45
45
|
return [
|
|
@@ -39,7 +39,7 @@ const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
|
39
39
|
const control_tower_exemption_1 = require("./control-tower-exemption");
|
|
40
40
|
/** Denies a member account from leaving the AWS Organization. */
|
|
41
41
|
class ScpDenyLeavingOrganization {
|
|
42
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyLeavingOrganization", version: "0.6.
|
|
42
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyLeavingOrganization", version: "0.6.18" };
|
|
43
43
|
static statement() {
|
|
44
44
|
return new iam.PolicyStatement({
|
|
45
45
|
sid: 'DenyLeavingOrganization',
|
|
@@ -39,7 +39,7 @@ const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
|
39
39
|
const control_tower_exemption_1 = require("./control-tower-exemption");
|
|
40
40
|
/** Denies AWS Marketplace subscriptions and agreement approvals. */
|
|
41
41
|
class ScpDenyMarketplaceSubscriptions {
|
|
42
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyMarketplaceSubscriptions", version: "0.6.
|
|
42
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyMarketplaceSubscriptions", version: "0.6.18" };
|
|
43
43
|
static statement() {
|
|
44
44
|
return new iam.PolicyStatement({
|
|
45
45
|
sid: 'DenyMarketplaceSubscriptions',
|
package/lib/constructs/organization-policies/scp-presets/deny-reserved-capacity-purchases.js
CHANGED
|
@@ -39,7 +39,7 @@ const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
|
39
39
|
const control_tower_exemption_1 = require("./control-tower-exemption");
|
|
40
40
|
/** Denies Reserved Instance / reserved-capacity purchases (EC2, RDS, DynamoDB, ElastiCache, Redshift, OpenSearch). */
|
|
41
41
|
class ScpDenyReservedCapacityPurchases {
|
|
42
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyReservedCapacityPurchases", version: "0.6.
|
|
42
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyReservedCapacityPurchases", version: "0.6.18" };
|
|
43
43
|
static statement() {
|
|
44
44
|
return new iam.PolicyStatement({
|
|
45
45
|
sid: 'DenyReservedCapacityPurchases',
|
|
@@ -61,7 +61,7 @@ const mandatory_tags_1 = require("../../../mandatory-tags");
|
|
|
61
61
|
* over-size document throws at synth (see `ScpMerge.validate`).
|
|
62
62
|
*/
|
|
63
63
|
class ScpDenyResourceCreationWithoutStandardTags {
|
|
64
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyResourceCreationWithoutStandardTags", version: "0.6.
|
|
64
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyResourceCreationWithoutStandardTags", version: "0.6.18" };
|
|
65
65
|
static DEFAULT_TAG_KEYS = [
|
|
66
66
|
...mandatory_tags_1.DLZ_MANDATORY_TAG_KEYS,
|
|
67
67
|
];
|
|
@@ -38,7 +38,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
|
|
|
38
38
|
const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
39
39
|
/** Denies member-account root actions while allowing AWS Organizations centralized-root sessions (`aws:AssumedRoot`). */
|
|
40
40
|
class ScpDenyRootCredentialsManagementInMemberAccounts {
|
|
41
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyRootCredentialsManagementInMemberAccounts", version: "0.6.
|
|
41
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyRootCredentialsManagementInMemberAccounts", version: "0.6.18" };
|
|
42
42
|
static statement() {
|
|
43
43
|
return new iam.PolicyStatement({
|
|
44
44
|
sid: 'DenyRootCredentialsManagementInMemberAccounts',
|
|
@@ -38,7 +38,7 @@ const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
|
|
|
38
38
|
const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
39
39
|
/** Denies all root-user actions. Plan a break-glass detach procedure before attaching. */
|
|
40
40
|
class ScpDenyRootUserActions {
|
|
41
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyRootUserActions", version: "0.6.
|
|
41
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyRootUserActions", version: "0.6.18" };
|
|
42
42
|
static statement() {
|
|
43
43
|
return new iam.PolicyStatement({
|
|
44
44
|
sid: 'DenyRootUserActions',
|
package/lib/constructs/organization-policies/scp-presets/deny-s3-object-lock-and-retention.js
CHANGED
|
@@ -39,7 +39,7 @@ const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
|
39
39
|
const control_tower_exemption_1 = require("./control-tower-exemption");
|
|
40
40
|
/** Denies S3 Object Lock, retention, legal-hold, and governance-bypass actions. */
|
|
41
41
|
class ScpDenyS3ObjectLockAndRetention {
|
|
42
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyS3ObjectLockAndRetention", version: "0.6.
|
|
42
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyS3ObjectLockAndRetention", version: "0.6.18" };
|
|
43
43
|
static statement() {
|
|
44
44
|
return new iam.PolicyStatement({
|
|
45
45
|
sid: 'DenyS3ObjectLockAndRetention',
|
|
@@ -39,7 +39,7 @@ const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
|
39
39
|
const control_tower_exemption_1 = require("./control-tower-exemption");
|
|
40
40
|
/** Denies disabling/removing S3 Block Public Access at the account or bucket level. */
|
|
41
41
|
class ScpDenyS3PublicAccessBypass {
|
|
42
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyS3PublicAccessBypass", version: "0.6.
|
|
42
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyS3PublicAccessBypass", version: "0.6.18" };
|
|
43
43
|
static statement() {
|
|
44
44
|
return new iam.PolicyStatement({
|
|
45
45
|
sid: 'DenyS3PublicAccessBypass',
|
|
@@ -39,7 +39,7 @@ const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
|
39
39
|
const control_tower_exemption_1 = require("./control-tower-exemption");
|
|
40
40
|
/** Denies Savings Plan creation. */
|
|
41
41
|
class ScpDenySavingsPlanPurchases {
|
|
42
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenySavingsPlanPurchases", version: "0.6.
|
|
42
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenySavingsPlanPurchases", version: "0.6.18" };
|
|
43
43
|
static statement() {
|
|
44
44
|
return new iam.PolicyStatement({
|
|
45
45
|
sid: 'DenySavingsPlanPurchases',
|
|
@@ -39,7 +39,7 @@ const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
|
39
39
|
const control_tower_exemption_1 = require("./control-tower-exemption");
|
|
40
40
|
/** Denies a caller-supplied list of service actions (e.g. `['eks:*', 'ecs:*']`). */
|
|
41
41
|
class ScpDenyServiceActions {
|
|
42
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyServiceActions", version: "0.6.
|
|
42
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpDenyServiceActions", version: "0.6.18" };
|
|
43
43
|
static statement(serviceActions) {
|
|
44
44
|
return new iam.PolicyStatement({
|
|
45
45
|
sid: 'DenyServiceActions',
|
|
@@ -46,7 +46,7 @@ const control_tower_exemption_1 = require("./control-tower-exemption");
|
|
|
46
46
|
* `AWSControlTowerExecution` is exempted in every statement.
|
|
47
47
|
*/
|
|
48
48
|
class ScpFinOpsAccountBaseline {
|
|
49
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpFinOpsAccountBaseline", version: "0.6.
|
|
49
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.ScpFinOpsAccountBaseline", version: "0.6.18" };
|
|
50
50
|
/**
|
|
51
51
|
* Compute / data services denied by default. Lambda is intentionally allowed because
|
|
52
52
|
* CDK custom resources need it — tighten via permission boundaries, not SCPs.
|
|
@@ -39,7 +39,7 @@ const iam = __importStar(require("aws-cdk-lib/aws-iam"));
|
|
|
39
39
|
const organizations = __importStar(require("aws-cdk-lib/aws-organizations"));
|
|
40
40
|
const report_1 = require("../../lib/report");
|
|
41
41
|
class DlzServiceControlPolicy {
|
|
42
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzServiceControlPolicy", version: "0.6.
|
|
42
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzServiceControlPolicy", version: "0.6.18" };
|
|
43
43
|
policy;
|
|
44
44
|
reportResource;
|
|
45
45
|
constructor(scope, id, props) {
|
|
@@ -39,7 +39,7 @@ const organizations = __importStar(require("aws-cdk-lib/aws-organizations"));
|
|
|
39
39
|
const tag_policy_enforced_service_actions_1 = require("./tag-policy-enforced-service-actions");
|
|
40
40
|
const report_1 = require("../../lib/report");
|
|
41
41
|
class DlzTagPolicy {
|
|
42
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzTagPolicy", version: "0.6.
|
|
42
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DlzTagPolicy", version: "0.6.18" };
|
|
43
43
|
policy;
|
|
44
44
|
reportResource;
|
|
45
45
|
constructor(scope, id, props) {
|
|
@@ -42,7 +42,7 @@ const constants_1 = require("./stacks/organization/constants");
|
|
|
42
42
|
* This class is used to fetch parameters from the SSM Parameter Store and uses the AWS SDK to assume the role
|
|
43
43
|
*/
|
|
44
44
|
class DataLandingZoneClient {
|
|
45
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DataLandingZoneClient", version: "0.6.
|
|
45
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "aws-data-landing-zone.DataLandingZoneClient", version: "0.6.18" };
|
|
46
46
|
/**
|
|
47
47
|
* Fetches the bastion security group ID from the SSM Parameter Store
|
|
48
48
|
*@param scope - The scope of the construct
|
|
@@ -816,6 +816,50 @@ export interface DataLandingZoneProps {
|
|
|
816
816
|
* @default - no FinOps capabilities enabled
|
|
817
817
|
*/
|
|
818
818
|
readonly finOps?: DlzFinOpsProps;
|
|
819
|
+
/**
|
|
820
|
+
* Settings for the `awsNuke` script.
|
|
821
|
+
*
|
|
822
|
+
* @default - keep only the Control Tower, CDK bootstrap and DLZ resources
|
|
823
|
+
*/
|
|
824
|
+
readonly awsNuke?: DlzAwsNukeProps;
|
|
825
|
+
}
|
|
826
|
+
export interface DlzAwsNukeProps {
|
|
827
|
+
/**
|
|
828
|
+
* Extra AWS Nuke filters for Workloads OU accounts. AWS Nuke keeps every resource that matches
|
|
829
|
+
* a filter. Use them for resources your own stacks or StackSets deploy into workload accounts,
|
|
830
|
+
* next to the Control Tower, CDK bootstrap and DLZ resources that are always kept.
|
|
831
|
+
*
|
|
832
|
+
* @default - no extra filters
|
|
833
|
+
*/
|
|
834
|
+
readonly filters?: DlzAwsNukeFilter[];
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* An AWS Nuke filter that applies to all resource types. AWS Nuke keeps the resources that match it.
|
|
838
|
+
* See https://ekristen.github.io/aws-nuke/config-filtering/
|
|
839
|
+
*/
|
|
840
|
+
export interface DlzAwsNukeFilter {
|
|
841
|
+
/**
|
|
842
|
+
* The value to compare with.
|
|
843
|
+
*/
|
|
844
|
+
readonly value: string;
|
|
845
|
+
/**
|
|
846
|
+
* How to compare the value.
|
|
847
|
+
*
|
|
848
|
+
* @default DlzAwsNukeFilterType.EXACT
|
|
849
|
+
*/
|
|
850
|
+
readonly type?: DlzAwsNukeFilterType;
|
|
851
|
+
/**
|
|
852
|
+
* The resource property to compare, for example `tag:Owner`.
|
|
853
|
+
*
|
|
854
|
+
* @default - the resource identifier that AWS Nuke prints, such as the role or stack name
|
|
855
|
+
*/
|
|
856
|
+
readonly property?: string;
|
|
857
|
+
}
|
|
858
|
+
export declare enum DlzAwsNukeFilterType {
|
|
859
|
+
EXACT = "exact",
|
|
860
|
+
CONTAINS = "contains",
|
|
861
|
+
GLOB = "glob",
|
|
862
|
+
REGEX = "regex"
|
|
819
863
|
}
|
|
820
864
|
export interface DlzFinOpsProps {
|
|
821
865
|
/** Tag-scoped org/account-wide budget alerts in the management account. */
|