@go-to-k/cdkd 0.59.0 → 0.59.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 +29 -4
- package/dist/cli.js.map +2 -2
- package/dist/go-to-k-cdkd-0.59.1.tgz +0 -0
- package/dist/index.js +25 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/dist/go-to-k-cdkd-0.59.0.tgz +0 -0
package/dist/cli.js
CHANGED
|
@@ -5713,7 +5713,10 @@ import { GetFunctionUrlConfigCommand } from "@aws-sdk/client-lambda";
|
|
|
5713
5713
|
|
|
5714
5714
|
// src/deployment/intrinsic-function-resolver.ts
|
|
5715
5715
|
import { GetCallerIdentityCommand as GetCallerIdentityCommand3 } from "@aws-sdk/client-sts";
|
|
5716
|
-
import {
|
|
5716
|
+
import {
|
|
5717
|
+
DescribeAvailabilityZonesCommand as DescribeAvailabilityZonesCommand2,
|
|
5718
|
+
DescribeLaunchTemplatesCommand
|
|
5719
|
+
} from "@aws-sdk/client-ec2";
|
|
5717
5720
|
import { GetSecretValueCommand } from "@aws-sdk/client-secrets-manager";
|
|
5718
5721
|
import { GetParameterCommand as GetParameterCommand2 } from "@aws-sdk/client-ssm";
|
|
5719
5722
|
init_aws_clients();
|
|
@@ -6189,6 +6192,27 @@ var IntrinsicFunctionResolver = class {
|
|
|
6189
6192
|
return physicalId;
|
|
6190
6193
|
}
|
|
6191
6194
|
}
|
|
6195
|
+
if (resourceType === "AWS::EC2::LaunchTemplate") {
|
|
6196
|
+
if (attributeName === "LatestVersionNumber" || attributeName === "DefaultVersionNumber") {
|
|
6197
|
+
try {
|
|
6198
|
+
const clients = getAwsClients();
|
|
6199
|
+
const response = await clients.ec2.send(
|
|
6200
|
+
new DescribeLaunchTemplatesCommand({ LaunchTemplateIds: [physicalId] })
|
|
6201
|
+
);
|
|
6202
|
+
const lt = response.LaunchTemplates?.[0];
|
|
6203
|
+
const value = attributeName === "LatestVersionNumber" ? lt?.LatestVersionNumber : lt?.DefaultVersionNumber;
|
|
6204
|
+
if (value !== void 0 && value !== null) {
|
|
6205
|
+
return String(value);
|
|
6206
|
+
}
|
|
6207
|
+
} catch (err) {
|
|
6208
|
+
this.logger.warn(
|
|
6209
|
+
`DescribeLaunchTemplates(${physicalId}) failed for ${attributeName}: ${err instanceof Error ? err.message : String(err)}`
|
|
6210
|
+
);
|
|
6211
|
+
}
|
|
6212
|
+
return attributeName === "LatestVersionNumber" ? "$Latest" : "$Default";
|
|
6213
|
+
}
|
|
6214
|
+
return physicalId;
|
|
6215
|
+
}
|
|
6192
6216
|
this.logger.warn(
|
|
6193
6217
|
`Unknown attribute ${attributeName} for resource type ${resourceType}, returning physical ID`
|
|
6194
6218
|
);
|
|
@@ -40559,8 +40583,9 @@ var ASGProvider = class {
|
|
|
40559
40583
|
out.LaunchTemplateId = lt.LaunchTemplateId;
|
|
40560
40584
|
if (lt.LaunchTemplateName !== void 0)
|
|
40561
40585
|
out.LaunchTemplateName = lt.LaunchTemplateName;
|
|
40562
|
-
if (lt.Version !== void 0)
|
|
40563
|
-
out.Version = lt.Version;
|
|
40586
|
+
if (lt.Version !== void 0) {
|
|
40587
|
+
out.Version = String(lt.Version);
|
|
40588
|
+
}
|
|
40564
40589
|
if (out.LaunchTemplateId === void 0 && out.LaunchTemplateName === void 0) {
|
|
40565
40590
|
return void 0;
|
|
40566
40591
|
}
|
|
@@ -47187,7 +47212,7 @@ function reorderArgs(argv) {
|
|
|
47187
47212
|
}
|
|
47188
47213
|
async function main() {
|
|
47189
47214
|
const program = new Command14();
|
|
47190
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.59.
|
|
47215
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.59.1");
|
|
47191
47216
|
program.addCommand(createBootstrapCommand());
|
|
47192
47217
|
program.addCommand(createSynthCommand());
|
|
47193
47218
|
program.addCommand(createListCommand());
|