@friggframework/devtools 2.0.0--canary.490.60ef832.0 → 2.0.0--canary.490.e3e31cf.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.
@@ -163,6 +163,10 @@ class CloudFormationDiscovery {
163
163
  const associations = routeTable.Associations || [];
164
164
  const subnetAssociations = associations.filter(a => a.SubnetId);
165
165
 
166
+ console.log(` DEBUG: Route table has ${associations.length} associations, ${subnetAssociations.length} with SubnetId`);
167
+ console.log(` DEBUG: Route table structure:`, JSON.stringify(routeTable, null, 2).substring(0, 500));
168
+ console.log(` DEBUG: discovered.privateSubnetId1 = ${discovered.privateSubnetId1}, discovered.privateSubnetId2 = ${discovered.privateSubnetId2}`);
169
+
166
170
  if (subnetAssociations.length >= 1 && !discovered.privateSubnetId1) {
167
171
  discovered.privateSubnetId1 = subnetAssociations[0].SubnetId;
168
172
  console.log(` ✓ Extracted private subnet 1 from associations: ${subnetAssociations[0].SubnetId}`);
@@ -368,6 +372,18 @@ class CloudFormationDiscovery {
368
372
  }
369
373
  discovered.routeTableAssociations.push(PhysicalResourceId);
370
374
  console.log(` ✓ Found route table association: ${LogicalResourceId}`);
375
+
376
+ // CRITICAL: Extract subnet ID from association physical ID by querying EC2
377
+ // Physical ID is the association ID (rtbassoc-xxx), need to query to get subnet
378
+ if (this.provider && this.provider.getEC2Client &&
379
+ (LogicalResourceId === 'FriggSubnet1RouteAssociation' || LogicalResourceId === 'FriggPrivateSubnet1RouteTableAssociation')) {
380
+ // Store association ID to query later (after loop)
381
+ discovered._subnet1AssociationId = PhysicalResourceId;
382
+ }
383
+ if (this.provider && this.provider.getEC2Client &&
384
+ (LogicalResourceId === 'FriggSubnet2RouteAssociation' || LogicalResourceId === 'FriggPrivateSubnet2RouteTableAssociation')) {
385
+ discovered._subnet2AssociationId = PhysicalResourceId;
386
+ }
371
387
  }
372
388
 
373
389
  // VPC - direct extraction (primary method)
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.60ef832.0",
4
+ "version": "2.0.0--canary.490.e3e31cf.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.60ef832.0",
20
- "@friggframework/schemas": "2.0.0--canary.490.60ef832.0",
21
- "@friggframework/test": "2.0.0--canary.490.60ef832.0",
19
+ "@friggframework/core": "2.0.0--canary.490.e3e31cf.0",
20
+ "@friggframework/schemas": "2.0.0--canary.490.e3e31cf.0",
21
+ "@friggframework/test": "2.0.0--canary.490.e3e31cf.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.60ef832.0",
50
- "@friggframework/prettier-config": "2.0.0--canary.490.60ef832.0",
49
+ "@friggframework/eslint-config": "2.0.0--canary.490.e3e31cf.0",
50
+ "@friggframework/prettier-config": "2.0.0--canary.490.e3e31cf.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": "60ef8320ad8f16dbc86b2d63ee9059b637ca5d6d"
82
+ "gitHead": "e3e31cf34e6195098c2b8fec081c4d81db52cdda"
83
83
  }