@go-to-k/cdkd 0.252.1 → 0.252.2
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 +31 -33
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1888,7 +1888,7 @@ const FLUSH_INTERVAL_MS = 2e3;
|
|
|
1888
1888
|
const FLUSH_EVENT_THRESHOLD = 50;
|
|
1889
1889
|
/** Build-time cdkd version, with a dev fallback for non-built contexts. */
|
|
1890
1890
|
function getCdkdVersion() {
|
|
1891
|
-
return "0.252.
|
|
1891
|
+
return "0.252.2";
|
|
1892
1892
|
}
|
|
1893
1893
|
/**
|
|
1894
1894
|
* Generate a time-sortable unique run id, e.g.
|
|
@@ -24565,19 +24565,15 @@ var RDSDBProxyProvider = class {
|
|
|
24565
24565
|
return {
|
|
24566
24566
|
physicalId,
|
|
24567
24567
|
attributes: {
|
|
24568
|
-
DBProxyArn: proxy
|
|
24569
|
-
Endpoint: proxy
|
|
24570
|
-
VpcId: proxy
|
|
24568
|
+
...proxy?.DBProxyArn && { DBProxyArn: proxy.DBProxyArn },
|
|
24569
|
+
...proxy?.Endpoint && { Endpoint: proxy.Endpoint },
|
|
24570
|
+
...proxy?.VpcId && { VpcId: proxy.VpcId }
|
|
24571
24571
|
}
|
|
24572
24572
|
};
|
|
24573
24573
|
} catch {
|
|
24574
24574
|
return {
|
|
24575
24575
|
physicalId,
|
|
24576
|
-
attributes: {
|
|
24577
|
-
DBProxyArn: "",
|
|
24578
|
-
Endpoint: "",
|
|
24579
|
-
VpcId: ""
|
|
24580
|
-
}
|
|
24576
|
+
attributes: {}
|
|
24581
24577
|
};
|
|
24582
24578
|
}
|
|
24583
24579
|
}
|
|
@@ -24892,21 +24888,16 @@ var RDSDBProxyEndpointProvider = class {
|
|
|
24892
24888
|
return {
|
|
24893
24889
|
physicalId,
|
|
24894
24890
|
attributes: {
|
|
24895
|
-
Endpoint: ep
|
|
24896
|
-
DBProxyEndpointArn: ep
|
|
24897
|
-
IsDefault: ep
|
|
24898
|
-
VpcId: ep
|
|
24891
|
+
...ep?.Endpoint && { Endpoint: ep.Endpoint },
|
|
24892
|
+
...ep?.DBProxyEndpointArn && { DBProxyEndpointArn: ep.DBProxyEndpointArn },
|
|
24893
|
+
...ep && { IsDefault: ep.IsDefault ?? false },
|
|
24894
|
+
...ep?.VpcId && { VpcId: ep.VpcId }
|
|
24899
24895
|
}
|
|
24900
24896
|
};
|
|
24901
24897
|
} catch {
|
|
24902
24898
|
return {
|
|
24903
24899
|
physicalId,
|
|
24904
|
-
attributes: {
|
|
24905
|
-
Endpoint: "",
|
|
24906
|
-
DBProxyEndpointArn: "",
|
|
24907
|
-
IsDefault: false,
|
|
24908
|
-
VpcId: ""
|
|
24909
|
-
}
|
|
24900
|
+
attributes: {}
|
|
24910
24901
|
};
|
|
24911
24902
|
}
|
|
24912
24903
|
}
|
|
@@ -33774,13 +33765,14 @@ var SchedulerScheduleProvider = class {
|
|
|
33774
33765
|
const groupName = this.groupNameOf(properties);
|
|
33775
33766
|
this.logger.debug(`Creating Schedule ${logicalId}: ${name}${groupName ? ` (group: ${groupName})` : ""}`);
|
|
33776
33767
|
try {
|
|
33768
|
+
const response = await this.getClient().send(new CreateScheduleCommand({
|
|
33769
|
+
Name: name,
|
|
33770
|
+
...groupName && { GroupName: groupName },
|
|
33771
|
+
...this.toSdkFields(properties)
|
|
33772
|
+
}));
|
|
33777
33773
|
return {
|
|
33778
33774
|
physicalId: name,
|
|
33779
|
-
attributes: { Arn:
|
|
33780
|
-
Name: name,
|
|
33781
|
-
...groupName && { GroupName: groupName },
|
|
33782
|
-
...this.toSdkFields(properties)
|
|
33783
|
-
}))).ScheduleArn ?? "" }
|
|
33775
|
+
attributes: response.ScheduleArn ? { Arn: response.ScheduleArn } : {}
|
|
33784
33776
|
};
|
|
33785
33777
|
} catch (error) {
|
|
33786
33778
|
const cause = error instanceof Error ? error : void 0;
|
|
@@ -33798,10 +33790,11 @@ var SchedulerScheduleProvider = class {
|
|
|
33798
33790
|
...groupName && { GroupName: groupName },
|
|
33799
33791
|
...this.toSdkFields(properties)
|
|
33800
33792
|
};
|
|
33793
|
+
const response = await this.getClient().send(new UpdateScheduleCommand(input));
|
|
33801
33794
|
return {
|
|
33802
33795
|
physicalId,
|
|
33803
33796
|
wasReplaced: false,
|
|
33804
|
-
attributes: { Arn:
|
|
33797
|
+
attributes: response.ScheduleArn ? { Arn: response.ScheduleArn } : {}
|
|
33805
33798
|
};
|
|
33806
33799
|
} catch (error) {
|
|
33807
33800
|
if (error instanceof ResourceUpdateNotSupportedError) throw error;
|
|
@@ -33889,12 +33882,13 @@ var SchedulerScheduleProvider = class {
|
|
|
33889
33882
|
if (!explicit) return null;
|
|
33890
33883
|
const groupName = this.groupNameOf(input.properties);
|
|
33891
33884
|
try {
|
|
33885
|
+
const response = await this.getClient().send(new GetScheduleCommand({
|
|
33886
|
+
Name: explicit,
|
|
33887
|
+
...groupName && { GroupName: groupName }
|
|
33888
|
+
}));
|
|
33892
33889
|
return {
|
|
33893
33890
|
physicalId: explicit,
|
|
33894
|
-
attributes: { Arn:
|
|
33895
|
-
Name: explicit,
|
|
33896
|
-
...groupName && { GroupName: groupName }
|
|
33897
|
-
}))).Arn ?? "" }
|
|
33891
|
+
attributes: response.Arn ? { Arn: response.Arn } : {}
|
|
33898
33892
|
};
|
|
33899
33893
|
} catch (error) {
|
|
33900
33894
|
if (error instanceof ResourceNotFoundException$9) return null;
|
|
@@ -39979,7 +39973,7 @@ var DLMLifecyclePolicyProvider = class {
|
|
|
39979
39973
|
const response = await this.getClient().send(new GetLifecyclePolicyCommand$1({ PolicyId: input.knownPhysicalId }));
|
|
39980
39974
|
return response.Policy?.PolicyId ? {
|
|
39981
39975
|
physicalId: input.knownPhysicalId,
|
|
39982
|
-
attributes: { Arn: response.Policy.PolicyArn
|
|
39976
|
+
attributes: response.Policy.PolicyArn ? { Arn: response.Policy.PolicyArn } : {}
|
|
39983
39977
|
} : null;
|
|
39984
39978
|
} catch (err) {
|
|
39985
39979
|
if (err instanceof ResourceNotFoundException$12) return null;
|
|
@@ -52024,7 +52018,8 @@ async function importOne(task) {
|
|
|
52024
52018
|
logicalId,
|
|
52025
52019
|
resourceType: resource.Type,
|
|
52026
52020
|
outcome: "imported",
|
|
52027
|
-
physicalId: result.physicalId
|
|
52021
|
+
physicalId: result.physicalId,
|
|
52022
|
+
...result.attributes !== void 0 && { attributes: result.attributes }
|
|
52028
52023
|
};
|
|
52029
52024
|
} catch (error) {
|
|
52030
52025
|
const msg = error instanceof Error ? error.message : String(error);
|
|
@@ -52167,11 +52162,14 @@ function buildStackState(stackName, region, rows, templateParser, template, exis
|
|
|
52167
52162
|
const tmplResource = template.Resources[row.logicalId];
|
|
52168
52163
|
if (!tmplResource) continue;
|
|
52169
52164
|
const deps = [...templateParser.extractDependencies(tmplResource)].filter((dep) => !parameterNames.has(dep));
|
|
52165
|
+
const prior = existingState?.resources[row.logicalId];
|
|
52166
|
+
const priorAttributes = prior && prior.physicalId === row.physicalId ? prior.attributes : void 0;
|
|
52167
|
+
const rowAttributes = row.attributes && Object.keys(row.attributes).length > 0 ? row.attributes : void 0;
|
|
52170
52168
|
resources[row.logicalId] = {
|
|
52171
52169
|
physicalId: row.physicalId,
|
|
52172
52170
|
resourceType: row.resourceType,
|
|
52173
52171
|
properties: tmplResource.Properties ?? {},
|
|
52174
|
-
attributes: {},
|
|
52172
|
+
attributes: rowAttributes ?? priorAttributes ?? {},
|
|
52175
52173
|
dependencies: deps,
|
|
52176
52174
|
provisionedBy: "sdk"
|
|
52177
52175
|
};
|
|
@@ -62140,7 +62138,7 @@ function reorderArgs(argv) {
|
|
|
62140
62138
|
async function main() {
|
|
62141
62139
|
installPipeCloseHandler();
|
|
62142
62140
|
const program = new Command();
|
|
62143
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.252.
|
|
62141
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.252.2");
|
|
62144
62142
|
program.addCommand(createBootstrapCommand());
|
|
62145
62143
|
program.addCommand(createSynthCommand());
|
|
62146
62144
|
program.addCommand(createListCommand());
|