@friggframework/devtools 2.0.0--canary.490.83d98eb.0 → 2.0.0--canary.490.2276530.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.
@@ -563,18 +563,25 @@ class CloudFormationDiscovery {
563
563
  // Query route table by association ID to get subnet
564
564
  const rtResponse = await ec2.send(new DescribeRouteTablesCommand({
565
565
  Filters: [
566
- { Name: 'association.association-id', Values: [discovered._subnet1AssociationId] }
566
+ { Name: 'association.route-table-association-id', Values: [discovered._subnet1AssociationId] }
567
567
  ]
568
568
  }));
569
569
 
570
+ console.log(` DEBUG: Query returned ${rtResponse.RouteTables?.length || 0} route tables`);
570
571
  if (rtResponse.RouteTables && rtResponse.RouteTables[0]) {
572
+ console.log(` DEBUG: First route table has ${rtResponse.RouteTables[0].Associations?.length || 0} associations`);
571
573
  const assoc = rtResponse.RouteTables[0].Associations.find(a =>
572
574
  a.RouteTableAssociationId === discovered._subnet1AssociationId
573
575
  );
576
+ console.log(` DEBUG: Found matching association: ${!!assoc}, has SubnetId: ${!!assoc?.SubnetId}`);
574
577
  if (assoc && assoc.SubnetId) {
575
578
  discovered.privateSubnetId1 = assoc.SubnetId;
576
579
  console.log(` ✓ Extracted private subnet 1 from association query: ${assoc.SubnetId}`);
580
+ } else {
581
+ console.warn(` ⚠️ Association found but no SubnetId in response`);
577
582
  }
583
+ } else {
584
+ console.warn(` ⚠️ No route tables returned for association ${discovered._subnet1AssociationId}`);
578
585
  }
579
586
  } catch (error) {
580
587
  console.warn(` ⚠️ Could not query subnet from association: ${error.message}`);
@@ -588,18 +595,25 @@ class CloudFormationDiscovery {
588
595
 
589
596
  const rtResponse = await ec2.send(new DescribeRouteTablesCommand({
590
597
  Filters: [
591
- { Name: 'association.association-id', Values: [discovered._subnet2AssociationId] }
598
+ { Name: 'association.route-table-association-id', Values: [discovered._subnet2AssociationId] }
592
599
  ]
593
600
  }));
594
601
 
602
+ console.log(` DEBUG: Query returned ${rtResponse.RouteTables?.length || 0} route tables for subnet 2`);
595
603
  if (rtResponse.RouteTables && rtResponse.RouteTables[0]) {
604
+ console.log(` DEBUG: First route table has ${rtResponse.RouteTables[0].Associations?.length || 0} associations`);
596
605
  const assoc = rtResponse.RouteTables[0].Associations.find(a =>
597
606
  a.RouteTableAssociationId === discovered._subnet2AssociationId
598
607
  );
608
+ console.log(` DEBUG: Found matching association for subnet 2: ${!!assoc}, has SubnetId: ${!!assoc?.SubnetId}`);
599
609
  if (assoc && assoc.SubnetId) {
600
610
  discovered.privateSubnetId2 = assoc.SubnetId;
601
611
  console.log(` ✓ Extracted private subnet 2 from association query: ${assoc.SubnetId}`);
612
+ } else {
613
+ console.warn(` ⚠️ Association found but no SubnetId in response for subnet 2`);
602
614
  }
615
+ } else {
616
+ console.warn(` ⚠️ No route tables returned for association ${discovered._subnet2AssociationId}`);
603
617
  }
604
618
  } catch (error) {
605
619
  console.warn(` ⚠️ Could not query subnet from association: ${error.message}`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@friggframework/devtools",
3
3
  "prettier": "@friggframework/prettier-config",
4
- "version": "2.0.0--canary.490.83d98eb.0",
4
+ "version": "2.0.0--canary.490.2276530.0",
5
5
  "bin": {
6
6
  "frigg": "./frigg-cli/index.js"
7
7
  },
@@ -16,9 +16,9 @@
16
16
  "@babel/eslint-parser": "^7.18.9",
17
17
  "@babel/parser": "^7.25.3",
18
18
  "@babel/traverse": "^7.25.3",
19
- "@friggframework/core": "2.0.0--canary.490.83d98eb.0",
20
- "@friggframework/schemas": "2.0.0--canary.490.83d98eb.0",
21
- "@friggframework/test": "2.0.0--canary.490.83d98eb.0",
19
+ "@friggframework/core": "2.0.0--canary.490.2276530.0",
20
+ "@friggframework/schemas": "2.0.0--canary.490.2276530.0",
21
+ "@friggframework/test": "2.0.0--canary.490.2276530.0",
22
22
  "@hapi/boom": "^10.0.1",
23
23
  "@inquirer/prompts": "^5.3.8",
24
24
  "axios": "^1.7.2",
@@ -46,8 +46,8 @@
46
46
  "validate-npm-package-name": "^5.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@friggframework/eslint-config": "2.0.0--canary.490.83d98eb.0",
50
- "@friggframework/prettier-config": "2.0.0--canary.490.83d98eb.0",
49
+ "@friggframework/eslint-config": "2.0.0--canary.490.2276530.0",
50
+ "@friggframework/prettier-config": "2.0.0--canary.490.2276530.0",
51
51
  "aws-sdk-client-mock": "^4.1.0",
52
52
  "aws-sdk-client-mock-jest": "^4.1.0",
53
53
  "jest": "^30.1.3",
@@ -79,5 +79,5 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "gitHead": "83d98eb69c36a73f76db1a7289e6b282178b6b5b"
82
+ "gitHead": "2276530f198e87c5fa59c08afab91bf6dcd25625"
83
83
  }