@go-to-k/cdkd 0.3.1 → 0.3.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 +9 -9
- package/dist/cli.js.map +2 -2
- package/dist/go-to-k-cdkd-0.3.2.tgz +0 -0
- package/package.json +1 -1
- package/dist/go-to-k-cdkd-0.3.1.tgz +0 -0
package/dist/cli.js
CHANGED
|
@@ -11330,14 +11330,12 @@ var LambdaFunctionProvider = class {
|
|
|
11330
11330
|
this.logger.debug(
|
|
11331
11331
|
`Cleaning up Lambda VPC ENIs for function ${functionName} (timeout ${this.eniWaitTimeoutMs}ms)`
|
|
11332
11332
|
);
|
|
11333
|
-
const descriptionNeedle = `AWS Lambda VPC ENI`;
|
|
11334
|
-
const functionNamePattern = new RegExp(`(^|-)${escapeRegExp(functionName)}(-|$)`);
|
|
11335
11333
|
for (; ; ) {
|
|
11336
11334
|
attempt++;
|
|
11337
11335
|
let enis = [];
|
|
11338
11336
|
let listFailed = false;
|
|
11339
11337
|
try {
|
|
11340
|
-
enis = await this.listLambdaEnis(
|
|
11338
|
+
enis = await this.listLambdaEnis(functionName);
|
|
11341
11339
|
} catch (error) {
|
|
11342
11340
|
this.logger.warn(
|
|
11343
11341
|
`DescribeNetworkInterfaces failed while cleaning up Lambda ENIs of ${functionName}: ${error instanceof Error ? error.message : String(error)}`
|
|
@@ -11386,8 +11384,9 @@ var LambdaFunctionProvider = class {
|
|
|
11386
11384
|
* Server-side filter (`description`) does not support wildcards on this
|
|
11387
11385
|
* API, so we narrow with `requester-id` + match Description client-side.
|
|
11388
11386
|
*/
|
|
11389
|
-
async listLambdaEnis(
|
|
11387
|
+
async listLambdaEnis(functionName) {
|
|
11390
11388
|
const enis = [];
|
|
11389
|
+
const descriptionPrefix = "AWS Lambda VPC ENI-";
|
|
11391
11390
|
let nextToken;
|
|
11392
11391
|
do {
|
|
11393
11392
|
const resp = await this.ec2Client.send(
|
|
@@ -11401,7 +11400,11 @@ var LambdaFunctionProvider = class {
|
|
|
11401
11400
|
);
|
|
11402
11401
|
for (const ni of resp.NetworkInterfaces ?? []) {
|
|
11403
11402
|
const desc = ni.Description ?? "";
|
|
11404
|
-
if (ni.NetworkInterfaceId
|
|
11403
|
+
if (!ni.NetworkInterfaceId || !desc.startsWith(descriptionPrefix)) {
|
|
11404
|
+
continue;
|
|
11405
|
+
}
|
|
11406
|
+
const token = desc.slice(descriptionPrefix.length);
|
|
11407
|
+
if (functionName === token || functionName.startsWith(`${token}-`)) {
|
|
11405
11408
|
enis.push({ id: ni.NetworkInterfaceId, status: ni.Status ?? "unknown" });
|
|
11406
11409
|
}
|
|
11407
11410
|
}
|
|
@@ -11497,9 +11500,6 @@ var LambdaFunctionProvider = class {
|
|
|
11497
11500
|
return (crc ^ 4294967295) >>> 0;
|
|
11498
11501
|
}
|
|
11499
11502
|
};
|
|
11500
|
-
function escapeRegExp(input) {
|
|
11501
|
-
return input.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
11502
|
-
}
|
|
11503
11503
|
|
|
11504
11504
|
// src/provisioning/providers/lambda-permission-provider.ts
|
|
11505
11505
|
import {
|
|
@@ -27605,7 +27605,7 @@ function reorderArgs(argv) {
|
|
|
27605
27605
|
}
|
|
27606
27606
|
async function main() {
|
|
27607
27607
|
const program = new Command8();
|
|
27608
|
-
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.3.
|
|
27608
|
+
program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.3.2");
|
|
27609
27609
|
program.addCommand(createBootstrapCommand());
|
|
27610
27610
|
program.addCommand(createSynthCommand());
|
|
27611
27611
|
program.addCommand(createDeployCommand());
|