@friggframework/devtools 2.0.0--canary.461.fa770c1.0 → 2.0.0--canary.461.41b7566.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.
|
@@ -113,6 +113,11 @@ class MigrationBuilder extends InfrastructureBuilder {
|
|
|
113
113
|
// Package configuration for migration WORKER (needs Prisma CLI with WASM)
|
|
114
114
|
const migrationWorkerPackageConfig = {
|
|
115
115
|
individually: true,
|
|
116
|
+
include: [
|
|
117
|
+
// Explicitly include Prisma CLI and WASM files (needed for migrate commands)
|
|
118
|
+
'node_modules/prisma/**',
|
|
119
|
+
'node_modules/.bin/prisma',
|
|
120
|
+
],
|
|
116
121
|
exclude: [
|
|
117
122
|
// Exclude Prisma runtime client - it's in the Lambda Layer
|
|
118
123
|
'node_modules/@prisma/client/**',
|
|
@@ -367,10 +372,13 @@ class MigrationBuilder extends InfrastructureBuilder {
|
|
|
367
372
|
|
|
368
373
|
// Add IAM permission for router to invoke worker Lambda
|
|
369
374
|
// Router invokes worker for database state checks (keeps router lightweight)
|
|
375
|
+
// Use Fn::Sub to avoid circular dependency (IAM role → Lambda → IAM role)
|
|
370
376
|
result.iamStatements.push({
|
|
371
377
|
Effect: 'Allow',
|
|
372
378
|
Action: ['lambda:InvokeFunction'],
|
|
373
|
-
Resource: {
|
|
379
|
+
Resource: {
|
|
380
|
+
'Fn::Sub': 'arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${AWS::StackName}-dbMigrationWorker',
|
|
381
|
+
},
|
|
374
382
|
});
|
|
375
383
|
|
|
376
384
|
console.log(' ✓ Added Lambda invocation permissions for router → worker');
|
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.
|
|
4
|
+
"version": "2.0.0--canary.461.41b7566.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.
|
|
15
|
-
"@friggframework/test": "2.0.0--canary.461.
|
|
14
|
+
"@friggframework/schemas": "2.0.0--canary.461.41b7566.0",
|
|
15
|
+
"@friggframework/test": "2.0.0--canary.461.41b7566.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.
|
|
38
|
-
"@friggframework/prettier-config": "2.0.0--canary.461.
|
|
37
|
+
"@friggframework/eslint-config": "2.0.0--canary.461.41b7566.0",
|
|
38
|
+
"@friggframework/prettier-config": "2.0.0--canary.461.41b7566.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": "
|
|
73
|
+
"gitHead": "41b7566abaa46939705d52e01904022e52cdd06a"
|
|
74
74
|
}
|