@intelligems/sst 2.47.3 → 2.49.3
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/bootstrap.js +1 -1
- package/cli/commands/update.js +1 -1
- package/constructs/NextjsSite.js +1 -1
- package/credentials.d.ts +4 -4
- package/credentials.js +13 -2
- package/node/event-bus/index.d.ts +2 -1
- package/node/event-bus/index.js +1 -1
- package/package.json +34 -34
- package/package.json.bak +34 -34
- package/runtime/handlers/python.js +1 -0
- package/stacks/deploy.d.ts +1 -1
- package/stacks/deploy.js +151 -51
- package/stacks/synth.js +14 -4
- package/support/base-site-archiver.mjs +9 -9
- package/support/bootstrap-metadata-function/index.mjs +35879 -61286
- package/support/bridge/live-lambda.mjs +54 -106
- package/support/custom-resources/index.mjs +49975 -89843
- package/support/event-bus-retrier/index.mjs +32 -85
- package/support/job-manager/index.mjs +8205 -29763
- package/support/nodejs-runtime/index.mjs +1 -1
- package/support/rds-migrator/index.mjs +42 -26
- package/support/script-function/index.mjs +32065 -40311
- package/support/signing-function/index.mjs +2806 -1466
- package/support/ssr-site-function-archiver.mjs +7 -7
- package/support/ssr-warmer/index.mjs +22577 -27092
- package/util/process.d.ts +1 -0
- package/util/user-configuration.d.ts +89 -0
- package/util/user-configuration.js +311 -0
- package/cdk/deploy-stack.d.ts +0 -216
- package/cdk/deploy-stack.js +0 -516
- package/cdk/deployments-wrapper.d.ts +0 -3
- package/cdk/deployments-wrapper.js +0 -124
- package/cdk/deployments.d.ts +0 -344
- package/cdk/deployments.js +0 -401
package/stacks/synth.js
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { Logger } from "../logger.js";
|
|
2
2
|
import { useProject } from "../project.js";
|
|
3
3
|
import { useAWSProvider, useSTSIdentity } from "../credentials.js";
|
|
4
|
-
import * as contextproviders from "sst-aws-cdk/lib/context-providers/index.js";
|
|
5
4
|
import path from "path";
|
|
6
5
|
import { VisibleError } from "../error.js";
|
|
7
6
|
import { Semaphore } from "../util/semaphore.js";
|
|
7
|
+
import { Configuration } from "../util/user-configuration.js";
|
|
8
8
|
const sem = new Semaphore(1);
|
|
9
9
|
export async function synth(opts) {
|
|
10
10
|
Logger.debug("Synthesizing stacks...");
|
|
11
11
|
const { App } = await import("../constructs/App.js");
|
|
12
12
|
const cxapi = await import("@aws-cdk/cx-api");
|
|
13
|
-
const
|
|
13
|
+
const cdkToolkitUrl = await import.meta.resolve("@aws-cdk/toolkit-lib");
|
|
14
|
+
const cdkToolkitPath = new URL(cdkToolkitUrl).pathname;
|
|
15
|
+
const { IoHelper } = await import(path.resolve(cdkToolkitPath, "..", "api", "io", "private", "io-helper.js"));
|
|
16
|
+
const { PluginHost } = await import(path.resolve(cdkToolkitPath, "..", "api", "plugin", "plugin.js"));
|
|
17
|
+
const { provideContextValues } = await import(path.resolve(cdkToolkitPath, "..", "context-providers", "index.js"));
|
|
14
18
|
const project = useProject();
|
|
15
19
|
const cwd = process.cwd();
|
|
16
20
|
process.chdir(project.paths.root);
|
|
@@ -65,8 +69,14 @@ export async function synth(opts) {
|
|
|
65
69
|
throw new VisibleError(formatErrorMessage(next.join("")));
|
|
66
70
|
Logger.debug("Looking up context for:", next, "Previous:", previous);
|
|
67
71
|
previous = new Set(next);
|
|
68
|
-
await
|
|
69
|
-
|
|
72
|
+
const updates = await provideContextValues(missing, provider, new PluginHost(), IoHelper.fromActionAwareIoHost({
|
|
73
|
+
notify: (msg) => { },
|
|
74
|
+
requestResponse: (msg) => { },
|
|
75
|
+
}));
|
|
76
|
+
if (Object.keys(updates).length) {
|
|
77
|
+
for (const [key, value] of Object.entries(updates)) {
|
|
78
|
+
cfg.context.set(key, value);
|
|
79
|
+
}
|
|
70
80
|
await cfg.saveContext();
|
|
71
81
|
}
|
|
72
82
|
continue;
|