rds-database-running-scheduler 0.5.2 → 0.6.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.
- package/.jsii +107 -37
- package/API.md +107 -9
- package/README.md +101 -24
- package/assets/funcs/running-schedule.lambda/index.js +2962 -758
- package/assets/funcs/running-schedule.lambda/index.js.map +4 -4
- package/lib/funcs/core/running-schedule-discovery.d.ts +31 -0
- package/lib/funcs/core/running-schedule-discovery.js +74 -0
- package/lib/funcs/core/running-schedule-errors.d.ts +7 -0
- package/lib/funcs/core/running-schedule-errors.js +13 -2
- package/lib/funcs/core/running-schedule-wait.d.ts +44 -18
- package/lib/funcs/core/running-schedule-wait.js +38 -20
- package/lib/funcs/running-schedule.lambda.d.ts +4 -27
- package/lib/funcs/running-schedule.lambda.js +221 -86
- package/lib/rds-database-running-schedule-stack.d.ts +1 -1
- package/lib/rds-database-running-schedule-stack.js +5 -3
- package/lib/rds-database-running-scheduler.d.ts +39 -8
- package/lib/rds-database-running-scheduler.js +126 -19
- package/lib/settings/consts.d.ts +22 -0
- package/lib/settings/consts.js +19 -2
- package/package.json +11 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rds-database-running-scheduler",
|
|
3
|
-
"description": "This AWS CDK construct controls the start and stop of RDS DB instances and Aurora clusters based on resource tags. EventBridge Scheduler invokes a durable Lambda function on a cron schedule so databases run only during defined working hours. The Lambda discovers tagged resources account
|
|
3
|
+
"description": "This AWS CDK construct controls the start and stop of RDS DB instances and Aurora clusters based on resource tags. EventBridge Scheduler invokes a durable Lambda function on a cron schedule so databases run only during defined working hours. The Lambda discovers tagged resources in every enabled region of the account (or only in the regions given by targetRegions) via the Resource Groups Tagging API, deduplicates Aurora cluster member instances when the parent cluster is also tagged, and controls each remaining resource using the region encoded in its ARN. Default schedule: start 07:50 UTC, stop 19:05 UTC, Monday–Friday.",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/gammarers-aws-cdk-constructs/rds-database-running-scheduler.git"
|
|
@@ -40,10 +40,12 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@aws-sdk/client-cost-explorer": "^3.1087.0",
|
|
43
|
+
"@aws-sdk/client-ec2": "^3.1087.0",
|
|
43
44
|
"@aws-sdk/client-lambda": "^3.1087.0",
|
|
44
45
|
"@aws-sdk/client-rds": "^3.1087.0",
|
|
45
46
|
"@aws-sdk/client-resource-groups-tagging-api": "^3.1087.0",
|
|
46
|
-
"@aws/durable-execution-sdk-js": "^
|
|
47
|
+
"@aws/durable-execution-sdk-js": "^2.7.1",
|
|
48
|
+
"@aws/durable-execution-sdk-js-testing": "^1.3.2",
|
|
47
49
|
"@gammarers/projen-projects": "^0.5.1",
|
|
48
50
|
"@slack/web-api": "^6.13.0",
|
|
49
51
|
"@stylistic/eslint-plugin": "^2",
|
|
@@ -65,11 +67,12 @@
|
|
|
65
67
|
"jest": "^30.5.2",
|
|
66
68
|
"jest-junit": "^17",
|
|
67
69
|
"jsii": "6.0.x",
|
|
68
|
-
"jsii-diff": "^1.
|
|
70
|
+
"jsii-diff": "^1.142.0",
|
|
69
71
|
"jsii-docgen": "^10.5.0",
|
|
70
|
-
"jsii-pacmak": "^1.
|
|
72
|
+
"jsii-pacmak": "^1.142.0",
|
|
71
73
|
"jsii-rosetta": "6.0.x",
|
|
72
|
-
"
|
|
74
|
+
"lambda-failure-detector": "0.2.1",
|
|
75
|
+
"projen": "^0.104.14",
|
|
73
76
|
"strict-env-resolver": "^0.5.2",
|
|
74
77
|
"ts-jest": "^29.4.15",
|
|
75
78
|
"ts-node": "^10.9.2",
|
|
@@ -77,7 +80,8 @@
|
|
|
77
80
|
},
|
|
78
81
|
"peerDependencies": {
|
|
79
82
|
"aws-cdk-lib": "^2.232.0",
|
|
80
|
-
"constructs": "^10.5.1"
|
|
83
|
+
"constructs": "^10.5.1",
|
|
84
|
+
"lambda-failure-detector": "^0.2.1"
|
|
81
85
|
},
|
|
82
86
|
"keywords": [
|
|
83
87
|
"aurora",
|
|
@@ -104,7 +108,7 @@
|
|
|
104
108
|
"publishConfig": {
|
|
105
109
|
"access": "public"
|
|
106
110
|
},
|
|
107
|
-
"version": "0.
|
|
111
|
+
"version": "0.6.0",
|
|
108
112
|
"jest": {
|
|
109
113
|
"coverageProvider": "v8",
|
|
110
114
|
"testMatch": [
|