@friggframework/devtools 2.0.0--canary.517.9750290.0 → 2.0.0--canary.517.837ee90.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.
|
@@ -178,11 +178,8 @@ class AdminScriptBuilder extends InfrastructureBuilder {
|
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
createSchedulerResources(appDefinition, result) {
|
|
181
|
-
//
|
|
182
|
-
//
|
|
183
|
-
// edge from the scheduler role to the executor closed a cycle through the
|
|
184
|
-
// shared Lambda execution role (role → executor → IamRoleLambdaExecution
|
|
185
|
-
// → PassRole → role). The name is deterministic, so a Sub is safe.
|
|
181
|
+
// Constructed ARN, not Fn::GetAtt: a GetAtt edge to the executor closes a
|
|
182
|
+
// CloudFormation circular dependency via the shared Lambda execution role.
|
|
186
183
|
const executorArn = {
|
|
187
184
|
'Fn::Sub':
|
|
188
185
|
'arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${self:service}-${self:provider.stage}-adminScriptExecutor',
|
|
@@ -223,18 +220,10 @@ class AdminScriptBuilder extends InfrastructureBuilder {
|
|
|
223
220
|
},
|
|
224
221
|
};
|
|
225
222
|
|
|
226
|
-
// SCHEDULER_PROVIDER is a constant, so it's safe on the shared provider
|
|
227
|
-
// environment inherited by every function.
|
|
228
223
|
result.environment.SCHEDULER_PROVIDER = 'aws';
|
|
229
224
|
|
|
230
|
-
//
|
|
231
|
-
//
|
|
232
|
-
// handlers). Scope them to the router function rather than the shared
|
|
233
|
-
// provider environment: broadcasting the executor's own ARN into every
|
|
234
|
-
// function's env made the executor depend on itself, and the role/group
|
|
235
|
-
// refs made every function depend on the scheduler role — both closed
|
|
236
|
-
// CloudFormation circular dependencies on deploy. Names must match
|
|
237
|
-
// admin-script-router.js exactly.
|
|
225
|
+
// Router-scoped, not shared provider env: broadcasting these resource
|
|
226
|
+
// references to every function creates CloudFormation circular deps.
|
|
238
227
|
result.functions.adminScriptRouter.environment = {
|
|
239
228
|
...(result.functions.adminScriptRouter.environment || {}),
|
|
240
229
|
SCHEDULER_ROLE_ARN: {
|
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.517.
|
|
4
|
+
"version": "2.0.0--canary.517.837ee90.0",
|
|
5
5
|
"bin": {
|
|
6
6
|
"frigg": "./frigg-cli/index.js"
|
|
7
7
|
},
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"@babel/eslint-parser": "^7.18.9",
|
|
26
26
|
"@babel/parser": "^7.25.3",
|
|
27
27
|
"@babel/traverse": "^7.25.3",
|
|
28
|
-
"@friggframework/core": "2.0.0--canary.517.
|
|
29
|
-
"@friggframework/schemas": "2.0.0--canary.517.
|
|
30
|
-
"@friggframework/test": "2.0.0--canary.517.
|
|
28
|
+
"@friggframework/core": "2.0.0--canary.517.837ee90.0",
|
|
29
|
+
"@friggframework/schemas": "2.0.0--canary.517.837ee90.0",
|
|
30
|
+
"@friggframework/test": "2.0.0--canary.517.837ee90.0",
|
|
31
31
|
"@hapi/boom": "^10.0.1",
|
|
32
32
|
"@inquirer/prompts": "^5.3.8",
|
|
33
33
|
"axios": "^1.18.0",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"validate-npm-package-name": "^5.0.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@friggframework/eslint-config": "2.0.0--canary.517.
|
|
59
|
-
"@friggframework/prettier-config": "2.0.0--canary.517.
|
|
58
|
+
"@friggframework/eslint-config": "2.0.0--canary.517.837ee90.0",
|
|
59
|
+
"@friggframework/prettier-config": "2.0.0--canary.517.837ee90.0",
|
|
60
60
|
"aws-sdk-client-mock": "^4.1.0",
|
|
61
61
|
"aws-sdk-client-mock-jest": "^4.1.0",
|
|
62
62
|
"jest": "^30.1.3",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"publishConfig": {
|
|
89
89
|
"access": "public"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "837ee90500d8b87fbe9d904c1b64d0f1ce8b8f7a"
|
|
92
92
|
}
|