@friggframework/devtools 2.0.0--canary.490.f35ca40.0 → 2.0.0--canary.490.9560a9b.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.
|
@@ -580,7 +580,7 @@ class CloudFormationDiscovery {
|
|
|
580
580
|
|
|
581
581
|
console.log(` Route table has ${associatedSubnetIds.length} associated subnets: ${associatedSubnetIds.join(', ')}`);
|
|
582
582
|
|
|
583
|
-
// Use the associated subnets
|
|
583
|
+
// Use the associated subnets if available
|
|
584
584
|
if (associatedSubnetIds.length >= 2) {
|
|
585
585
|
discovered.privateSubnetId1 = associatedSubnetIds[0];
|
|
586
586
|
discovered.privateSubnetId2 = associatedSubnetIds[1];
|
|
@@ -590,6 +590,13 @@ class CloudFormationDiscovery {
|
|
|
590
590
|
discovered.privateSubnetId1 = associatedSubnetIds[0];
|
|
591
591
|
discovered.privateSubnetId2 = subnetsResponse.Subnets.find(s => s.SubnetId !== associatedSubnetIds[0])?.SubnetId;
|
|
592
592
|
console.log(` ✓ Extracted subnets (1 from route table, 1 fallback): ${discovered.privateSubnetId1}, ${discovered.privateSubnetId2}`);
|
|
593
|
+
} else if (subnetsResponse.Subnets.length >= 2) {
|
|
594
|
+
// CRITICAL: Frontify scenario - route table Associations array is EMPTY even when queried by ID!
|
|
595
|
+
// But we have subnet associations in CloudFormation stack
|
|
596
|
+
// Fallback: Use first 2 subnets from VPC (they're all in the same VPC so should work)
|
|
597
|
+
discovered.privateSubnetId1 = subnetsResponse.Subnets[0].SubnetId;
|
|
598
|
+
discovered.privateSubnetId2 = subnetsResponse.Subnets[1].SubnetId;
|
|
599
|
+
console.log(` ✓ Extracted subnets from VPC (route table Associations empty, using first 2): ${discovered.privateSubnetId1}, ${discovered.privateSubnetId2}`);
|
|
593
600
|
}
|
|
594
601
|
}
|
|
595
602
|
}
|
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.
|
|
4
|
+
"version": "2.0.0--canary.490.9560a9b.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.
|
|
20
|
-
"@friggframework/schemas": "2.0.0--canary.490.
|
|
21
|
-
"@friggframework/test": "2.0.0--canary.490.
|
|
19
|
+
"@friggframework/core": "2.0.0--canary.490.9560a9b.0",
|
|
20
|
+
"@friggframework/schemas": "2.0.0--canary.490.9560a9b.0",
|
|
21
|
+
"@friggframework/test": "2.0.0--canary.490.9560a9b.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.
|
|
50
|
-
"@friggframework/prettier-config": "2.0.0--canary.490.
|
|
49
|
+
"@friggframework/eslint-config": "2.0.0--canary.490.9560a9b.0",
|
|
50
|
+
"@friggframework/prettier-config": "2.0.0--canary.490.9560a9b.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": "
|
|
82
|
+
"gitHead": "9560a9bf0be12cb112a080b64b479c7d94f76e9c"
|
|
83
83
|
}
|