@go-to-k/cdkd 0.41.0 → 0.42.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/dist/cli.js +10 -7
- package/dist/cli.js.map +2 -2
- package/dist/go-to-k-cdkd-0.42.0.tgz +0 -0
- package/package.json +1 -1
- package/dist/go-to-k-cdkd-0.41.0.tgz +0 -0
package/dist/cli.js
CHANGED
|
@@ -37806,7 +37806,14 @@ async function runDriftForStack(stackName, region, stateBackend, providerRegistr
|
|
|
37806
37806
|
});
|
|
37807
37807
|
continue;
|
|
37808
37808
|
}
|
|
37809
|
-
|
|
37809
|
+
let readCurrentState = provider.readCurrentState?.bind(provider);
|
|
37810
|
+
if (!readCurrentState) {
|
|
37811
|
+
const ccApiProvider = providerRegistry.getCloudControlProvider?.();
|
|
37812
|
+
if (ccApiProvider?.readCurrentState) {
|
|
37813
|
+
readCurrentState = ccApiProvider.readCurrentState.bind(ccApiProvider);
|
|
37814
|
+
}
|
|
37815
|
+
}
|
|
37816
|
+
if (!readCurrentState) {
|
|
37810
37817
|
outcomes.push({
|
|
37811
37818
|
kind: "unsupported",
|
|
37812
37819
|
logicalId,
|
|
@@ -37814,11 +37821,7 @@ async function runDriftForStack(stackName, region, stateBackend, providerRegistr
|
|
|
37814
37821
|
});
|
|
37815
37822
|
continue;
|
|
37816
37823
|
}
|
|
37817
|
-
const aws = await
|
|
37818
|
-
resource.physicalId,
|
|
37819
|
-
logicalId,
|
|
37820
|
-
resource.resourceType
|
|
37821
|
-
);
|
|
37824
|
+
const aws = await readCurrentState(resource.physicalId, logicalId, resource.resourceType);
|
|
37822
37825
|
if (aws === void 0) {
|
|
37823
37826
|
outcomes.push({
|
|
37824
37827
|
kind: "unsupported",
|
|
@@ -41356,7 +41359,7 @@ function reorderArgs(argv) {
|
|
|
41356
41359
|
}
|
|
41357
41360
|
async function main() {
|
|
41358
41361
|
const program = new Command14();
|
|
41359
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.
|
|
41362
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.42.0");
|
|
41360
41363
|
program.addCommand(createBootstrapCommand());
|
|
41361
41364
|
program.addCommand(createSynthCommand());
|
|
41362
41365
|
program.addCommand(createListCommand());
|