@go-to-k/cdkd 0.17.0 → 0.17.1
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 +9 -5
- package/dist/cli.js.map +2 -2
- package/dist/go-to-k-cdkd-0.17.1.tgz +0 -0
- package/dist/index.js +8 -4
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/dist/go-to-k-cdkd-0.17.0.tgz +0 -0
package/dist/cli.js
CHANGED
|
@@ -7766,13 +7766,15 @@ import {
|
|
|
7766
7766
|
init_aws_clients();
|
|
7767
7767
|
|
|
7768
7768
|
// src/provisioning/resource-name.ts
|
|
7769
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
7769
7770
|
import { createHash } from "node:crypto";
|
|
7770
|
-
var
|
|
7771
|
-
function
|
|
7772
|
-
|
|
7771
|
+
var stackNameStore = new AsyncLocalStorage();
|
|
7772
|
+
function withStackName(stackName, fn) {
|
|
7773
|
+
return stackNameStore.run(stackName, fn);
|
|
7773
7774
|
}
|
|
7774
7775
|
function generateResourceName(name, options) {
|
|
7775
7776
|
const { maxLength, lowercase = false, allowedPattern = /[^a-zA-Z0-9-]/g } = options;
|
|
7777
|
+
const currentStackName = stackNameStore.getStore();
|
|
7776
7778
|
const fullName = currentStackName ? `${currentStackName}-${name}` : name;
|
|
7777
7779
|
let sanitized = lowercase ? fullName.toLowerCase() : fullName;
|
|
7778
7780
|
sanitized = sanitized.replace(allowedPattern, "-");
|
|
@@ -28790,9 +28792,11 @@ var DeployEngine = class {
|
|
|
28790
28792
|
* Deploy a CloudFormation template
|
|
28791
28793
|
*/
|
|
28792
28794
|
async deploy(stackName, template) {
|
|
28795
|
+
return withStackName(stackName, () => this.doDeploy(stackName, template));
|
|
28796
|
+
}
|
|
28797
|
+
async doDeploy(stackName, template) {
|
|
28793
28798
|
const startTime = Date.now();
|
|
28794
28799
|
this.logger.debug(`Starting deployment for stack: ${stackName}`);
|
|
28795
|
-
setCurrentStackName(stackName);
|
|
28796
28800
|
await this.lockManager.acquireLockWithRetry(stackName, this.stackRegion, void 0, "deploy");
|
|
28797
28801
|
const renderer = getLiveRenderer();
|
|
28798
28802
|
renderer.start();
|
|
@@ -32135,7 +32139,7 @@ function reorderArgs(argv) {
|
|
|
32135
32139
|
}
|
|
32136
32140
|
async function main() {
|
|
32137
32141
|
const program = new Command12();
|
|
32138
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.17.
|
|
32142
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.17.1");
|
|
32139
32143
|
program.addCommand(createBootstrapCommand());
|
|
32140
32144
|
program.addCommand(createSynthCommand());
|
|
32141
32145
|
program.addCommand(createListCommand());
|