quidproquo-actionprocessor-awslambda 0.0.109 → 0.0.110
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.
|
@@ -17,6 +17,7 @@ const getProcessEventBusSendMessage = (qpqConfig) => {
|
|
|
17
17
|
return ({ eventBusName, eventBusMessages, moduleOverride, environmentOverride, featureOverride, applicationOverride, }, session) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
18
|
const region = quidproquo_core_1.qpqCoreUtils.getApplicationModuleDeployRegion(qpqConfig);
|
|
19
19
|
const topicArn = (0, awsNamingUtils_1.getEventBusSnsTopicArn)(eventBusName, qpqConfig, moduleOverride || quidproquo_core_1.qpqCoreUtils.getApplicationModuleName(qpqConfig), environmentOverride || quidproquo_core_1.qpqCoreUtils.getApplicationModuleEnvironment(qpqConfig), applicationOverride || quidproquo_core_1.qpqCoreUtils.getApplicationName(qpqConfig), featureOverride || quidproquo_core_1.qpqCoreUtils.getApplicationModuleFeature(qpqConfig));
|
|
20
|
+
console.log(moduleOverride || quidproquo_core_1.qpqCoreUtils.getApplicationModuleName(qpqConfig), environmentOverride || quidproquo_core_1.qpqCoreUtils.getApplicationModuleEnvironment(qpqConfig), applicationOverride || quidproquo_core_1.qpqCoreUtils.getApplicationName(qpqConfig), featureOverride || quidproquo_core_1.qpqCoreUtils.getApplicationModuleFeature(qpqConfig));
|
|
20
21
|
yield (0, publishMessage_1.publishMessage)(topicArn, region, eventBusMessages.map((message) => {
|
|
21
22
|
const eventBusMessageWithSession = Object.assign(Object.assign({}, message), { storySession: session });
|
|
22
23
|
return JSON.stringify(eventBusMessageWithSession);
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.publishMessage = void 0;
|
|
13
13
|
const client_sns_1 = require("@aws-sdk/client-sns");
|
|
14
14
|
const publishMessage = (topicArn, region, messages) => __awaiter(void 0, void 0, void 0, function* () {
|
|
15
|
+
console.log(topicArn, region, JSON.stringify(messages, null, 2));
|
|
15
16
|
const sqsClient = new client_sns_1.SNSClient({
|
|
16
17
|
region,
|
|
17
18
|
});
|