@friggframework/devtools 2.0.0--canary.461.fa770c1.0 → 2.0.0--canary.461.9c16b2e.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.
@@ -367,10 +367,13 @@ class MigrationBuilder extends InfrastructureBuilder {
367
367
 
368
368
  // Add IAM permission for router to invoke worker Lambda
369
369
  // Router invokes worker for database state checks (keeps router lightweight)
370
+ // Use Fn::Sub to avoid circular dependency (IAM role → Lambda → IAM role)
370
371
  result.iamStatements.push({
371
372
  Effect: 'Allow',
372
373
  Action: ['lambda:InvokeFunction'],
373
- Resource: { 'Fn::GetAtt': ['DbMigrationWorkerLambdaFunction', 'Arn'] },
374
+ Resource: {
375
+ 'Fn::Sub': 'arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${AWS::StackName}-dbMigrationWorker',
376
+ },
374
377
  });
375
378
 
376
379
  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.fa770c1.0",
4
+ "version": "2.0.0--canary.461.9c16b2e.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.fa770c1.0",
15
- "@friggframework/test": "2.0.0--canary.461.fa770c1.0",
14
+ "@friggframework/schemas": "2.0.0--canary.461.9c16b2e.0",
15
+ "@friggframework/test": "2.0.0--canary.461.9c16b2e.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.fa770c1.0",
38
- "@friggframework/prettier-config": "2.0.0--canary.461.fa770c1.0",
37
+ "@friggframework/eslint-config": "2.0.0--canary.461.9c16b2e.0",
38
+ "@friggframework/prettier-config": "2.0.0--canary.461.9c16b2e.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": "fa770c14042eacc322cb204dd0886d913938ec11"
73
+ "gitHead": "9c16b2ef70b6600db5b3b58b85210236ffec88ad"
74
74
  }