@friggframework/devtools 2.0.0--canary.461.3cd0786.0 → 2.0.0--canary.461.e4a989e.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.
@@ -176,6 +176,7 @@ class AuroraBuilder extends InfrastructureBuilder {
176
176
  Engine: 'aurora-postgresql',
177
177
  EngineMode: 'provisioned',
178
178
  EngineVersion: '15.5',
179
+ Port: 5432, // Explicitly set PostgreSQL port (AWS may not auto-detect)
179
180
  DatabaseName: dbConfig.database || 'frigg',
180
181
  MasterUsername: {
181
182
  'Fn::Sub': '{{resolve:secretsmanager:${FriggDBSecret}:SecretString:username}}',
@@ -187,7 +188,8 @@ class AuroraBuilder extends InfrastructureBuilder {
187
188
  VpcSecurityGroupIds: discoveredResources.vpcSecurityGroupIds || [
188
189
  { Ref: 'FriggLambdaSecurityGroup' },
189
190
  ],
190
- PubliclyAccessible: publiclyAccessible,
191
+ // Note: PubliclyAccessible is NOT supported on Aurora clusters
192
+ // It should only be set on DB instances (see FriggAuroraInstance below)
191
193
  ServerlessV2ScalingConfiguration: {
192
194
  MinCapacity: dbConfig.minCapacity || 0.5,
193
195
  MaxCapacity: dbConfig.maxCapacity || 1,
@@ -625,6 +625,12 @@ describe('AuroraBuilder', () => {
625
625
 
626
626
  expect(result.resources.FriggAuroraCluster).toBeDefined();
627
627
  expect(result.resources.FriggAuroraCluster.Type).toBe('AWS::RDS::DBCluster');
628
+
629
+ // PubliclyAccessible is NOT supported on Aurora clusters (only on instances)
630
+ expect(result.resources.FriggAuroraCluster.Properties.PubliclyAccessible).toBeUndefined();
631
+
632
+ // Port should be explicitly set to PostgreSQL standard (5432)
633
+ expect(result.resources.FriggAuroraCluster.Properties.Port).toBe(5432);
628
634
  });
629
635
 
630
636
  it('should create database subnet group', async () => {
@@ -206,11 +206,11 @@ describe('MigrationBuilder', () => {
206
206
 
207
207
  // Should NOT exclude generated Prisma clients/schemas - worker needs them
208
208
  expect(packageConfig.exclude).not.toContain('node_modules/@friggframework/core/generated/**');
209
-
209
+
210
210
  // Should NOT exclude migration handlers - they're needed!
211
211
  expect(packageConfig.exclude).not.toContain('node_modules/@friggframework/core/handlers/routers/**');
212
212
  expect(packageConfig.exclude).not.toContain('node_modules/@friggframework/core/handlers/workers/**');
213
-
213
+
214
214
  // Should NOT exclude integrations module - migration router needs process-repository-factory
215
215
  expect(packageConfig.exclude).not.toContain('node_modules/@friggframework/core/integrations/**');
216
216
  });
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.461.3cd0786.0",
4
+ "version": "2.0.0--canary.461.e4a989e.0",
5
5
  "dependencies": {
6
6
  "@aws-sdk/client-ec2": "^3.835.0",
7
7
  "@aws-sdk/client-kms": "^3.835.0",
@@ -11,8 +11,8 @@
11
11
  "@babel/eslint-parser": "^7.18.9",
12
12
  "@babel/parser": "^7.25.3",
13
13
  "@babel/traverse": "^7.25.3",
14
- "@friggframework/schemas": "2.0.0--canary.461.3cd0786.0",
15
- "@friggframework/test": "2.0.0--canary.461.3cd0786.0",
14
+ "@friggframework/schemas": "2.0.0--canary.461.e4a989e.0",
15
+ "@friggframework/test": "2.0.0--canary.461.e4a989e.0",
16
16
  "@hapi/boom": "^10.0.1",
17
17
  "@inquirer/prompts": "^5.3.8",
18
18
  "axios": "^1.7.2",
@@ -34,8 +34,8 @@
34
34
  "serverless-http": "^2.7.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@friggframework/eslint-config": "2.0.0--canary.461.3cd0786.0",
38
- "@friggframework/prettier-config": "2.0.0--canary.461.3cd0786.0",
37
+ "@friggframework/eslint-config": "2.0.0--canary.461.e4a989e.0",
38
+ "@friggframework/prettier-config": "2.0.0--canary.461.e4a989e.0",
39
39
  "aws-sdk-client-mock": "^4.1.0",
40
40
  "aws-sdk-client-mock-jest": "^4.1.0",
41
41
  "jest": "^30.1.3",
@@ -70,5 +70,5 @@
70
70
  "publishConfig": {
71
71
  "access": "public"
72
72
  },
73
- "gitHead": "3cd07868e500ff6df4c00c5c2d2d9539f045d0ca"
73
+ "gitHead": "e4a989e8eaa78cd8020962c0fc7f52b06d2565cb"
74
74
  }