@depup/aws-cdk 2.1117.0-depup.0
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/LICENSE +202 -0
- package/NOTICE +16 -0
- package/README.md +25 -0
- package/THIRD_PARTY_LICENSES +24866 -0
- package/bin/cdk +6 -0
- package/build-info.json +4 -0
- package/changes.json +5 -0
- package/db.json.gz +0 -0
- package/docs/deploy-architecture.md +194 -0
- package/lib/api/aws-auth.d.ts +3 -0
- package/lib/api/aws-auth.js +21 -0
- package/lib/api/bootstrap/bootstrap-template.yaml +855 -0
- package/lib/api/bootstrap.d.ts +1 -0
- package/lib/api/bootstrap.js +19 -0
- package/lib/api/cloud-assembly.d.ts +5 -0
- package/lib/api/cloud-assembly.js +23 -0
- package/lib/api/cloudformation.d.ts +1 -0
- package/lib/api/cloudformation.js +19 -0
- package/lib/api/context.d.ts +1 -0
- package/lib/api/context.js +19 -0
- package/lib/api/deployments.d.ts +1 -0
- package/lib/api/deployments.js +19 -0
- package/lib/api/hotswap.d.ts +1 -0
- package/lib/api/hotswap.js +19 -0
- package/lib/api/index.d.ts +16 -0
- package/lib/api/index.js +38 -0
- package/lib/api/network-detector.d.ts +1 -0
- package/lib/api/network-detector.js +19 -0
- package/lib/api/notices.d.ts +1 -0
- package/lib/api/notices.js +19 -0
- package/lib/api/plugin.d.ts +1 -0
- package/lib/api/plugin.js +19 -0
- package/lib/api/refactor.d.ts +1 -0
- package/lib/api/refactor.js +8 -0
- package/lib/api/settings.d.ts +1 -0
- package/lib/api/settings.js +19 -0
- package/lib/api/tags.d.ts +1 -0
- package/lib/api/tags.js +19 -0
- package/lib/api-private.d.ts +9 -0
- package/lib/api-private.js +29 -0
- package/lib/cli/cdk-toolkit.d.ts +699 -0
- package/lib/cli/cdk-toolkit.js +1260 -0
- package/lib/cli/ci-systems.d.ts +29 -0
- package/lib/cli/ci-systems.js +61 -0
- package/lib/cli/cli-config.d.ts +10 -0
- package/lib/cli/cli-config.js +556 -0
- package/lib/cli/cli-type-registry.json +1147 -0
- package/lib/cli/cli.d.ts +3 -0
- package/lib/cli/cli.js +746 -0
- package/lib/cli/convert-to-user-input.d.ts +3 -0
- package/lib/cli/convert-to-user-input.js +560 -0
- package/lib/cli/display-version.d.ts +11 -0
- package/lib/cli/display-version.js +101 -0
- package/lib/cli/io-host/cli-io-host.d.ts +191 -0
- package/lib/cli/io-host/cli-io-host.js +477 -0
- package/lib/cli/io-host/index.d.ts +1 -0
- package/lib/cli/io-host/index.js +18 -0
- package/lib/cli/parse-command-line-arguments.d.ts +1 -0
- package/lib/cli/parse-command-line-arguments.js +1067 -0
- package/lib/cli/platform-warnings.d.ts +3 -0
- package/lib/cli/platform-warnings.js +44 -0
- package/lib/cli/pretty-print-error.d.ts +1 -0
- package/lib/cli/pretty-print-error.js +37 -0
- package/lib/cli/proxy-agent.d.ts +30 -0
- package/lib/cli/proxy-agent.js +52 -0
- package/lib/cli/root-dir.d.ts +10 -0
- package/lib/cli/root-dir.js +23 -0
- package/lib/cli/singleton-plugin-host.d.ts +7 -0
- package/lib/cli/singleton-plugin-host.js +11 -0
- package/lib/cli/tables.d.ts +1 -0
- package/lib/cli/tables.js +10 -0
- package/lib/cli/telemetry/collect-telemetry.d.ts +5 -0
- package/lib/cli/telemetry/collect-telemetry.js +16 -0
- package/lib/cli/telemetry/error.d.ts +15 -0
- package/lib/cli/telemetry/error.js +68 -0
- package/lib/cli/telemetry/feature-flags.d.ts +96 -0
- package/lib/cli/telemetry/feature-flags.js +103 -0
- package/lib/cli/telemetry/installation-id.d.ts +5 -0
- package/lib/cli/telemetry/installation-id.js +47 -0
- package/lib/cli/telemetry/library-version.d.ts +2 -0
- package/lib/cli/telemetry/library-version.js +30 -0
- package/lib/cli/telemetry/messages.d.ts +43 -0
- package/lib/cli/telemetry/messages.js +60 -0
- package/lib/cli/telemetry/sanitation.d.ts +100 -0
- package/lib/cli/telemetry/sanitation.js +79 -0
- package/lib/cli/telemetry/schema.d.ts +85 -0
- package/lib/cli/telemetry/schema.js +3 -0
- package/lib/cli/telemetry/session.d.ts +67 -0
- package/lib/cli/telemetry/session.js +174 -0
- package/lib/cli/telemetry/sink/endpoint-sink.d.ts +44 -0
- package/lib/cli/telemetry/sink/endpoint-sink.js +105 -0
- package/lib/cli/telemetry/sink/file-sink.d.ts +32 -0
- package/lib/cli/telemetry/sink/file-sink.js +43 -0
- package/lib/cli/telemetry/sink/funnel.d.ts +16 -0
- package/lib/cli/telemetry/sink/funnel.js +29 -0
- package/lib/cli/telemetry/sink/io-host-sink.d.ts +27 -0
- package/lib/cli/telemetry/sink/io-host-sink.js +35 -0
- package/lib/cli/telemetry/sink/sink-interface.d.ts +18 -0
- package/lib/cli/telemetry/sink/sink-interface.js +3 -0
- package/lib/cli/user-configuration.d.ts +104 -0
- package/lib/cli/user-configuration.js +334 -0
- package/lib/cli/user-input.d.ts +1505 -0
- package/lib/cli/user-input.js +3 -0
- package/lib/cli/util/ci.d.ts +5 -0
- package/lib/cli/util/ci.js +11 -0
- package/lib/cli/util/console-formatters.d.ts +18 -0
- package/lib/cli/util/console-formatters.js +42 -0
- package/lib/cli/util/guess-agent.d.ts +7 -0
- package/lib/cli/util/guess-agent.js +32 -0
- package/lib/cli/util/npm.d.ts +4 -0
- package/lib/cli/util/npm.js +34 -0
- package/lib/cli/util/trap-errors.d.ts +6 -0
- package/lib/cli/util/trap-errors.js +17 -0
- package/lib/cli/util/yargs-helpers.d.ts +22 -0
- package/lib/cli/util/yargs-helpers.js +49 -0
- package/lib/cli/version.d.ts +3 -0
- package/lib/cli/version.js +22 -0
- package/lib/commands/context.d.ts +40 -0
- package/lib/commands/context.js +158 -0
- package/lib/commands/deploy.d.ts +13 -0
- package/lib/commands/deploy.js +18 -0
- package/lib/commands/docs.d.ts +18 -0
- package/lib/commands/docs.js +33 -0
- package/lib/commands/doctor.d.ts +4 -0
- package/lib/commands/doctor.js +69 -0
- package/lib/commands/flags/flags.d.ts +13 -0
- package/lib/commands/flags/flags.js +30 -0
- package/lib/commands/flags/interactive-handler.d.ts +16 -0
- package/lib/commands/flags/interactive-handler.js +71 -0
- package/lib/commands/flags/obsolete-flags.d.ts +1 -0
- package/lib/commands/flags/obsolete-flags.js +9 -0
- package/lib/commands/flags/operations.d.ts +80 -0
- package/lib/commands/flags/operations.js +467 -0
- package/lib/commands/flags/router.d.ts +18 -0
- package/lib/commands/flags/router.js +60 -0
- package/lib/commands/flags/types.d.ts +12 -0
- package/lib/commands/flags/types.js +12 -0
- package/lib/commands/flags/validator.d.ts +22 -0
- package/lib/commands/flags/validator.js +95 -0
- package/lib/commands/init/index.d.ts +1 -0
- package/lib/commands/init/index.js +18 -0
- package/lib/commands/init/init-hooks.d.ts +41 -0
- package/lib/commands/init/init-hooks.js +85 -0
- package/lib/commands/init/init.d.ts +139 -0
- package/lib/commands/init/init.js +788 -0
- package/lib/commands/init/os.d.ts +8 -0
- package/lib/commands/init/os.js +91 -0
- package/lib/commands/init/package-manager.d.ts +15 -0
- package/lib/commands/init/package-manager.js +14 -0
- package/lib/commands/language.d.ts +30 -0
- package/lib/commands/language.js +46 -0
- package/lib/commands/list-stacks.d.ts +21 -0
- package/lib/commands/list-stacks.js +28 -0
- package/lib/commands/migrate.d.ts +316 -0
- package/lib/commands/migrate.js +801 -0
- package/lib/context-providers.d.ts +1 -0
- package/lib/context-providers.js +19 -0
- package/lib/cxapp/cloud-assembly.d.ts +79 -0
- package/lib/cxapp/cloud-assembly.js +109 -0
- package/lib/cxapp/cloud-executable.d.ts +51 -0
- package/lib/cxapp/cloud-executable.js +123 -0
- package/lib/cxapp/environments.d.ts +8 -0
- package/lib/cxapp/environments.js +66 -0
- package/lib/cxapp/exec.d.ts +14 -0
- package/lib/cxapp/exec.js +133 -0
- package/lib/cxapp/index.d.ts +4 -0
- package/lib/cxapp/index.js +21 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +364043 -0
- package/lib/index_bg.wasm +0 -0
- package/lib/init-templates/.init-version.json +1 -0
- package/lib/init-templates/.no-packagejson-validator +0 -0
- package/lib/init-templates/.recommended-feature-flags.json +86 -0
- package/lib/init-templates/LICENSE +16 -0
- package/lib/init-templates/app/csharp/.template.gitignore +342 -0
- package/lib/init-templates/app/csharp/README.md +14 -0
- package/lib/init-templates/app/csharp/cdk.template.json +15 -0
- package/lib/init-templates/app/csharp/src/%name.PascalCased%/%name.PascalCased%.template.csproj +20 -0
- package/lib/init-templates/app/csharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.cs +13 -0
- package/lib/init-templates/app/csharp/src/%name.PascalCased%/GlobalSuppressions.cs +1 -0
- package/lib/init-templates/app/csharp/src/%name.PascalCased%/Program.template.cs +44 -0
- package/lib/init-templates/app/csharp/src/%name.PascalCased%.template.sln +18 -0
- package/lib/init-templates/app/fsharp/.template.gitignore +342 -0
- package/lib/init-templates/app/fsharp/README.md +18 -0
- package/lib/init-templates/app/fsharp/cdk.template.json +14 -0
- package/lib/init-templates/app/fsharp/src/%name.PascalCased%/%name.PascalCased%.template.fsproj +25 -0
- package/lib/init-templates/app/fsharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.fs +8 -0
- package/lib/init-templates/app/fsharp/src/%name.PascalCased%/Program.template.fs +11 -0
- package/lib/init-templates/app/fsharp/src/%name.PascalCased%.template.sln +18 -0
- package/lib/init-templates/app/go/%name%.template.go +70 -0
- package/lib/init-templates/app/go/%name%_test.template.go +26 -0
- package/lib/init-templates/app/go/.template.gitignore +19 -0
- package/lib/init-templates/app/go/README.md +12 -0
- package/lib/init-templates/app/go/cdk.template.json +13 -0
- package/lib/init-templates/app/go/go.template.mod +9 -0
- package/lib/init-templates/app/info.json +4 -0
- package/lib/init-templates/app/java/.template.gitignore +13 -0
- package/lib/init-templates/app/java/README.md +18 -0
- package/lib/init-templates/app/java/cdk.json +13 -0
- package/lib/init-templates/app/java/pom.xml +60 -0
- package/lib/init-templates/app/java/src/main/java/com/myorg/%name.PascalCased%App.template.java +42 -0
- package/lib/init-templates/app/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java +24 -0
- package/lib/init-templates/app/java/src/test/java/com/myorg/%name.PascalCased%Test.template.java +26 -0
- package/lib/init-templates/app/javascript/.template.gitignore +5 -0
- package/lib/init-templates/app/javascript/.template.npmignore +3 -0
- package/lib/init-templates/app/javascript/README.md +12 -0
- package/lib/init-templates/app/javascript/bin/%name%.template.js +21 -0
- package/lib/init-templates/app/javascript/cdk.template.json +15 -0
- package/lib/init-templates/app/javascript/jest.config.js +4 -0
- package/lib/init-templates/app/javascript/lib/%name%-stack.template.js +23 -0
- package/lib/init-templates/app/javascript/package.json +20 -0
- package/lib/init-templates/app/javascript/test/%name%.test.template.js +17 -0
- package/lib/init-templates/app/python/%name.PythonModule%/%name.PythonModule%_stack.template.py +19 -0
- package/lib/init-templates/app/python/%name.PythonModule%/__init__.py +0 -0
- package/lib/init-templates/app/python/.template.gitignore +10 -0
- package/lib/init-templates/app/python/README.template.md +58 -0
- package/lib/init-templates/app/python/app.template.py +28 -0
- package/lib/init-templates/app/python/cdk.template.json +15 -0
- package/lib/init-templates/app/python/requirements-dev.txt +1 -0
- package/lib/init-templates/app/python/requirements.txt +2 -0
- package/lib/init-templates/app/python/source.bat +13 -0
- package/lib/init-templates/app/python/tests/__init__.py +0 -0
- package/lib/init-templates/app/python/tests/unit/__init__.py +0 -0
- package/lib/init-templates/app/python/tests/unit/test_%name.PythonModule%_stack.template.py +15 -0
- package/lib/init-templates/app/typescript/.template.gitignore +8 -0
- package/lib/init-templates/app/typescript/.template.npmignore +6 -0
- package/lib/init-templates/app/typescript/README.md +14 -0
- package/lib/init-templates/app/typescript/bin/%name%.template.ts +20 -0
- package/lib/init-templates/app/typescript/cdk.template.json +17 -0
- package/lib/init-templates/app/typescript/jest.config.js +9 -0
- package/lib/init-templates/app/typescript/lib/%name%-stack.template.ts +16 -0
- package/lib/init-templates/app/typescript/package.json +26 -0
- package/lib/init-templates/app/typescript/test/%name%.test.template.ts +17 -0
- package/lib/init-templates/app/typescript/tsconfig.json +32 -0
- package/lib/init-templates/lib/info.json +4 -0
- package/lib/init-templates/lib/typescript/.template.gitignore +8 -0
- package/lib/init-templates/lib/typescript/.template.npmignore +6 -0
- package/lib/init-templates/lib/typescript/README.template.md +12 -0
- package/lib/init-templates/lib/typescript/jest.config.js +9 -0
- package/lib/init-templates/lib/typescript/lib/index.template.ts +21 -0
- package/lib/init-templates/lib/typescript/package.json +24 -0
- package/lib/init-templates/lib/typescript/test/%name%.test.template.ts +18 -0
- package/lib/init-templates/lib/typescript/tsconfig.json +32 -0
- package/lib/init-templates/sample-app/csharp/.template.gitignore +342 -0
- package/lib/init-templates/sample-app/csharp/README.template.md +19 -0
- package/lib/init-templates/sample-app/csharp/cdk.template.json +15 -0
- package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%/%name.PascalCased%.template.csproj +20 -0
- package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.cs +24 -0
- package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%/GlobalSuppressions.cs +1 -0
- package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%/Program.template.cs +15 -0
- package/lib/init-templates/sample-app/csharp/src/%name.PascalCased%.template.sln +18 -0
- package/lib/init-templates/sample-app/fsharp/.template.gitignore +342 -0
- package/lib/init-templates/sample-app/fsharp/README.template.md +20 -0
- package/lib/init-templates/sample-app/fsharp/cdk.template.json +14 -0
- package/lib/init-templates/sample-app/fsharp/src/%name.PascalCased%/%name.PascalCased%.template.fsproj +25 -0
- package/lib/init-templates/sample-app/fsharp/src/%name.PascalCased%/%name.PascalCased%Stack.template.fs +14 -0
- package/lib/init-templates/sample-app/fsharp/src/%name.PascalCased%/Program.template.fs +11 -0
- package/lib/init-templates/sample-app/fsharp/src/%name.PascalCased%.template.sln +18 -0
- package/lib/init-templates/sample-app/go/%name%.template.go +73 -0
- package/lib/init-templates/sample-app/go/%name%_test.template.go +25 -0
- package/lib/init-templates/sample-app/go/.template.gitignore +19 -0
- package/lib/init-templates/sample-app/go/README.md +12 -0
- package/lib/init-templates/sample-app/go/cdk.template.json +13 -0
- package/lib/init-templates/sample-app/go/go.template.mod +9 -0
- package/lib/init-templates/sample-app/info.json +4 -0
- package/lib/init-templates/sample-app/java/.template.gitignore +13 -0
- package/lib/init-templates/sample-app/java/README.template.md +19 -0
- package/lib/init-templates/sample-app/java/cdk.json +13 -0
- package/lib/init-templates/sample-app/java/pom.xml +55 -0
- package/lib/init-templates/sample-app/java/src/main/java/com/myorg/%name.PascalCased%App.template.java +13 -0
- package/lib/init-templates/sample-app/java/src/main/java/com/myorg/%name.PascalCased%Stack.template.java +29 -0
- package/lib/init-templates/sample-app/java/src/test/java/com/myorg/%name.PascalCased%StackTest.template.java +27 -0
- package/lib/init-templates/sample-app/javascript/.template.gitignore +5 -0
- package/lib/init-templates/sample-app/javascript/.template.npmignore +3 -0
- package/lib/init-templates/sample-app/javascript/README.template.md +13 -0
- package/lib/init-templates/sample-app/javascript/bin/%name%.template.js +6 -0
- package/lib/init-templates/sample-app/javascript/cdk.template.json +15 -0
- package/lib/init-templates/sample-app/javascript/jest.config.js +4 -0
- package/lib/init-templates/sample-app/javascript/lib/%name%-stack.template.js +25 -0
- package/lib/init-templates/sample-app/javascript/package.json +20 -0
- package/lib/init-templates/sample-app/javascript/test/%name%.test.template.js +16 -0
- package/lib/init-templates/sample-app/javascript/tsconfig.json +34 -0
- package/lib/init-templates/sample-app/python/%name.PythonModule%/%name.PythonModule%_stack.template.py +26 -0
- package/lib/init-templates/sample-app/python/%name.PythonModule%/__init__.py +0 -0
- package/lib/init-templates/sample-app/python/.template.gitignore +22 -0
- package/lib/init-templates/sample-app/python/README.template.md +65 -0
- package/lib/init-templates/sample-app/python/app.template.py +11 -0
- package/lib/init-templates/sample-app/python/cdk.template.json +15 -0
- package/lib/init-templates/sample-app/python/requirements-dev.txt +1 -0
- package/lib/init-templates/sample-app/python/requirements.txt +2 -0
- package/lib/init-templates/sample-app/python/source.bat +13 -0
- package/lib/init-templates/sample-app/python/tests/__init__.py +0 -0
- package/lib/init-templates/sample-app/python/tests/unit/__init__.py +0 -0
- package/lib/init-templates/sample-app/python/tests/unit/test_%name.PythonModule%_stack.template.py +21 -0
- package/lib/init-templates/sample-app/typescript/.template.gitignore +8 -0
- package/lib/init-templates/sample-app/typescript/.template.npmignore +6 -0
- package/lib/init-templates/sample-app/typescript/README.template.md +15 -0
- package/lib/init-templates/sample-app/typescript/bin/%name%.template.ts +6 -0
- package/lib/init-templates/sample-app/typescript/cdk.template.json +17 -0
- package/lib/init-templates/sample-app/typescript/jest.config.js +9 -0
- package/lib/init-templates/sample-app/typescript/lib/%name%-stack.template.ts +19 -0
- package/lib/init-templates/sample-app/typescript/package.json +26 -0
- package/lib/init-templates/sample-app/typescript/test/%name%.test.template.ts +17 -0
- package/lib/init-templates/sample-app/typescript/tsconfig.json +32 -0
- package/lib/util.d.ts +1 -0
- package/lib/util.js +19 -0
- package/package.json +170 -0
- package/release.txt +2 -0
package/bin/cdk
ADDED
package/build-info.json
ADDED
package/changes.json
ADDED
package/db.json.gz
ADDED
|
Binary file
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
# Deploy Command Technical Architecture
|
|
2
|
+
|
|
3
|
+
This document provides technical implementation details for contributors debugging or modifying the `cdk deploy` command. It shows the exact function calls and file locations in the execution path.
|
|
4
|
+
|
|
5
|
+
For a high-level conceptual overview of the deploy process, see the [README](../README.md#deploy-flowchart).
|
|
6
|
+
|
|
7
|
+
## Technical Flowchart
|
|
8
|
+
|
|
9
|
+
```mermaid
|
|
10
|
+
graph TD
|
|
11
|
+
%% CLI Entry Point
|
|
12
|
+
n1["cdk deploy<br/>(User Command)"]
|
|
13
|
+
n2["cli.ts: exec()"]
|
|
14
|
+
n3["cli.ts: main()"]
|
|
15
|
+
|
|
16
|
+
%% Deploy Method
|
|
17
|
+
n4["cdk-toolkit.ts: CdkToolkit.deploy()"]
|
|
18
|
+
n5["cdk-toolkit.ts: selectStacksForDeploy()"]
|
|
19
|
+
n6["Check if synthesis needed"]
|
|
20
|
+
|
|
21
|
+
%% Synthesis Process
|
|
22
|
+
n7["cloud-executable.ts: doSynthesize()"]
|
|
23
|
+
n29{"Context missing?"}
|
|
24
|
+
n34["cloud-executable.ts: synthesizer()"]
|
|
25
|
+
n9["cli.ts: execProgram()"]
|
|
26
|
+
n10["childProcess.spawn()<br/>(Run CDK App)"]
|
|
27
|
+
n11["CDK App Process Started"]
|
|
28
|
+
n35["CDK App: app.synth()"]
|
|
29
|
+
n36["@aws-cdk/core: synthesize()<br/>Generate CloudFormation JSON"]
|
|
30
|
+
n12["Write templates to cdk.out/"]
|
|
31
|
+
n13["Return CloudAssembly object"]
|
|
32
|
+
|
|
33
|
+
%% Stack Selection
|
|
34
|
+
n14["cloud-assembly.ts:<br/>assembly.selectStacks()"]
|
|
35
|
+
n15["cloud-assembly.ts:<br/>validateStacks()"]
|
|
36
|
+
n16["Return StackCollection"]
|
|
37
|
+
|
|
38
|
+
%% Asset Processing
|
|
39
|
+
n17["cdk-toolkit.ts:<br/>ResourceMigrator.tryMigrateResources()"]
|
|
40
|
+
n18["work-graph.ts:<br/>WorkGraphBuilder.build()"]
|
|
41
|
+
n37["work-graph.ts:<br/>analyzeDeploymentOrder()"]
|
|
42
|
+
n19["work-graph.ts:<br/>workGraph.doParallel()"]
|
|
43
|
+
|
|
44
|
+
%% Parallel Execution Nodes
|
|
45
|
+
n20["asset-build.ts: buildAsset()<br/>(Sequential: concurrency=1)"]
|
|
46
|
+
n21["asset-publishing.ts: publishAsset()<br/>(Parallel: concurrency=8)"]
|
|
47
|
+
n44["deploy-stack.ts: deployStack()<br/>(Parallel: configurable)"]
|
|
48
|
+
n45["await Promise.all()<br/>Wait for dependencies"]
|
|
49
|
+
|
|
50
|
+
%% Deployment Process
|
|
51
|
+
n22["cdk-toolkit.ts: deployStack()"]
|
|
52
|
+
n23["deploy-stack.ts:<br/>CloudFormationStack.lookup()"]
|
|
53
|
+
n24["deploy-stack.ts:<br/>makeBodyParameter()"]
|
|
54
|
+
n25["deploy-stack.ts:<br/>publishAssets()"]
|
|
55
|
+
n38["deploy-stack.ts:<br/>requireApproval()"]
|
|
56
|
+
|
|
57
|
+
%% Hotswap Decision
|
|
58
|
+
n30{"--hotswap flag set?"}
|
|
59
|
+
n31["hotswap-deployments.ts:<br/>tryHotswapDeployment()"]
|
|
60
|
+
|
|
61
|
+
%% Standard CloudFormation Deployment
|
|
62
|
+
n26["deploy-stack.ts:<br/>FullCloudFormationDeployment.performDeployment()"]
|
|
63
|
+
n27["AWS SDK: CloudFormation<br/>createChangeSet() OR<br/>updateStack()"]
|
|
64
|
+
n28["CloudFormation Service"]
|
|
65
|
+
n32["deploy-stack.ts:<br/>StackActivityMonitor.start()"]
|
|
66
|
+
n33["deploy-stack.ts:<br/>waitForStackDeploy()"]
|
|
67
|
+
|
|
68
|
+
%% Completion
|
|
69
|
+
n39["deploy-stack.ts:<br/>getStackOutputs()"]
|
|
70
|
+
n40["cdk-toolkit.ts:<br/>printStackOutputs()"]
|
|
71
|
+
|
|
72
|
+
%% Main Flow Connections
|
|
73
|
+
n1 --> n2
|
|
74
|
+
n2 --> n3
|
|
75
|
+
n3 --> n4
|
|
76
|
+
n4 --> n5
|
|
77
|
+
n5 --> n6
|
|
78
|
+
n6 --> n7
|
|
79
|
+
n7 --> n29
|
|
80
|
+
n29 -->|"Yes"| n34
|
|
81
|
+
n34 --> n9
|
|
82
|
+
n9 --> n10
|
|
83
|
+
n10 --> n11
|
|
84
|
+
n11 --> n35
|
|
85
|
+
n35 --> n36
|
|
86
|
+
n36 --> n12
|
|
87
|
+
n12 --> n13
|
|
88
|
+
n13 -->|"Loop if context missing"| n29
|
|
89
|
+
n29 -->|"No"| n14
|
|
90
|
+
n14 --> n15
|
|
91
|
+
n15 --> n16
|
|
92
|
+
n16 --> n17
|
|
93
|
+
n17 --> n18
|
|
94
|
+
n18 --> n37
|
|
95
|
+
n37 --> n19
|
|
96
|
+
|
|
97
|
+
%% Parallel execution from workGraph.doParallel()
|
|
98
|
+
n19 -.->|"Parallel"| n20
|
|
99
|
+
n19 -.->|"Parallel"| n21
|
|
100
|
+
n19 -.->|"Parallel"| n44
|
|
101
|
+
|
|
102
|
+
%% Dependency relationships
|
|
103
|
+
n20 --> n45
|
|
104
|
+
n21 --> n45
|
|
105
|
+
n44 --> n45
|
|
106
|
+
n45 --> n22
|
|
107
|
+
n22 --> n23
|
|
108
|
+
n23 --> n24
|
|
109
|
+
n24 --> n25
|
|
110
|
+
n25 --> n38
|
|
111
|
+
n38 --> n30
|
|
112
|
+
n30 -->|"Yes"| n31
|
|
113
|
+
n30 -->|"No"| n26
|
|
114
|
+
n31 --> n39
|
|
115
|
+
n26 --> n27
|
|
116
|
+
n27 --> n28
|
|
117
|
+
n28 --> n32
|
|
118
|
+
n32 --> n33
|
|
119
|
+
n33 --> n39
|
|
120
|
+
n39 --> n40
|
|
121
|
+
|
|
122
|
+
%% Simplified Color Scheme - Only 3 colors
|
|
123
|
+
%% External Systems (Light Red)
|
|
124
|
+
style n1 fill:#ffebee,stroke:#c62828,stroke-width:2px
|
|
125
|
+
style n28 fill:#ffebee,stroke:#c62828,stroke-width:2px
|
|
126
|
+
|
|
127
|
+
%% CDK App Process (Light Green)
|
|
128
|
+
style n10 fill:#e8f5e9,stroke:#2e7d32,stroke-width:2px
|
|
129
|
+
style n11 fill:#e8f5e9,stroke:#2e7d32,stroke-width:2px
|
|
130
|
+
style n35 fill:#e8f5e9,stroke:#2e7d32,stroke-width:2px
|
|
131
|
+
style n36 fill:#e8f5e9,stroke:#2e7d32,stroke-width:2px
|
|
132
|
+
style n12 fill:#e8f5e9,stroke:#2e7d32,stroke-width:2px
|
|
133
|
+
|
|
134
|
+
%% Decision Points (Light Yellow)
|
|
135
|
+
style n29 fill:#fff9c4,stroke:#f57f17,stroke-width:2px
|
|
136
|
+
style n30 fill:#fff9c4,stroke:#f57f17,stroke-width:2px
|
|
137
|
+
style n38 fill:#fff9c4,stroke:#f57f17,stroke-width:2px
|
|
138
|
+
style n45 fill:#fff9c4,stroke:#f57f17,stroke-width:2px
|
|
139
|
+
|
|
140
|
+
%% Everything else - CDK CLI Code (Light Blue)
|
|
141
|
+
style n2 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
142
|
+
style n3 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
143
|
+
style n4 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
144
|
+
style n5 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
145
|
+
style n6 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
146
|
+
style n7 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
147
|
+
style n9 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
148
|
+
style n13 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
149
|
+
style n14 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
150
|
+
style n15 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
151
|
+
style n16 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
152
|
+
style n17 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
153
|
+
style n18 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
154
|
+
style n19 fill:#e1f5fe,stroke:#0277bd,stroke-width:3px
|
|
155
|
+
style n20 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
156
|
+
style n21 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
157
|
+
style n22 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
158
|
+
style n23 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
159
|
+
style n24 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
160
|
+
style n25 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
161
|
+
style n26 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
162
|
+
style n27 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
163
|
+
style n31 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
164
|
+
style n32 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
165
|
+
style n33 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
166
|
+
style n34 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
167
|
+
style n37 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
168
|
+
style n39 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
169
|
+
style n40 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
170
|
+
style n44 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
171
|
+
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
## Legend (Node Categories)
|
|
175
|
+
|
|
176
|
+
```mermaid
|
|
177
|
+
graph LR
|
|
178
|
+
L1["External Systems"]~~~L2["CDK App Process"]~~~L3["CDK CLI Code"]~~~L4["Decision Points"]
|
|
179
|
+
|
|
180
|
+
style L1 fill:#ffebee,stroke:#c62828,stroke-width:2px
|
|
181
|
+
style L2 fill:#e8f5e9,stroke:#2e7d32,stroke-width:2px
|
|
182
|
+
style L3 fill:#e1f5fe,stroke:#0277bd,stroke-width:2px
|
|
183
|
+
style L4 fill:#fff9c4,stroke:#f57f17,stroke-width:2px
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## Parallel Execution Model
|
|
187
|
+
|
|
188
|
+
The deploy process uses a sophisticated work graph (`workGraph.doParallel()` in `work-graph.ts`) to manage parallel execution:
|
|
189
|
+
|
|
190
|
+
- **Asset Building** (concurrency: 1): Compiles Docker images, Lambda code, etc. sequentially to avoid overwhelming system resources
|
|
191
|
+
- **Asset Publishing** (concurrency: 8): Uploads assets to S3/ECR in parallel for faster deployment
|
|
192
|
+
- **Stack Deployment** (configurable): Deploys multiple stacks in parallel while respecting dependencies
|
|
193
|
+
|
|
194
|
+
The dotted lines indicate parallel execution paths from the work graph orchestrator. All operations respect dependency relationships before proceeding (node n45 represents the synchronization point).
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* eslint-disable import/no-relative-packages */
|
|
18
|
+
__exportStar(require("../../../@aws-cdk/toolkit-lib/lib/api/aws-auth"), exports);
|
|
19
|
+
__exportStar(require("../../../@aws-cdk/toolkit-lib/lib/api/aws-auth/private"), exports);
|
|
20
|
+
__exportStar(require("../../../@aws-cdk/toolkit-lib/lib/api/aws-auth/awscli-compatible"), exports);
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXdzLWF1dGguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJhd3MtYXV0aC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsZ0RBQWdEO0FBQ2hELGlGQUErRDtBQUMvRCx5RkFBdUU7QUFDdkUsbUdBQWlGIiwic291cmNlc0NvbnRlbnQiOlsiLyogZXNsaW50LWRpc2FibGUgaW1wb3J0L25vLXJlbGF0aXZlLXBhY2thZ2VzICovXG5leHBvcnQgKiBmcm9tICcuLi8uLi8uLi9AYXdzLWNkay90b29sa2l0LWxpYi9saWIvYXBpL2F3cy1hdXRoJztcbmV4cG9ydCAqIGZyb20gJy4uLy4uLy4uL0Bhd3MtY2RrL3Rvb2xraXQtbGliL2xpYi9hcGkvYXdzLWF1dGgvcHJpdmF0ZSc7XG5leHBvcnQgKiBmcm9tICcuLi8uLi8uLi9AYXdzLWNkay90b29sa2l0LWxpYi9saWIvYXBpL2F3cy1hdXRoL2F3c2NsaS1jb21wYXRpYmxlJztcblxuIl19
|