@friggframework/devtools 2.0.0--canary.490.e01df69.0 → 2.0.0--canary.490.aa04da7.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.
@@ -122,6 +122,13 @@ class VpcResourceResolver extends BaseResourceResolver {
122
122
  const lambdaSgId = structured.lambdaSecurityGroupId || discovery.lambdaSecurityGroupId;
123
123
  const defaultSgId = structured.defaultSecurityGroupId || discovery.defaultSecurityGroupId;
124
124
 
125
+ // Debug logging to understand what's happening
126
+ console.log(` DEBUG: resolveSecurityGroup - ownership='external'`);
127
+ console.log(` lambdaSgId: ${lambdaSgId}`);
128
+ console.log(` defaultSgId: ${defaultSgId}`);
129
+ console.log(` discovery keys: ${Object.keys(discovery).join(', ')}`);
130
+ console.log(` structured keys: ${Object.keys(structured).join(', ')}`);
131
+
125
132
  // If we have a default SG AND it's different from the lambda SG, use the default
126
133
  if (defaultSgId && defaultSgId !== lambdaSgId) {
127
134
  return this.createExternalDecision(
@@ -130,7 +137,7 @@ class VpcResourceResolver extends BaseResourceResolver {
130
137
  );
131
138
  }
132
139
 
133
- // If only lambdaSgId exists, that means defaultSgId wasn't discovered
140
+ // If only defaultSgId exists (no lambdaSgId), use it
134
141
  if (defaultSgId && !lambdaSgId) {
135
142
  return this.createExternalDecision(
136
143
  [defaultSgId],
@@ -419,8 +419,7 @@ class CloudFormationDiscovery {
419
419
  // Lambda Security Group (if created in stack)
420
420
  if (LogicalResourceId === 'FriggLambdaSecurityGroup' && ResourceType === 'AWS::EC2::SecurityGroup') {
421
421
  discovered.lambdaSecurityGroupId = PhysicalResourceId;
422
- // Also set as defaultSecurityGroupId so converter recognizes it
423
- discovered.defaultSecurityGroupId = PhysicalResourceId;
422
+ // DO NOT overwrite defaultSecurityGroupId - that should only be the VPC's default SG
424
423
  console.log(` ✓ Found Lambda security group in stack: ${PhysicalResourceId}`);
425
424
  }
426
425
 
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.e01df69.0",
4
+ "version": "2.0.0--canary.490.aa04da7.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.e01df69.0",
20
- "@friggframework/schemas": "2.0.0--canary.490.e01df69.0",
21
- "@friggframework/test": "2.0.0--canary.490.e01df69.0",
19
+ "@friggframework/core": "2.0.0--canary.490.aa04da7.0",
20
+ "@friggframework/schemas": "2.0.0--canary.490.aa04da7.0",
21
+ "@friggframework/test": "2.0.0--canary.490.aa04da7.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.e01df69.0",
50
- "@friggframework/prettier-config": "2.0.0--canary.490.e01df69.0",
49
+ "@friggframework/eslint-config": "2.0.0--canary.490.aa04da7.0",
50
+ "@friggframework/prettier-config": "2.0.0--canary.490.aa04da7.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": "e01df6929184675de7553c9bb7388c31976988cb"
82
+ "gitHead": "aa04da7877661300be820bbe4b08f71984db82c7"
83
83
  }