@friggframework/devtools 2.0.0--canary.531.eb2e0bb.0 → 2.0.0--canary.531.5b60782.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.
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
|
|
15
15
|
const { InfrastructureBuilder, ValidationResult } = require('../shared/base-builder');
|
|
16
16
|
|
|
17
|
-
const SCHEDULE_GROUP_NAME = 'frigg-integration-schedules';
|
|
18
|
-
|
|
19
17
|
class SchedulerBuilder extends InfrastructureBuilder {
|
|
20
18
|
constructor() {
|
|
21
19
|
super();
|
|
@@ -80,16 +78,19 @@ class SchedulerBuilder extends InfrastructureBuilder {
|
|
|
80
78
|
|
|
81
79
|
/**
|
|
82
80
|
* Create EventBridge Scheduler ScheduleGroup
|
|
81
|
+
* Uses stage-specific naming to allow multiple deployments in same AWS account
|
|
83
82
|
*/
|
|
84
83
|
createScheduleGroup(result) {
|
|
84
|
+
const scheduleGroupName = '${self:service}-${self:provider.stage}-schedules';
|
|
85
|
+
|
|
85
86
|
result.resources.FriggScheduleGroup = {
|
|
86
87
|
Type: 'AWS::Scheduler::ScheduleGroup',
|
|
87
88
|
Properties: {
|
|
88
|
-
Name:
|
|
89
|
+
Name: scheduleGroupName,
|
|
89
90
|
},
|
|
90
91
|
};
|
|
91
92
|
|
|
92
|
-
console.log(` ✓ Created ScheduleGroup: ${
|
|
93
|
+
console.log(` ✓ Created ScheduleGroup: ${scheduleGroupName}`);
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
/**
|
|
@@ -171,7 +172,10 @@ class SchedulerBuilder extends InfrastructureBuilder {
|
|
|
171
172
|
'scheduler:GetSchedule',
|
|
172
173
|
],
|
|
173
174
|
Resource: {
|
|
174
|
-
'Fn::Sub':
|
|
175
|
+
'Fn::Sub': [
|
|
176
|
+
'arn:aws:scheduler:${AWS::Region}:${AWS::AccountId}:schedule/${GroupName}/*',
|
|
177
|
+
{ GroupName: { Ref: 'FriggScheduleGroup' } },
|
|
178
|
+
],
|
|
175
179
|
},
|
|
176
180
|
},
|
|
177
181
|
{
|
|
@@ -196,9 +200,12 @@ class SchedulerBuilder extends InfrastructureBuilder {
|
|
|
196
200
|
result.environment.SCHEDULER_ROLE_ARN = {
|
|
197
201
|
'Fn::GetAtt': ['SchedulerExecutionRole', 'Arn'],
|
|
198
202
|
};
|
|
203
|
+
result.environment.SCHEDULE_GROUP_NAME = {
|
|
204
|
+
Ref: 'FriggScheduleGroup',
|
|
205
|
+
};
|
|
199
206
|
|
|
200
207
|
console.log(' ✓ Added scheduler environment variables');
|
|
201
208
|
}
|
|
202
209
|
}
|
|
203
210
|
|
|
204
|
-
module.exports = { SchedulerBuilder
|
|
211
|
+
module.exports = { SchedulerBuilder };
|
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.531.
|
|
4
|
+
"version": "2.0.0--canary.531.5b60782.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.531.
|
|
29
|
-
"@friggframework/schemas": "2.0.0--canary.531.
|
|
30
|
-
"@friggframework/test": "2.0.0--canary.531.
|
|
28
|
+
"@friggframework/core": "2.0.0--canary.531.5b60782.0",
|
|
29
|
+
"@friggframework/schemas": "2.0.0--canary.531.5b60782.0",
|
|
30
|
+
"@friggframework/test": "2.0.0--canary.531.5b60782.0",
|
|
31
31
|
"@hapi/boom": "^10.0.1",
|
|
32
32
|
"@inquirer/prompts": "^5.3.8",
|
|
33
33
|
"axios": "^1.7.2",
|
|
@@ -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.531.
|
|
59
|
-
"@friggframework/prettier-config": "2.0.0--canary.531.
|
|
58
|
+
"@friggframework/eslint-config": "2.0.0--canary.531.5b60782.0",
|
|
59
|
+
"@friggframework/prettier-config": "2.0.0--canary.531.5b60782.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": "5b607824c46df14b9597c489f4d2a9fbd5f0c8a7"
|
|
92
92
|
}
|