@go-to-k/cdkd 0.260.10 → 0.260.11
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/dist/cli.js +22 -14
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1901,7 +1901,7 @@ const FLUSH_INTERVAL_MS = 2e3;
|
|
|
1901
1901
|
const FLUSH_EVENT_THRESHOLD = 50;
|
|
1902
1902
|
/** Build-time cdkd version, with a dev fallback for non-built contexts. */
|
|
1903
1903
|
function getCdkdVersion() {
|
|
1904
|
-
return "0.260.
|
|
1904
|
+
return "0.260.11";
|
|
1905
1905
|
}
|
|
1906
1906
|
/**
|
|
1907
1907
|
* Generate a time-sortable unique run id, e.g.
|
|
@@ -42721,7 +42721,6 @@ async function deployCommand(stacks, options) {
|
|
|
42721
42721
|
if (!app) throw new Error("No app command specified. Use --app, set CDKD_APP env var, or add \"app\" to cdk.json");
|
|
42722
42722
|
options.app = app;
|
|
42723
42723
|
const region = options.region || process.env["AWS_REGION"] || "us-east-1";
|
|
42724
|
-
const stateBucket = await resolveStateBucketWithDefault(options.stateBucket, region);
|
|
42725
42724
|
logger.debug("Starting deployment...");
|
|
42726
42725
|
logger.debug("Options:", options);
|
|
42727
42726
|
if (options.region) {
|
|
@@ -42733,15 +42732,22 @@ async function deployCommand(stacks, options) {
|
|
|
42733
42732
|
...options.profile && { profile: options.profile }
|
|
42734
42733
|
});
|
|
42735
42734
|
setAwsClients(awsClients);
|
|
42736
|
-
const
|
|
42737
|
-
|
|
42738
|
-
|
|
42739
|
-
|
|
42740
|
-
|
|
42741
|
-
|
|
42742
|
-
|
|
42743
|
-
|
|
42744
|
-
|
|
42735
|
+
const statePrepPromise = (async () => {
|
|
42736
|
+
const stateBucket = await resolveStateBucketWithDefault(options.stateBucket, region);
|
|
42737
|
+
const preflightStateBackend = new S3StateBackend(awsClients.s3, {
|
|
42738
|
+
bucket: stateBucket,
|
|
42739
|
+
prefix: options.statePrefix
|
|
42740
|
+
}, {
|
|
42741
|
+
region,
|
|
42742
|
+
...options.profile && { profile: options.profile }
|
|
42743
|
+
});
|
|
42744
|
+
await preflightStateBackend.verifyBucketExists();
|
|
42745
|
+
return {
|
|
42746
|
+
stateBucket,
|
|
42747
|
+
preflightStateBackend,
|
|
42748
|
+
exportIndexStore: new ExportIndexStore(awsClients.s3, stateBucket, options.statePrefix, region, preflightStateBackend)
|
|
42749
|
+
};
|
|
42750
|
+
})();
|
|
42745
42751
|
let deployInterrupted = false;
|
|
42746
42752
|
const topLevelSigintHandler = () => {
|
|
42747
42753
|
if (deployInterrupted) {
|
|
@@ -42762,11 +42768,13 @@ async function deployCommand(stacks, options) {
|
|
|
42762
42768
|
...options.region && { region: options.region },
|
|
42763
42769
|
...options.profile && { profile: options.profile },
|
|
42764
42770
|
...Object.keys(context).length > 0 && { context },
|
|
42765
|
-
stateBucket,
|
|
42766
42771
|
...options.profile && { macroExpandS3ClientOpts: { profile: options.profile } },
|
|
42767
42772
|
deferMacroExpansion: true
|
|
42768
42773
|
};
|
|
42769
|
-
const
|
|
42774
|
+
const [result, statePrep] = await Promise.all([synthesizer.synthesize(synthOptions), statePrepPromise]);
|
|
42775
|
+
const { stateBucket, preflightStateBackend, exportIndexStore } = statePrep;
|
|
42776
|
+
synthOptions.stateBucket = stateBucket;
|
|
42777
|
+
const { stacks: allStacks } = result;
|
|
42770
42778
|
logger.debug(`Found ${allStacks.length} stack(s) in assembly`);
|
|
42771
42779
|
const stackPatterns = stacks.length > 0 ? stacks : options.stack ? [options.stack] : [];
|
|
42772
42780
|
let targetStacks;
|
|
@@ -62010,7 +62018,7 @@ function createMigrateCommand() {
|
|
|
62010
62018
|
*/
|
|
62011
62019
|
function buildProgram() {
|
|
62012
62020
|
const program = new Command();
|
|
62013
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.260.
|
|
62021
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.260.11");
|
|
62014
62022
|
program.addCommand(createBootstrapCommand());
|
|
62015
62023
|
program.addCommand(createSynthCommand());
|
|
62016
62024
|
program.addCommand(createListCommand());
|