aws-data-landing-zone 0.0.48 → 0.0.50
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 +4 -5
- package/API.md +150 -165
- package/docs/src/content/docs/getting-started.mdx +2 -3
- package/docs/src/content/docs/reference/api.md +150 -165
- package/lib/constructs/account-chatbots/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-lake-formation/dlz-lake-formation.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-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/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.js +9 -5
- package/lib/defaults.js +1 -1
- package/lib/lib/report/index.js +1 -1
- package/lib/scripts/bootstrap/index.js +25 -5
- package/lib/scripts/index.js +1 -1
- package/lib/scripts/lib/helpers.d.ts +1 -3
- package/lib/scripts/lib/helpers.js +36 -14
- package/lib/scripts/synth/index.d.ts +2 -0
- package/lib/scripts/synth/index.js +11 -0
- package/lib/stacks/organization/management-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/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/npm-link-manual-cdk--express-pipeline.sh +2 -0
- package/package.json +3 -5
- package/node_modules/cross-spawn/LICENSE +0 -21
- package/node_modules/cross-spawn/README.md +0 -96
- package/node_modules/cross-spawn/index.js +0 -39
- package/node_modules/cross-spawn/lib/enoent.js +0 -59
- package/node_modules/cross-spawn/lib/parse.js +0 -91
- package/node_modules/cross-spawn/lib/util/escape.js +0 -45
- package/node_modules/cross-spawn/lib/util/readShebang.js +0 -23
- package/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -52
- package/node_modules/cross-spawn/package.json +0 -73
- package/node_modules/execa/index.d.ts +0 -564
- package/node_modules/execa/index.js +0 -268
- package/node_modules/execa/lib/command.js +0 -52
- package/node_modules/execa/lib/error.js +0 -88
- package/node_modules/execa/lib/kill.js +0 -115
- package/node_modules/execa/lib/promise.js +0 -46
- package/node_modules/execa/lib/stdio.js +0 -52
- package/node_modules/execa/lib/stream.js +0 -97
- package/node_modules/execa/license +0 -9
- package/node_modules/execa/package.json +0 -74
- package/node_modules/execa/readme.md +0 -663
- package/node_modules/get-stream/buffer-stream.js +0 -52
- package/node_modules/get-stream/index.d.ts +0 -105
- package/node_modules/get-stream/index.js +0 -61
- package/node_modules/get-stream/license +0 -9
- package/node_modules/get-stream/package.json +0 -47
- package/node_modules/get-stream/readme.md +0 -124
- package/node_modules/human-signals/LICENSE +0 -201
- package/node_modules/human-signals/README.md +0 -165
- package/node_modules/human-signals/build/src/core.js +0 -273
- package/node_modules/human-signals/build/src/core.js.map +0 -1
- package/node_modules/human-signals/build/src/main.d.ts +0 -52
- package/node_modules/human-signals/build/src/main.js +0 -71
- package/node_modules/human-signals/build/src/main.js.map +0 -1
- package/node_modules/human-signals/build/src/realtime.js +0 -19
- package/node_modules/human-signals/build/src/realtime.js.map +0 -1
- package/node_modules/human-signals/build/src/signals.js +0 -35
- package/node_modules/human-signals/build/src/signals.js.map +0 -1
- package/node_modules/human-signals/package.json +0 -64
- package/node_modules/is-stream/index.d.ts +0 -79
- package/node_modules/is-stream/index.js +0 -28
- package/node_modules/is-stream/license +0 -9
- package/node_modules/is-stream/package.json +0 -42
- package/node_modules/is-stream/readme.md +0 -60
- package/node_modules/isexe/.npmignore +0 -2
- package/node_modules/isexe/LICENSE +0 -15
- package/node_modules/isexe/README.md +0 -51
- package/node_modules/isexe/index.js +0 -57
- package/node_modules/isexe/mode.js +0 -41
- package/node_modules/isexe/package.json +0 -31
- package/node_modules/isexe/test/basic.js +0 -221
- package/node_modules/isexe/windows.js +0 -42
- package/node_modules/merge-stream/LICENSE +0 -21
- package/node_modules/merge-stream/README.md +0 -78
- package/node_modules/merge-stream/index.js +0 -41
- package/node_modules/merge-stream/package.json +0 -19
- package/node_modules/mimic-fn/index.d.ts +0 -54
- package/node_modules/mimic-fn/index.js +0 -13
- package/node_modules/mimic-fn/license +0 -9
- package/node_modules/mimic-fn/package.json +0 -42
- package/node_modules/mimic-fn/readme.md +0 -69
- package/node_modules/npm-run-path/index.d.ts +0 -89
- package/node_modules/npm-run-path/index.js +0 -47
- package/node_modules/npm-run-path/license +0 -9
- package/node_modules/npm-run-path/package.json +0 -44
- package/node_modules/npm-run-path/readme.md +0 -115
- package/node_modules/onetime/index.d.ts +0 -64
- package/node_modules/onetime/index.js +0 -44
- package/node_modules/onetime/license +0 -9
- package/node_modules/onetime/package.json +0 -43
- package/node_modules/onetime/readme.md +0 -94
- package/node_modules/path-key/index.d.ts +0 -40
- package/node_modules/path-key/index.js +0 -16
- package/node_modules/path-key/license +0 -9
- package/node_modules/path-key/package.json +0 -39
- package/node_modules/path-key/readme.md +0 -61
- package/node_modules/shebang-command/index.js +0 -19
- package/node_modules/shebang-command/license +0 -9
- package/node_modules/shebang-command/package.json +0 -34
- package/node_modules/shebang-command/readme.md +0 -34
- package/node_modules/shebang-regex/index.d.ts +0 -22
- package/node_modules/shebang-regex/index.js +0 -2
- package/node_modules/shebang-regex/license +0 -9
- package/node_modules/shebang-regex/package.json +0 -35
- package/node_modules/shebang-regex/readme.md +0 -33
- package/node_modules/signal-exit/LICENSE.txt +0 -16
- package/node_modules/signal-exit/README.md +0 -39
- package/node_modules/signal-exit/index.js +0 -202
- package/node_modules/signal-exit/package.json +0 -38
- package/node_modules/signal-exit/signals.js +0 -53
- package/node_modules/strip-final-newline/index.js +0 -16
- package/node_modules/strip-final-newline/license +0 -9
- package/node_modules/strip-final-newline/package.json +0 -40
- package/node_modules/strip-final-newline/readme.md +0 -30
- package/node_modules/which/LICENSE +0 -15
- package/node_modules/which/README.md +0 -54
- package/node_modules/which/bin/node-which +0 -52
- package/node_modules/which/package.json +0 -43
- package/node_modules/which/which.js +0 -125
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const path = require('path');
|
|
4
|
-
const resolveCommand = require('./util/resolveCommand');
|
|
5
|
-
const escape = require('./util/escape');
|
|
6
|
-
const readShebang = require('./util/readShebang');
|
|
7
|
-
|
|
8
|
-
const isWin = process.platform === 'win32';
|
|
9
|
-
const isExecutableRegExp = /\.(?:com|exe)$/i;
|
|
10
|
-
const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
11
|
-
|
|
12
|
-
function detectShebang(parsed) {
|
|
13
|
-
parsed.file = resolveCommand(parsed);
|
|
14
|
-
|
|
15
|
-
const shebang = parsed.file && readShebang(parsed.file);
|
|
16
|
-
|
|
17
|
-
if (shebang) {
|
|
18
|
-
parsed.args.unshift(parsed.file);
|
|
19
|
-
parsed.command = shebang;
|
|
20
|
-
|
|
21
|
-
return resolveCommand(parsed);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return parsed.file;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function parseNonShell(parsed) {
|
|
28
|
-
if (!isWin) {
|
|
29
|
-
return parsed;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// Detect & add support for shebangs
|
|
33
|
-
const commandFile = detectShebang(parsed);
|
|
34
|
-
|
|
35
|
-
// We don't need a shell if the command filename is an executable
|
|
36
|
-
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
37
|
-
|
|
38
|
-
// If a shell is required, use cmd.exe and take care of escaping everything correctly
|
|
39
|
-
// Note that `forceShell` is an hidden option used only in tests
|
|
40
|
-
if (parsed.options.forceShell || needsShell) {
|
|
41
|
-
// Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`
|
|
42
|
-
// The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument
|
|
43
|
-
// Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,
|
|
44
|
-
// we need to double escape them
|
|
45
|
-
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
46
|
-
|
|
47
|
-
// Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\bar)
|
|
48
|
-
// This is necessary otherwise it will always fail with ENOENT in those cases
|
|
49
|
-
parsed.command = path.normalize(parsed.command);
|
|
50
|
-
|
|
51
|
-
// Escape command & arguments
|
|
52
|
-
parsed.command = escape.command(parsed.command);
|
|
53
|
-
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
54
|
-
|
|
55
|
-
const shellCommand = [parsed.command].concat(parsed.args).join(' ');
|
|
56
|
-
|
|
57
|
-
parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
|
|
58
|
-
parsed.command = process.env.comspec || 'cmd.exe';
|
|
59
|
-
parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return parsed;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
function parse(command, args, options) {
|
|
66
|
-
// Normalize arguments, similar to nodejs
|
|
67
|
-
if (args && !Array.isArray(args)) {
|
|
68
|
-
options = args;
|
|
69
|
-
args = null;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
args = args ? args.slice(0) : []; // Clone array to avoid changing the original
|
|
73
|
-
options = Object.assign({}, options); // Clone object to avoid changing the original
|
|
74
|
-
|
|
75
|
-
// Build our parsed object
|
|
76
|
-
const parsed = {
|
|
77
|
-
command,
|
|
78
|
-
args,
|
|
79
|
-
options,
|
|
80
|
-
file: undefined,
|
|
81
|
-
original: {
|
|
82
|
-
command,
|
|
83
|
-
args,
|
|
84
|
-
},
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
// Delegate further parsing to shell or non-shell
|
|
88
|
-
return options.shell ? parsed : parseNonShell(parsed);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
module.exports = parse;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
// See http://www.robvanderwoude.com/escapechars.php
|
|
4
|
-
const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
5
|
-
|
|
6
|
-
function escapeCommand(arg) {
|
|
7
|
-
// Escape meta chars
|
|
8
|
-
arg = arg.replace(metaCharsRegExp, '^$1');
|
|
9
|
-
|
|
10
|
-
return arg;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function escapeArgument(arg, doubleEscapeMetaChars) {
|
|
14
|
-
// Convert to string
|
|
15
|
-
arg = `${arg}`;
|
|
16
|
-
|
|
17
|
-
// Algorithm below is based on https://qntm.org/cmd
|
|
18
|
-
|
|
19
|
-
// Sequence of backslashes followed by a double quote:
|
|
20
|
-
// double up all the backslashes and escape the double quote
|
|
21
|
-
arg = arg.replace(/(\\*)"/g, '$1$1\\"');
|
|
22
|
-
|
|
23
|
-
// Sequence of backslashes followed by the end of the string
|
|
24
|
-
// (which will become a double quote later):
|
|
25
|
-
// double up all the backslashes
|
|
26
|
-
arg = arg.replace(/(\\*)$/, '$1$1');
|
|
27
|
-
|
|
28
|
-
// All other backslashes occur literally
|
|
29
|
-
|
|
30
|
-
// Quote the whole thing:
|
|
31
|
-
arg = `"${arg}"`;
|
|
32
|
-
|
|
33
|
-
// Escape meta chars
|
|
34
|
-
arg = arg.replace(metaCharsRegExp, '^$1');
|
|
35
|
-
|
|
36
|
-
// Double escape meta chars if necessary
|
|
37
|
-
if (doubleEscapeMetaChars) {
|
|
38
|
-
arg = arg.replace(metaCharsRegExp, '^$1');
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return arg;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
module.exports.command = escapeCommand;
|
|
45
|
-
module.exports.argument = escapeArgument;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const fs = require('fs');
|
|
4
|
-
const shebangCommand = require('shebang-command');
|
|
5
|
-
|
|
6
|
-
function readShebang(command) {
|
|
7
|
-
// Read the first 150 bytes from the file
|
|
8
|
-
const size = 150;
|
|
9
|
-
const buffer = Buffer.alloc(size);
|
|
10
|
-
|
|
11
|
-
let fd;
|
|
12
|
-
|
|
13
|
-
try {
|
|
14
|
-
fd = fs.openSync(command, 'r');
|
|
15
|
-
fs.readSync(fd, buffer, 0, size, 0);
|
|
16
|
-
fs.closeSync(fd);
|
|
17
|
-
} catch (e) { /* Empty */ }
|
|
18
|
-
|
|
19
|
-
// Attempt to extract shebang (null is returned if not a shebang)
|
|
20
|
-
return shebangCommand(buffer.toString());
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
module.exports = readShebang;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const path = require('path');
|
|
4
|
-
const which = require('which');
|
|
5
|
-
const getPathKey = require('path-key');
|
|
6
|
-
|
|
7
|
-
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
8
|
-
const env = parsed.options.env || process.env;
|
|
9
|
-
const cwd = process.cwd();
|
|
10
|
-
const hasCustomCwd = parsed.options.cwd != null;
|
|
11
|
-
// Worker threads do not have process.chdir()
|
|
12
|
-
const shouldSwitchCwd = hasCustomCwd && process.chdir !== undefined && !process.chdir.disabled;
|
|
13
|
-
|
|
14
|
-
// If a custom `cwd` was specified, we need to change the process cwd
|
|
15
|
-
// because `which` will do stat calls but does not support a custom cwd
|
|
16
|
-
if (shouldSwitchCwd) {
|
|
17
|
-
try {
|
|
18
|
-
process.chdir(parsed.options.cwd);
|
|
19
|
-
} catch (err) {
|
|
20
|
-
/* Empty */
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
let resolved;
|
|
25
|
-
|
|
26
|
-
try {
|
|
27
|
-
resolved = which.sync(parsed.command, {
|
|
28
|
-
path: env[getPathKey({ env })],
|
|
29
|
-
pathExt: withoutPathExt ? path.delimiter : undefined,
|
|
30
|
-
});
|
|
31
|
-
} catch (e) {
|
|
32
|
-
/* Empty */
|
|
33
|
-
} finally {
|
|
34
|
-
if (shouldSwitchCwd) {
|
|
35
|
-
process.chdir(cwd);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// If we successfully resolved, ensure that an absolute path is returned
|
|
40
|
-
// Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it
|
|
41
|
-
if (resolved) {
|
|
42
|
-
resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
return resolved;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function resolveCommand(parsed) {
|
|
49
|
-
return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
module.exports = resolveCommand;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "cross-spawn",
|
|
3
|
-
"version": "7.0.3",
|
|
4
|
-
"description": "Cross platform child_process#spawn and child_process#spawnSync",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"spawn",
|
|
7
|
-
"spawnSync",
|
|
8
|
-
"windows",
|
|
9
|
-
"cross-platform",
|
|
10
|
-
"path-ext",
|
|
11
|
-
"shebang",
|
|
12
|
-
"cmd",
|
|
13
|
-
"execute"
|
|
14
|
-
],
|
|
15
|
-
"author": "André Cruz <andre@moxy.studio>",
|
|
16
|
-
"homepage": "https://github.com/moxystudio/node-cross-spawn",
|
|
17
|
-
"repository": {
|
|
18
|
-
"type": "git",
|
|
19
|
-
"url": "git@github.com:moxystudio/node-cross-spawn.git"
|
|
20
|
-
},
|
|
21
|
-
"license": "MIT",
|
|
22
|
-
"main": "index.js",
|
|
23
|
-
"files": [
|
|
24
|
-
"lib"
|
|
25
|
-
],
|
|
26
|
-
"scripts": {
|
|
27
|
-
"lint": "eslint .",
|
|
28
|
-
"test": "jest --env node --coverage",
|
|
29
|
-
"prerelease": "npm t && npm run lint",
|
|
30
|
-
"release": "standard-version",
|
|
31
|
-
"postrelease": "git push --follow-tags origin HEAD && npm publish"
|
|
32
|
-
},
|
|
33
|
-
"husky": {
|
|
34
|
-
"hooks": {
|
|
35
|
-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
|
36
|
-
"pre-commit": "lint-staged"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"lint-staged": {
|
|
40
|
-
"*.js": [
|
|
41
|
-
"eslint --fix",
|
|
42
|
-
"git add"
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
"commitlint": {
|
|
46
|
-
"extends": [
|
|
47
|
-
"@commitlint/config-conventional"
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
"dependencies": {
|
|
51
|
-
"path-key": "^3.1.0",
|
|
52
|
-
"shebang-command": "^2.0.0",
|
|
53
|
-
"which": "^2.0.1"
|
|
54
|
-
},
|
|
55
|
-
"devDependencies": {
|
|
56
|
-
"@commitlint/cli": "^8.1.0",
|
|
57
|
-
"@commitlint/config-conventional": "^8.1.0",
|
|
58
|
-
"babel-core": "^6.26.3",
|
|
59
|
-
"babel-jest": "^24.9.0",
|
|
60
|
-
"babel-preset-moxy": "^3.1.0",
|
|
61
|
-
"eslint": "^5.16.0",
|
|
62
|
-
"eslint-config-moxy": "^7.1.0",
|
|
63
|
-
"husky": "^3.0.5",
|
|
64
|
-
"jest": "^24.9.0",
|
|
65
|
-
"lint-staged": "^9.2.5",
|
|
66
|
-
"mkdirp": "^0.5.1",
|
|
67
|
-
"rimraf": "^3.0.0",
|
|
68
|
-
"standard-version": "^7.0.0"
|
|
69
|
-
},
|
|
70
|
-
"engines": {
|
|
71
|
-
"node": ">= 8"
|
|
72
|
-
}
|
|
73
|
-
}
|