aws-data-landing-zone 0.6.2 → 0.6.4
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/.compatignore +6 -0
- package/.dlz-reports/account-audit.json +12 -12
- package/.dlz-reports/account-log.json +11 -11
- package/.dlz-reports/account-management.json +1 -1
- package/.dlz-reports/account-shared-services-ou.json +11 -0
- package/.dlz-reports/account-wl-dev-a.json +14 -14
- package/.dlz-reports/raw.json +657 -0
- package/.jsii +404 -205
- package/API.md +239 -52
- package/docs/src/components/ClarityTracking.astro +42 -0
- package/docs/src/components/CookieConsent.astro +165 -0
- package/docs/src/components/Footer.astro +7 -0
- package/docs/src/content/docs/reference/api.md +239 -52
- package/docs/src/pages/index.astro +7 -0
- 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.d.ts +38 -14
- package/lib/constructs/dlz-tag-compliance-alert/index.js +76 -17
- 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 +15 -6
- package/lib/data-landing-zone-types.js +1 -1
- package/lib/data-landing-zone.js +1 -1
- package/lib/defaults.js +1 -1
- package/lib/lib/report/index.d.ts +2 -1
- package/lib/lib/report/index.js +3 -2
- 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.d.ts +8 -0
- package/lib/stacks/organization/management/management-global-stack.js +38 -2
- 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/base/shared.js +7 -7
- 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
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
---
|
|
2
|
+
---
|
|
3
|
+
|
|
4
|
+
<div id="cookie-consent-banner" style="display: none;">
|
|
5
|
+
<div class="cookie-consent-inner">
|
|
6
|
+
<p class="cookie-consent-text">
|
|
7
|
+
We use cookies to understand how you use our site and improve your experience. By clicking "Accept", you
|
|
8
|
+
consent to our use of analytics cookies.
|
|
9
|
+
</p>
|
|
10
|
+
<div class="cookie-consent-actions">
|
|
11
|
+
<button id="cookie-consent-reject" type="button" class="cookie-consent-btn cookie-consent-btn--secondary">
|
|
12
|
+
Reject
|
|
13
|
+
</button>
|
|
14
|
+
<button id="cookie-consent-accept" type="button" class="cookie-consent-btn cookie-consent-btn--primary">
|
|
15
|
+
Accept
|
|
16
|
+
</button>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<style>
|
|
22
|
+
#cookie-consent-banner {
|
|
23
|
+
position: fixed;
|
|
24
|
+
left: 0;
|
|
25
|
+
right: 0;
|
|
26
|
+
bottom: 0;
|
|
27
|
+
z-index: 100000;
|
|
28
|
+
background: oklch(1 0 0);
|
|
29
|
+
color: oklch(0.222 0.034 261.473);
|
|
30
|
+
box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
|
|
31
|
+
padding: 18px 8px;
|
|
32
|
+
font-family: 'Poppins', system-ui, sans-serif;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:global([data-theme='dark']) #cookie-consent-banner,
|
|
36
|
+
:global(.dark) #cookie-consent-banner {
|
|
37
|
+
background: oklch(0.235 0.031 262.556);
|
|
38
|
+
color: oklch(0.978 0.007 260.732);
|
|
39
|
+
box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.4);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.cookie-consent-inner {
|
|
43
|
+
max-width: 1220px;
|
|
44
|
+
margin: 0 auto;
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
column-gap: 40px;
|
|
49
|
+
row-gap: 10px;
|
|
50
|
+
flex-wrap: nowrap;
|
|
51
|
+
text-align: center;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.cookie-consent-text {
|
|
55
|
+
margin: 0;
|
|
56
|
+
flex: 1 1 auto;
|
|
57
|
+
min-width: 0;
|
|
58
|
+
font-size: 14px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.cookie-consent-actions {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
gap: 10px;
|
|
66
|
+
flex-shrink: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.cookie-consent-btn {
|
|
70
|
+
font-size: 14px;
|
|
71
|
+
font-weight: 600;
|
|
72
|
+
padding: 6px 16px;
|
|
73
|
+
border-radius: 6px;
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
font-family: inherit;
|
|
76
|
+
transition:
|
|
77
|
+
background-color 0.2s ease,
|
|
78
|
+
opacity 0.15s;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.cookie-consent-btn--primary {
|
|
82
|
+
background: oklch(0.833 0.156 78.07);
|
|
83
|
+
color: oklch(0.222 0.034 261.473);
|
|
84
|
+
border: 1px solid oklch(0.833 0.156 78.07);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.cookie-consent-btn--primary:hover {
|
|
88
|
+
opacity: 0.9;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.cookie-consent-btn--secondary {
|
|
92
|
+
background: transparent;
|
|
93
|
+
color: inherit;
|
|
94
|
+
border: 1px solid oklch(0.683 0.033 275.367 / 0.5);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.cookie-consent-btn--secondary:hover {
|
|
98
|
+
background: oklch(0.5 0 0 / 0.08);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@media (max-width: 640px) {
|
|
102
|
+
.cookie-consent-inner {
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
flex-wrap: wrap;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
</style>
|
|
108
|
+
|
|
109
|
+
<script is:inline>
|
|
110
|
+
(() => {
|
|
111
|
+
const CONSENT_KEY = 'dc_cookie_consent';
|
|
112
|
+
|
|
113
|
+
const getConsent = () => {
|
|
114
|
+
try {
|
|
115
|
+
return window.localStorage.getItem(CONSENT_KEY);
|
|
116
|
+
} catch {
|
|
117
|
+
return null;
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
const setConsent = (status) => {
|
|
122
|
+
try {
|
|
123
|
+
window.localStorage.setItem(CONSENT_KEY, status);
|
|
124
|
+
} catch {
|
|
125
|
+
// localStorage unavailable (e.g. private browsing) - consent will be asked again next visit.
|
|
126
|
+
}
|
|
127
|
+
window.dispatchEvent(new CustomEvent('dc-cookie-consent', { detail: { status } }));
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
const init = () => {
|
|
131
|
+
const banner = document.getElementById('cookie-consent-banner');
|
|
132
|
+
const acceptBtn = document.getElementById('cookie-consent-accept');
|
|
133
|
+
const rejectBtn = document.getElementById('cookie-consent-reject');
|
|
134
|
+
|
|
135
|
+
if (!banner || !acceptBtn || !rejectBtn) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
const existingConsent = getConsent();
|
|
140
|
+
if (existingConsent === 'accepted' || existingConsent === 'rejected') {
|
|
141
|
+
// Consent already recorded - notify listeners (e.g. Clarity) without showing the banner again.
|
|
142
|
+
window.dispatchEvent(new CustomEvent('dc-cookie-consent', { detail: { status: existingConsent } }));
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
banner.style.display = 'block';
|
|
147
|
+
|
|
148
|
+
acceptBtn.addEventListener('click', () => {
|
|
149
|
+
banner.style.display = 'none';
|
|
150
|
+
setConsent('accepted');
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
rejectBtn.addEventListener('click', () => {
|
|
154
|
+
banner.style.display = 'none';
|
|
155
|
+
setConsent('rejected');
|
|
156
|
+
});
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
if (document.readyState === 'loading') {
|
|
160
|
+
document.addEventListener('DOMContentLoaded', init);
|
|
161
|
+
} else {
|
|
162
|
+
init();
|
|
163
|
+
}
|
|
164
|
+
})();
|
|
165
|
+
</script>
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
import LastUpdated from '@astrojs/starlight/components/LastUpdated.astro';
|
|
6
6
|
import EditLink from '@astrojs/starlight/components/EditLink.astro';
|
|
7
7
|
import Pagination from '@astrojs/starlight/components/Pagination.astro';
|
|
8
|
+
import CookieConsent from './CookieConsent.astro';
|
|
9
|
+
import ClarityTracking from './ClarityTracking.astro';
|
|
10
|
+
|
|
11
|
+
const trackAnalytics = process.env.CF_PAGES_BRANCH === 'main';
|
|
8
12
|
---
|
|
9
13
|
|
|
10
14
|
<footer class="sl-flex">
|
|
@@ -19,6 +23,9 @@ import Pagination from '@astrojs/starlight/components/Pagination.astro';
|
|
|
19
23
|
|
|
20
24
|
</footer>
|
|
21
25
|
|
|
26
|
+
{trackAnalytics && <CookieConsent />}
|
|
27
|
+
{trackAnalytics && <ClarityTracking />}
|
|
28
|
+
|
|
22
29
|
<style>
|
|
23
30
|
.made-with {
|
|
24
31
|
margin-top: 2rem;
|