quidproquo-deploy-awscdk 0.0.22 → 0.0.24
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/lib/QPQApp.d.ts +2 -0
- package/lib/QPQApp.js +31 -0
- package/lib/QPQPrototypeSingleServiceStack.d.ts +2 -0
- package/lib/QPQPrototypeSingleServiceStack.js +31 -11
- package/lib/index.d.ts +2 -0
- package/lib/index.js +2 -0
- package/lib/lambdas/index.d.ts +3 -0
- package/lib/lambdas/index.js +19 -0
- package/lib/lambdas/lambdaAPIGatewayEvent.d.ts +7 -2
- package/lib/lambdas/lambdaAPIGatewayEvent.js +39 -38
- package/lib/lambdas/lambdaConfig.d.ts +2 -0
- package/lib/lambdas/lambdaEventBridgeEvent.d.ts +3 -2
- package/lib/lambdas/lambdaEventBridgeEvent.js +14 -12
- package/package.json +4 -4
package/lib/QPQApp.d.ts
ADDED
package/lib/QPQApp.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.createQPQApp = void 0;
|
|
27
|
+
const cdk = __importStar(require("aws-cdk-lib"));
|
|
28
|
+
const createQPQApp = () => {
|
|
29
|
+
return new cdk.App();
|
|
30
|
+
};
|
|
31
|
+
exports.createQPQApp = createQPQApp;
|
|
@@ -6,6 +6,8 @@ export interface QPQPrototypeStackProps extends DeploymentSettings {
|
|
|
6
6
|
region: string;
|
|
7
7
|
apiBuildPath: string;
|
|
8
8
|
webBuildPath: string;
|
|
9
|
+
lambdaAPIGatewayEventPath?: string;
|
|
10
|
+
lambdaEventBridgeEventPath?: string;
|
|
9
11
|
}
|
|
10
12
|
export declare class QPQPrototypeSingleServiceStack extends Stack {
|
|
11
13
|
constructor(scope: Construct, id: string, props: QPQPrototypeStackProps);
|
|
@@ -160,11 +160,11 @@ class QPQPrototypeSingleServiceStack extends aws_cdk_lib_1.Stack {
|
|
|
160
160
|
const resourceName = (name) => {
|
|
161
161
|
return `${settings.service}-${settings.environment}-${name}`;
|
|
162
162
|
};
|
|
163
|
-
const BLLayer = new
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
});
|
|
163
|
+
// const BLLayer = new aws_lambda.LayerVersion(this, `${id}-BLLayer`, {
|
|
164
|
+
// layerVersionName: `${id}-BLLayer`,
|
|
165
|
+
// code: new aws_lambda.AssetCode(props.apiBuildPath),
|
|
166
|
+
// compatibleRuntimes: [aws_lambda.Runtime.NODEJS_16_X],
|
|
167
|
+
// });
|
|
168
168
|
const ownedSecrets = quidproquo_core_1.qpqCoreUtils.getOwnedSecrets(props.qpqConfig).map((secret) => {
|
|
169
169
|
const realSecretName = `${secret.key}-${settings.service}-${settings.environment}`;
|
|
170
170
|
return {
|
|
@@ -177,6 +177,20 @@ class QPQPrototypeSingleServiceStack extends aws_cdk_lib_1.Stack {
|
|
|
177
177
|
}),
|
|
178
178
|
};
|
|
179
179
|
});
|
|
180
|
+
const ownedParameters = quidproquo_core_1.qpqCoreUtils.getOwnedParameters(props.qpqConfig).map((parameter) => {
|
|
181
|
+
const realParameterName = `${parameter.key}-${settings.service}-${settings.environment}`;
|
|
182
|
+
return {
|
|
183
|
+
parameterName: parameter.key,
|
|
184
|
+
realName: realParameterName,
|
|
185
|
+
parameter: new aws_cdk_lib_1.aws_ssm.StringParameter(this, `${id}-parameter-${parameter.key}`, {
|
|
186
|
+
parameterName: realParameterName,
|
|
187
|
+
description: `${settings.environment}-${settings.service}`,
|
|
188
|
+
stringValue: parameter.value,
|
|
189
|
+
// No additional costs ~ 4k max size
|
|
190
|
+
tier: aws_cdk_lib_1.aws_ssm.ParameterTier.STANDARD,
|
|
191
|
+
}),
|
|
192
|
+
};
|
|
193
|
+
});
|
|
180
194
|
const buckets = quidproquo_core_1.qpqCoreUtils.getStorageDriveNames(props.qpqConfig).map((driveName) => {
|
|
181
195
|
const bucketName = resourceName(driveName);
|
|
182
196
|
const bucket = new aws_cdk_lib_1.aws_s3.Bucket(this, bucketName, {
|
|
@@ -198,15 +212,18 @@ class QPQPrototypeSingleServiceStack extends aws_cdk_lib_1.Stack {
|
|
|
198
212
|
const runtimeConfigLambdaConfig = {
|
|
199
213
|
qpqConfig: props.qpqConfig,
|
|
200
214
|
secretNameMap: ownedSecrets.reduce((acc, os) => (Object.assign(Object.assign({}, acc), { [os.secretName]: os.realName })), {}),
|
|
215
|
+
parameterNameMap: ownedParameters.reduce((acc, os) => (Object.assign(Object.assign({}, acc), { [os.parameterName]: os.realName })), {}),
|
|
201
216
|
resourceNameMap: buckets.reduce((acc, b) => (Object.assign(Object.assign({}, acc), { [b.driveName]: b.bucketName })), {}),
|
|
202
217
|
};
|
|
203
218
|
const lambdaHandler = new aws_cdk_lib_1.aws_lambda_nodejs.NodejsFunction(this, `${settings.environment}-${settings.service}-lambda-rest`, {
|
|
204
219
|
functionName: `lambda-rest-${settings.service}-${settings.environment}`,
|
|
205
|
-
entry:
|
|
206
|
-
|
|
220
|
+
entry: props.lambdaAPIGatewayEventPath ||
|
|
221
|
+
path.resolve(__dirname, 'lambdas', 'lambdaAPIGatewayEvent.js'),
|
|
222
|
+
handler: 'executeAPIGatewayEvent',
|
|
207
223
|
timeout: cdk.Duration.seconds(25),
|
|
208
224
|
runtime: aws_cdk_lib_1.aws_lambda.Runtime.NODEJS_16_X,
|
|
209
|
-
layers: [BLLayer],
|
|
225
|
+
// layers: [BLLayer],
|
|
226
|
+
memorySize: 1024,
|
|
210
227
|
bundling: {
|
|
211
228
|
tsconfig: './tsconfig.json',
|
|
212
229
|
define: {
|
|
@@ -220,6 +237,7 @@ class QPQPrototypeSingleServiceStack extends aws_cdk_lib_1.Stack {
|
|
|
220
237
|
// Grant access to the lambda
|
|
221
238
|
buckets.forEach((b) => b.bucket.grantReadWrite(lambdaHandler));
|
|
222
239
|
ownedSecrets.forEach((os) => os.secret.grantRead(lambdaHandler));
|
|
240
|
+
ownedParameters.forEach((os) => os.parameter.grantRead(lambdaHandler));
|
|
223
241
|
// Create a rest api
|
|
224
242
|
const api = new aws_cdk_lib_1.aws_apigateway.LambdaRestApi(this, `${settings.environment}-${settings.service}-http-api`, {
|
|
225
243
|
restApiName: `${settings.environment}-${settings.service}-http-api`,
|
|
@@ -240,12 +258,13 @@ class QPQPrototypeSingleServiceStack extends aws_cdk_lib_1.Stack {
|
|
|
240
258
|
quidproquo_core_1.qpqCoreUtils.getScheduleEvents(props.qpqConfig).forEach((se, index) => {
|
|
241
259
|
const schedulerFunction = new aws_cdk_lib_1.aws_lambda_nodejs.NodejsFunction(this, `${settings.environment}-${settings.service}-SE-${index}`, {
|
|
242
260
|
functionName: `SE-${index}-${se.runtime}-${settings.environment}-${settings.service}`,
|
|
243
|
-
entry:
|
|
261
|
+
entry: props.lambdaEventBridgeEventPath ||
|
|
262
|
+
path.resolve(__dirname, 'lambdas', 'lambdaEventBridgeEvent.js'),
|
|
244
263
|
handler: 'execute',
|
|
245
264
|
timeout: cdk.Duration.minutes(15),
|
|
246
265
|
runtime: aws_cdk_lib_1.aws_lambda.Runtime.NODEJS_16_X,
|
|
247
|
-
|
|
248
|
-
|
|
266
|
+
// layers: [BLLayer],
|
|
267
|
+
memorySize: 1024,
|
|
249
268
|
bundling: {
|
|
250
269
|
tsconfig: './tsconfig.json',
|
|
251
270
|
define: {
|
|
@@ -261,6 +280,7 @@ class QPQPrototypeSingleServiceStack extends aws_cdk_lib_1.Stack {
|
|
|
261
280
|
});
|
|
262
281
|
buckets.forEach((b) => b.bucket.grantReadWrite(schedulerFunction));
|
|
263
282
|
ownedSecrets.forEach((os) => os.secret.grantRead(schedulerFunction));
|
|
283
|
+
ownedParameters.forEach((os) => os.parameter.grantRead(schedulerFunction));
|
|
264
284
|
// EventBridge rule which runs every five minutes
|
|
265
285
|
const cronRule = new aws_cdk_lib_1.aws_events.Rule(this, `${id}-se-cronrule-${index}`, {
|
|
266
286
|
schedule: aws_cdk_lib_1.aws_events.Schedule.expression(`cron(${se.cronExpression})`),
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -17,4 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./utils"), exports);
|
|
18
18
|
__exportStar(require("./DeploymentType"), exports);
|
|
19
19
|
__exportStar(require("./DeploymentSettings"), exports);
|
|
20
|
+
__exportStar(require("./QPQApp"), exports);
|
|
20
21
|
__exportStar(require("./QPQPrototypeSingleServiceStack"), exports);
|
|
22
|
+
__exportStar(require("./lambdas"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./lambdaConfig"), exports);
|
|
18
|
+
__exportStar(require("./lambdaAPIGatewayEvent"), exports);
|
|
19
|
+
__exportStar(require("./lambdaEventBridgeEvent"), exports);
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { Context } from 'aws-lambda';
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
2
|
+
import { ActionProcessorListResolver } from './lambdaConfig';
|
|
3
|
+
export declare const getAPIGatewayEventExecutor: (getCustomActionProcessors?: ActionProcessorListResolver) => (event: import("aws-lambda").APIGatewayProxyEvent, context: Context) => Promise<{
|
|
4
|
+
statusCode: any;
|
|
5
|
+
body: string;
|
|
6
|
+
headers: any;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const executeAPIGatewayEvent: (event: import("aws-lambda").APIGatewayProxyEvent, context: Context) => Promise<{
|
|
4
9
|
statusCode: any;
|
|
5
10
|
body: string;
|
|
6
11
|
headers: any;
|
|
@@ -9,13 +9,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.executeAPIGatewayEvent = exports.getAPIGatewayEventExecutor = void 0;
|
|
13
13
|
const quidproquo_actionprocessor_node_1 = require("quidproquo-actionprocessor-node");
|
|
14
14
|
const quidproquo_actionprocessor_awslambda_1 = require("quidproquo-actionprocessor-awslambda");
|
|
15
15
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
16
16
|
const lambdaConfig_1 = require("./lambdaConfig");
|
|
17
|
+
// TODO: Make this a util or something based on server time or something..
|
|
17
18
|
const getDateNow = () => new Date().toISOString();
|
|
18
|
-
exports.getDateNow = getDateNow;
|
|
19
19
|
const ErrorTypeHttpResponseMap = {
|
|
20
20
|
[quidproquo_core_1.ErrorTypeEnum.BadRequest]: 400,
|
|
21
21
|
[quidproquo_core_1.ErrorTypeEnum.Unauthorized]: 401,
|
|
@@ -28,42 +28,43 @@ const ErrorTypeHttpResponseMap = {
|
|
|
28
28
|
[quidproquo_core_1.ErrorTypeEnum.GenericError]: 500,
|
|
29
29
|
[quidproquo_core_1.ErrorTypeEnum.NotImplemented]: 501,
|
|
30
30
|
[quidproquo_core_1.ErrorTypeEnum.NoContent]: 204,
|
|
31
|
+
[quidproquo_core_1.ErrorTypeEnum.Invalid]: 422,
|
|
31
32
|
};
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
//
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
33
|
+
const getAPIGatewayEventExecutor = (getCustomActionProcessors = () => ({})) => {
|
|
34
|
+
return (event, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
35
|
+
// Build a processor for the session and stuff
|
|
36
|
+
// Remove the non route ones ~ let the story execute action add them
|
|
37
|
+
const storyActionProcessor = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, quidproquo_actionprocessor_node_1.coreActionProcessor), quidproquo_actionprocessor_node_1.webserverActionProcessor), (0, quidproquo_actionprocessor_awslambda_1.getAPIGatewayEventActionProcessor)(lambdaConfig_1.lambdaRuntimeConfig.qpqConfig)), (0, quidproquo_actionprocessor_awslambda_1.getConfigGetSecretActionProcessor)(lambdaConfig_1.lambdaRuntimeConfig)), (0, quidproquo_actionprocessor_awslambda_1.getConfigGetParameterActionProcessor)(lambdaConfig_1.lambdaRuntimeConfig)), (0, quidproquo_actionprocessor_awslambda_1.getSystemActionProcessor)(lambdaConfig_1.lambdaRuntimeConfig)), (0, quidproquo_actionprocessor_awslambda_1.getFileActionProcessor)(lambdaConfig_1.lambdaRuntimeConfig)), getCustomActionProcessors(lambdaConfig_1.lambdaRuntimeConfig));
|
|
38
|
+
const logger = (result) => __awaiter(void 0, void 0, void 0, function* () {
|
|
39
|
+
// addResult(
|
|
40
|
+
// envConfig.appName,
|
|
41
|
+
// getDateNow(),
|
|
42
|
+
// doWeCarePath,
|
|
43
|
+
// "route-infrastructure",
|
|
44
|
+
// "infrastructure",
|
|
45
|
+
// "askRoute",
|
|
46
|
+
// result
|
|
47
|
+
// );
|
|
48
|
+
});
|
|
49
|
+
// // Run the callback
|
|
50
|
+
const resolveStory = (0, quidproquo_core_1.createRuntime)({}, storyActionProcessor, getDateNow, logger, quidproquo_actionprocessor_awslambda_1.awsLambdaUtils.randomGuid);
|
|
51
|
+
const result = yield resolveStory(quidproquo_core_1.askProcessEvent, [event, context]);
|
|
52
|
+
// // Run the callback
|
|
53
|
+
if (!result.error) {
|
|
54
|
+
return {
|
|
55
|
+
statusCode: result.result.statusCode,
|
|
56
|
+
body: JSON.stringify(result.result.body),
|
|
57
|
+
headers: result.result.headers,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
const code = ErrorTypeHttpResponseMap[result.error.errorType];
|
|
56
61
|
return {
|
|
57
|
-
statusCode:
|
|
58
|
-
body: JSON.stringify(result.error
|
|
59
|
-
headers:
|
|
62
|
+
statusCode: code || 500,
|
|
63
|
+
body: JSON.stringify(result.error),
|
|
64
|
+
headers: {},
|
|
60
65
|
};
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
headers: {},
|
|
67
|
-
};
|
|
68
|
-
});
|
|
69
|
-
exports.execute = execute;
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
exports.getAPIGatewayEventExecutor = getAPIGatewayEventExecutor;
|
|
69
|
+
// Default executor
|
|
70
|
+
exports.executeAPIGatewayEvent = (0, exports.getAPIGatewayEventExecutor)();
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
import { ActionProcessorList } from 'quidproquo-core';
|
|
1
2
|
import { QPQAWSLambdaConfig } from 'quidproquo-actionprocessor-awslambda';
|
|
2
3
|
export declare const lambdaRuntimeConfig: QPQAWSLambdaConfig;
|
|
4
|
+
export type ActionProcessorListResolver = (lambdaRuntimeConfig: QPQAWSLambdaConfig) => ActionProcessorList;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { EventBridgeEvent, Context } from 'aws-lambda';
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
2
|
+
import { ActionProcessorListResolver } from './lambdaConfig';
|
|
3
|
+
export declare const getEventBridgeEventExecutor: (getCustomActionProcessors?: ActionProcessorListResolver) => (event: EventBridgeEvent<string, void>, context: Context) => Promise<void>;
|
|
4
|
+
export declare const executeEventBridgeEvent: (event: EventBridgeEvent<string, void>, context: Context) => Promise<void>;
|
|
@@ -9,21 +9,23 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.executeEventBridgeEvent = exports.getEventBridgeEventExecutor = void 0;
|
|
13
13
|
const quidproquo_actionprocessor_node_1 = require("quidproquo-actionprocessor-node");
|
|
14
14
|
const quidproquo_actionprocessor_awslambda_1 = require("quidproquo-actionprocessor-awslambda");
|
|
15
15
|
const quidproquo_core_1 = require("quidproquo-core");
|
|
16
16
|
const lambdaConfig_1 = require("./lambdaConfig");
|
|
17
17
|
// TODO: Make this a util or something based on server time or something..
|
|
18
18
|
const getDateNow = () => new Date().toISOString();
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
});
|
|
29
|
-
|
|
19
|
+
const getEventBridgeEventExecutor = (getCustomActionProcessors = () => ({})) => {
|
|
20
|
+
return (event, context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
21
|
+
// Build a processor for the session and stuff
|
|
22
|
+
// Remove the non event ones
|
|
23
|
+
const storyActionProcessor = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, quidproquo_actionprocessor_node_1.coreActionProcessor), quidproquo_actionprocessor_node_1.webserverActionProcessor), (0, quidproquo_actionprocessor_awslambda_1.getEventBridgeEventActionProcessor)(lambdaConfig_1.lambdaRuntimeConfig)), (0, quidproquo_actionprocessor_awslambda_1.getSystemActionProcessor)(lambdaConfig_1.lambdaRuntimeConfig)), (0, quidproquo_actionprocessor_awslambda_1.getFileActionProcessor)(lambdaConfig_1.lambdaRuntimeConfig)), (0, quidproquo_actionprocessor_awslambda_1.getConfigGetSecretActionProcessor)(lambdaConfig_1.lambdaRuntimeConfig)), (0, quidproquo_actionprocessor_awslambda_1.getConfigGetParameterActionProcessor)(lambdaConfig_1.lambdaRuntimeConfig)), getCustomActionProcessors(lambdaConfig_1.lambdaRuntimeConfig));
|
|
24
|
+
const logger = (result) => __awaiter(void 0, void 0, void 0, function* () { });
|
|
25
|
+
// Run the callback
|
|
26
|
+
const resolveStory = (0, quidproquo_core_1.createRuntime)({}, storyActionProcessor, getDateNow, logger, quidproquo_actionprocessor_awslambda_1.awsLambdaUtils.randomGuid);
|
|
27
|
+
yield resolveStory(quidproquo_core_1.askProcessEvent, [event, context]);
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
exports.getEventBridgeEventExecutor = getEventBridgeEventExecutor;
|
|
31
|
+
exports.executeEventBridgeEvent = (0, exports.getEventBridgeEventExecutor)();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quidproquo-deploy-awscdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.js",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
},
|
|
25
25
|
"homepage": "https://github.com/joe-coady/quidproquo#readme",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"aws-cdk-lib": "2.
|
|
28
|
-
"aws-cdk": "2.
|
|
29
|
-
"constructs": "^10.
|
|
27
|
+
"aws-cdk-lib": "^2.55.1",
|
|
28
|
+
"aws-cdk": "^2.55.1",
|
|
29
|
+
"constructs": "^10.1.191",
|
|
30
30
|
"esbuild": "^0.15.16",
|
|
31
31
|
"quidproquo-actionprocessor-awslambda": "*",
|
|
32
32
|
"quidproquo-actionprocessor-node": "*",
|