Skip to content

[Lex V2 interactive msg lambda] chore: upgrade Lambda Node.js runtime #281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Lambda forAmazon Connect Chat Interactive Messaging [Lex V2]

> 🔗 Link: https://serverlessrepo.aws.amazon.com/applications/us-west-2/533267401313/amazon-connect-interactive-messages-example-lex-v2

An AWS [Serverless Application Model](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/what-is-sam.html) (AWS SAM) template to deploy a boilerplate **AWS Lambda** and **Amazon Lex** V2 bot, enabling interactive message in Amazon Connect chat.

Interactive messages are pre-configured responses that your users can select from, making it easy for your customers to quickly resolve their issues through chat. Interactive messages can be designed using the new Amazon Connect Chat templates, which include several different customer display options (shared below), and are sent by Amazon Connect Chat using **Amazon Lex** chatbots.
Expand All @@ -9,7 +11,7 @@ Interactive messages are pre-configured responses that your users can select fro
## Specifications

- Amazon Lex V2
- AWS Lambda Runtime: `nodejs18.x`
- AWS Lambda Runtime: `nodejs22.x`

## Prerequisites

Expand Down Expand Up @@ -106,6 +108,10 @@ Interactive Message Chat Experience

## [Maintainers Only] Publish New Serverless Application Repository Version

This SAM template is manually published to one account/region. You can view the **Serverless Application Repository** here: https://console.aws.amazon.com/serverlessrepo/home?region=us-west-2#/published-applications/arn:aws:serverlessrepo:us-west-2:533267401313:applications~amazon-connect-interactive-messages-example-lex-v2

This is published live here: https://serverlessrepo.aws.amazon.com/applications/us-west-2/533267401313/amazon-connect-interactive-messages-example-lex-v2

### Prerequisites

- Install SAM CLI (`brew install aws-sam-cli`)
Expand Down Expand Up @@ -152,6 +158,9 @@ export AWS_SESSION_TOKEN="your-session-token"
6. Create a pull request

7. Publish the **Serverless Application Repository**:

> ⚠️ Notice: only run this command under **Two Person Review**

```bash
sam publish --template packaged.yaml --region us-west-2
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lex_codehook",
"version": "2.0.1",
"version": "2.0.2",
"description": "Amazon Lex Code Hook sample for Amazon Connect Interactive Messages",
"main": "app.js",
"homepage": "https://serverlessrepo.aws.amazon.com/applications/us-west-2/533267401313/amazon-connect-interactive-messages-example-lex-v2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Metadata:
Author: Amazon Connect Messaging
SpdxLicenseId: MIT-0
LicenseUrl: s3://amazon-connect-interactive-message-blog-assets-lex-v2/b974f276fb24c64a763c529eb1fd9a05
ReadmeUrl: s3://amazon-connect-interactive-message-blog-assets-lex-v2/55deff029765dcc1c4918a9573e3b6d7
ReadmeUrl: s3://amazon-connect-interactive-message-blog-assets-lex-v2/9f0102c2d8c6e2f2f29edc1bc8dcb98a
Labels:
- connect
- chat
Expand All @@ -20,7 +20,7 @@ Metadata:
- bot
- lex-v2
HomePageUrl: https://github.com/amazon-connect/amazon-connect-chat-ui-examples/tree/master/samTemplates/amazon-connect-interactive-messages-example-lex-v2
SemanticVersion: 2.0.1
SemanticVersion: 2.0.2
SourceCodeUrl: https://github.com/amazon-connect/amazon-connect-chat-ui-examples/tree/master/samTemplates/amazon-connect-interactive-messages-example-lex-v2
Globals:
Function:
Expand All @@ -29,9 +29,9 @@ Resources:
InteractiveMessagingLambdaFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: s3://amazon-connect-interactive-message-blog-assets-lex-v2/b4a4ab219d54e6c1daf877f8ad1c43ac
CodeUri: s3://amazon-connect-interactive-message-blog-assets-lex-v2/bddeba7332306200492579b7a378933c
Handler: app.lambdaHandler
Runtime: nodejs18.x
Runtime: nodejs22.x
Metadata:
SamResourceId: InteractiveMessagingLambdaFunction
Outputs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Metadata:
ReadmeUrl: README.md
Labels: ['connect', 'chat', 'interactive-messaging', 'contact-center', 'lambda', 'lex', 'bot', 'lex-v2']
HomePageUrl: https://github.com/amazon-connect/amazon-connect-chat-ui-examples/tree/master/samTemplates/amazon-connect-interactive-messages-example-lex-v2
SemanticVersion: 2.0.1
SemanticVersion: 2.0.2
SourceCodeUrl: https://github.com/amazon-connect/amazon-connect-chat-ui-examples/tree/master/samTemplates/amazon-connect-interactive-messages-example-lex-v2

Globals:
Expand All @@ -24,7 +24,8 @@ Resources:
Properties:
CodeUri: interactive-messaging-lex-codehook/
Handler: app.lambdaHandler
Runtime: nodejs18.x
# Lambda Node.js runtime releases: https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
Runtime: nodejs22.x # until Apr 30, 2027

Outputs:
InteractiveMessagingLambdaFunction:
Expand Down