@go-to-k/cdkd 0.3.5 → 0.3.6

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 CHANGED
@@ -11432,10 +11432,14 @@ var LambdaFunctionProvider = class {
11432
11432
  }
11433
11433
  /**
11434
11434
  * List Lambda-managed ENIs for the given function, paginating through
11435
- * DescribeNetworkInterfaces and filtering on Description substring.
11435
+ * DescribeNetworkInterfaces and filtering on Description.
11436
11436
  *
11437
- * Server-side filter (`description`) does not support wildcards on this
11438
- * API, so we narrow with `requester-id` + match Description client-side.
11437
+ * We filter directly on `description=AWS Lambda VPC ENI-*` (the EC2 API
11438
+ * supports `*` wildcards on this filter same approach as delstack). An
11439
+ * earlier attempt narrowed with `requester-id=*:awslambda_*`, but real
11440
+ * Lambda hyperplane ENIs carry a RequesterId of the form
11441
+ * `AROAXXX...:<account-id>` (no literal "awslambda" substring), so that
11442
+ * filter matched nothing and the cleanup loop quietly listed zero ENIs.
11439
11443
  */
11440
11444
  async listLambdaEnis(functionName) {
11441
11445
  const enis = [];
@@ -11444,10 +11448,7 @@ var LambdaFunctionProvider = class {
11444
11448
  do {
11445
11449
  const resp = await this.ec2Client.send(
11446
11450
  new DescribeNetworkInterfacesCommand({
11447
- Filters: [
11448
- // Lambda hyperplane ENIs are owned by the Lambda service principal.
11449
- { Name: "requester-id", Values: ["*:awslambda_*"] }
11450
- ],
11451
+ Filters: [{ Name: "description", Values: [`${descriptionPrefix}*`] }],
11451
11452
  NextToken: nextToken
11452
11453
  })
11453
11454
  );
@@ -14407,7 +14408,10 @@ var EC2Provider = class {
14407
14408
  new DescribeNetworkInterfacesCommand2({
14408
14409
  Filters: [
14409
14410
  { Name: "subnet-id", Values: [subnetId] },
14410
- { Name: "requester-id", Values: ["*:awslambda_*"] }
14411
+ // `description` filter is the only reliable way to find Lambda
14412
+ // hyperplane ENIs — `requester-id` does not actually contain the
14413
+ // string "awslambda" (it is an AROA principal id).
14414
+ { Name: "description", Values: ["AWS Lambda VPC ENI-*"] }
14411
14415
  ]
14412
14416
  })
14413
14417
  );
@@ -14965,7 +14969,9 @@ var EC2Provider = class {
14965
14969
  new DescribeNetworkInterfacesCommand2({
14966
14970
  Filters: [
14967
14971
  { Name: "group-id", Values: [groupId] },
14968
- { Name: "requester-id", Values: ["*:awslambda_*"] }
14972
+ // See cleanupSubnetLambdaEnis: requester-id does not contain
14973
+ // "awslambda" — filter on description instead.
14974
+ { Name: "description", Values: ["AWS Lambda VPC ENI-*"] }
14969
14975
  ]
14970
14976
  })
14971
14977
  );
@@ -27762,7 +27768,7 @@ function reorderArgs(argv) {
27762
27768
  }
27763
27769
  async function main() {
27764
27770
  const program = new Command8();
27765
- program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.3.5");
27771
+ program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.3.6");
27766
27772
  program.addCommand(createBootstrapCommand());
27767
27773
  program.addCommand(createSynthCommand());
27768
27774
  program.addCommand(createDeployCommand());