@gradientedge/cdk-utils 6.11.0 → 6.13.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.
|
@@ -61,7 +61,7 @@ class EventManager {
|
|
|
61
61
|
const eventBus = new events.EventBus(scope, `${id}`, {
|
|
62
62
|
eventBusName: `${props.eventBusName}-${scope.props.stage}`,
|
|
63
63
|
});
|
|
64
|
-
utils.createCfnOutput(`${id}-eventBusName`, scope,
|
|
64
|
+
utils.createCfnOutput(`${id}-eventBusName`, scope, `${props.eventBusName}-${scope.props.stage}`);
|
|
65
65
|
utils.createCfnOutput(`${id}-eventBusArn`, scope, eventBus.eventBusArn);
|
|
66
66
|
return eventBus;
|
|
67
67
|
}
|
|
@@ -85,7 +85,7 @@ class LambdaManager {
|
|
|
85
85
|
*/
|
|
86
86
|
createLambdaFunction(id, scope, props, role, layers, code, handler, environment, vpc, securityGroups, accessPoint, mountPath, vpcSubnets) {
|
|
87
87
|
if (!props)
|
|
88
|
-
throw `Lambda props undefined`;
|
|
88
|
+
throw `Lambda props undefined for ${id}`;
|
|
89
89
|
const functionName = `${props.functionName}-${scope.props.stage}`;
|
|
90
90
|
let deadLetterQueue;
|
|
91
91
|
if (props.deadLetterQueueEnabled && props.dlq) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gradientedge/cdk-utils",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.13.0",
|
|
4
4
|
"description": "Utilities for AWS CDK provisioning",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"engines": {
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@types/lodash": "^4.14.
|
|
49
|
-
"@types/node": "^18.
|
|
48
|
+
"@types/lodash": "^4.14.186",
|
|
49
|
+
"@types/node": "^18.8.0",
|
|
50
50
|
"app-root-path": "^3.1.0",
|
|
51
|
-
"aws-cdk-lib": "^2.
|
|
52
|
-
"aws-sdk": "^2.
|
|
53
|
-
"constructs": "^10.1.
|
|
51
|
+
"aws-cdk-lib": "^2.44.0",
|
|
52
|
+
"aws-sdk": "^2.1227.0",
|
|
53
|
+
"constructs": "^10.1.120",
|
|
54
54
|
"lodash": "^4.17.21",
|
|
55
55
|
"moment": "^2.29.4",
|
|
56
56
|
"nconf": "^0.12.0",
|
|
@@ -59,36 +59,36 @@
|
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
62
|
-
"@types/jest": "^29.
|
|
63
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
64
|
-
"@typescript-eslint/parser": "^5.
|
|
62
|
+
"@types/jest": "^29.1.1",
|
|
63
|
+
"@typescript-eslint/eslint-plugin": "^5.38.1",
|
|
64
|
+
"@typescript-eslint/parser": "^5.38.1",
|
|
65
65
|
"aws-cdk": "*",
|
|
66
66
|
"babel-eslint": "^10.1.0",
|
|
67
67
|
"better-docs": "^2.7.2",
|
|
68
68
|
"codecov": "^3.8.3",
|
|
69
69
|
"commitizen": "^4.2.5",
|
|
70
|
-
"dotenv": "^16.0.
|
|
71
|
-
"eslint": "^8.
|
|
70
|
+
"dotenv": "^16.0.3",
|
|
71
|
+
"eslint": "^8.24.0",
|
|
72
72
|
"eslint-config-prettier": "^8.5.0",
|
|
73
73
|
"eslint-plugin-import": "^2.26.0",
|
|
74
74
|
"husky": "^8.0.1",
|
|
75
|
-
"jest": "^29.
|
|
75
|
+
"jest": "^29.1.2",
|
|
76
76
|
"jest-extended": "^3.1.0",
|
|
77
77
|
"jest-junit": "^14.0.1",
|
|
78
78
|
"jsdoc": "^3.6.11",
|
|
79
79
|
"jsdoc-babel": "^0.5.0",
|
|
80
80
|
"jsdoc-mermaid": "^1.0.0",
|
|
81
|
-
"lerna": "^5.5.
|
|
81
|
+
"lerna": "^5.5.4",
|
|
82
82
|
"prettier": "^2.7.1",
|
|
83
83
|
"prettier-plugin-organize-imports": "^3.1.1",
|
|
84
84
|
"rimraf": "^3.0.2",
|
|
85
85
|
"semantic-release": "^19.0.5",
|
|
86
|
-
"ts-jest": "^29.0.
|
|
86
|
+
"ts-jest": "^29.0.3",
|
|
87
87
|
"ts-node": "^10.9.1",
|
|
88
|
-
"typescript": "4.8.
|
|
88
|
+
"typescript": "4.8.4"
|
|
89
89
|
},
|
|
90
90
|
"optionalDependencies": {
|
|
91
|
-
"@babel/core": "^7.19.
|
|
91
|
+
"@babel/core": "^7.19.3",
|
|
92
92
|
"prop-types": "^15.8.1",
|
|
93
93
|
"react": "^18.2.0",
|
|
94
94
|
"react-dom": "^18.2.0"
|
|
@@ -40,7 +40,7 @@ export class EventManager {
|
|
|
40
40
|
eventBusName: `${props.eventBusName}-${scope.props.stage}`,
|
|
41
41
|
})
|
|
42
42
|
|
|
43
|
-
utils.createCfnOutput(`${id}-eventBusName`, scope,
|
|
43
|
+
utils.createCfnOutput(`${id}-eventBusName`, scope, `${props.eventBusName}-${scope.props.stage}`)
|
|
44
44
|
utils.createCfnOutput(`${id}-eventBusArn`, scope, eventBus.eventBusArn)
|
|
45
45
|
|
|
46
46
|
return eventBus
|
|
@@ -81,7 +81,7 @@ export class LambdaManager {
|
|
|
81
81
|
mountPath?: string,
|
|
82
82
|
vpcSubnets?: ec2.SubnetSelection
|
|
83
83
|
) {
|
|
84
|
-
if (!props) throw `Lambda props undefined`
|
|
84
|
+
if (!props) throw `Lambda props undefined for ${id}`
|
|
85
85
|
|
|
86
86
|
const functionName = `${props.functionName}-${scope.props.stage}`
|
|
87
87
|
|