Skip to content

Commit

Permalink
Do not bundle AWS SDK if default implementation is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolk committed Sep 6, 2024
1 parent dd9a67e commit 9535f95
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ export class ConversationHandlerFunction
entry: this.props.entry ?? defaultHandlerFilePath,
handler: 'handler',
bundling: {
bundleAwsSDK: true,
// Do not bundle SDK if conversation handler is using our default implementation which is
// compatible with Lambda provided SDK.
// For custom entry we do bundle SDK as we can't control version customer is coding against.
bundleAwsSDK: !!this.props.entry,
},
logGroup: new LogGroup(this, 'conversationHandlerFunctionLogGroup', {
retention: RetentionDays.INFINITE,
Expand Down

0 comments on commit 9535f95

Please sign in to comment.