Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cdk/src/constructs/slack-integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,17 @@ export class SlackIntegration extends Construct {
}));

// --- Slash Command Processor (async worker) ---
// Memory bumped from default 128 MB → 512 MB after module-init OOM
// surfaced in dev. Bundle grew past the 128 MB cap once createTaskCore's
// transitive dependency graph (Cedar, attachment-screening) imported
// here through the shared task-creation path.
const commandProcessorFn = new lambda.NodejsFunction(this, 'CommandProcessorFn', {
entry: path.join(handlersDir, 'slack-command-processor.ts'),
handler: 'handler',
runtime: Runtime.NODEJS_24_X,
architecture: Architecture.ARM_64,
timeout: Duration.seconds(30),
memorySize: 512,
environment: {
...createTaskEnv,
SLACK_USER_MAPPING_TABLE_NAME: this.userMappingTable.tableName,
Expand Down
Loading