@wraps.dev/cli 2.2.6 → 2.2.8
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/dist/cli.js +7 -20
- package/dist/cli.js.map +1 -1
- package/dist/lambda/event-processor/.bundled +1 -0
- package/dist/lambda/event-processor/index.mjs +1 -0
- package/dist/lambda/event-processor/index.ts +214 -0
- package/dist/lambda/sms-event-processor/.bundled +1 -0
- package/dist/lambda/sms-event-processor/index.mjs +1 -0
- package/dist/lambda/sms-event-processor/index.ts +145 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -147,7 +147,7 @@ var require_package = __commonJS({
|
|
|
147
147
|
"package.json"(exports, module) {
|
|
148
148
|
module.exports = {
|
|
149
149
|
name: "@wraps.dev/cli",
|
|
150
|
-
version: "2.2.
|
|
150
|
+
version: "2.2.8",
|
|
151
151
|
description: "CLI for deploying Wraps email infrastructure to your AWS account",
|
|
152
152
|
type: "module",
|
|
153
153
|
main: "./dist/cli.js",
|
|
@@ -3272,18 +3272,6 @@ async function findEventSourceMapping(functionName, queueArn) {
|
|
|
3272
3272
|
}
|
|
3273
3273
|
}
|
|
3274
3274
|
async function getLambdaCode(functionName) {
|
|
3275
|
-
if (functionName === "event-processor") {
|
|
3276
|
-
const coreBundleMarker = join4(LAMBDA_EVENT_PROCESSOR_PATH, ".bundled");
|
|
3277
|
-
if (existsSync4(coreBundleMarker)) {
|
|
3278
|
-
return LAMBDA_EVENT_PROCESSOR_PATH;
|
|
3279
|
-
}
|
|
3280
|
-
}
|
|
3281
|
-
if (functionName === "sms-event-processor") {
|
|
3282
|
-
const coreBundleMarker = join4(LAMBDA_SMS_EVENT_PROCESSOR_PATH, ".bundled");
|
|
3283
|
-
if (existsSync4(coreBundleMarker)) {
|
|
3284
|
-
return LAMBDA_SMS_EVENT_PROCESSOR_PATH;
|
|
3285
|
-
}
|
|
3286
|
-
}
|
|
3287
3275
|
const packageRoot = getPackageRoot();
|
|
3288
3276
|
const distLambdaPath = join4(packageRoot, "dist", "lambda", functionName);
|
|
3289
3277
|
const distBundleMarker = join4(distLambdaPath, ".bundled");
|
|
@@ -3395,8 +3383,8 @@ async function deployLambdaFunctions(config2) {
|
|
|
3395
3383
|
handler: "index.handler",
|
|
3396
3384
|
role: lambdaRole.arn,
|
|
3397
3385
|
code: new pulumi11.asset.FileArchive(eventProcessorCode),
|
|
3398
|
-
timeout:
|
|
3399
|
-
//
|
|
3386
|
+
timeout: 30,
|
|
3387
|
+
// Lambda just parses JSON and writes to DynamoDB
|
|
3400
3388
|
memorySize: 512,
|
|
3401
3389
|
environment: lambdaEnvironment,
|
|
3402
3390
|
tags: {
|
|
@@ -3414,8 +3402,8 @@ async function deployLambdaFunctions(config2) {
|
|
|
3414
3402
|
handler: "index.handler",
|
|
3415
3403
|
role: lambdaRole.arn,
|
|
3416
3404
|
code: new pulumi11.asset.FileArchive(eventProcessorCode),
|
|
3417
|
-
timeout:
|
|
3418
|
-
//
|
|
3405
|
+
timeout: 30,
|
|
3406
|
+
// Lambda just parses JSON and writes to DynamoDB
|
|
3419
3407
|
memorySize: 512,
|
|
3420
3408
|
environment: lambdaEnvironment,
|
|
3421
3409
|
tags: {
|
|
@@ -3458,7 +3446,6 @@ var init_lambda = __esm({
|
|
|
3458
3446
|
"src/infrastructure/resources/lambda.ts"() {
|
|
3459
3447
|
"use strict";
|
|
3460
3448
|
init_esm_shims();
|
|
3461
|
-
init_dist();
|
|
3462
3449
|
}
|
|
3463
3450
|
});
|
|
3464
3451
|
|
|
@@ -12311,8 +12298,8 @@ async function createSQSResources() {
|
|
|
12311
12298
|
});
|
|
12312
12299
|
const queue = new aws10.sqs.Queue("wraps-email-events", {
|
|
12313
12300
|
name: "wraps-email-events",
|
|
12314
|
-
visibilityTimeoutSeconds:
|
|
12315
|
-
//
|
|
12301
|
+
visibilityTimeoutSeconds: 60,
|
|
12302
|
+
// Must be >= Lambda timeout
|
|
12316
12303
|
messageRetentionSeconds: 345600,
|
|
12317
12304
|
// 4 days
|
|
12318
12305
|
receiveWaitTimeSeconds: 20,
|