Skip to content

Commit 9247b9f

Browse files
committed
Upgrade Node.js to version 22
1 parent f810394 commit 9247b9f

File tree

12 files changed

+33
-18
lines changed

12 files changed

+33
-18
lines changed

.cleanup/cloud-nuke.yml

+17-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,23 @@
55
IAMUsers:
66
exclude:
77
names_regex:
8-
- ^lena-fuhrimann$
9-
- ^mathis-kretz$
8+
- -bespinian$
9+
IAMGroups:
10+
exclude:
11+
names_regex:
12+
- ^participants$
13+
- ^facilitators$
14+
IAMRoles:
15+
exclude:
16+
names_regex:
17+
- ^AWSServiceRoleFor
18+
- ^fibonacci-
19+
- ^powertools-
20+
LambdaFunction:
21+
exclude:
22+
names_regex:
23+
- ^fibonacci
24+
- ^powertools$
1025
DynamoDB:
1126
exclude:
1227
names_regex:

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ To authenticate your CLI, you first need to create an access key by performing t
132132
1. Create the function:
133133

134134
```shell
135-
aws lambda create-function --function-name "my-function-cli-${AWSUSER}" --zip-file fileb://function.zip --handler index.handler --runtime nodejs18.x --role "arn:aws:iam::${ACCOUNT_ID}:role/lambda-exec-cli-${AWSUSER}"
135+
aws lambda create-function --function-name "my-function-cli-${AWSUSER}" --zip-file fileb://function.zip --handler index.handler --runtime nodejs22.x --role "arn:aws:iam::${ACCOUNT_ID}:role/lambda-exec-cli-${AWSUSER}"
136136
```
137137

138138
1. Set the `NAME` environment variable to your user name:
@@ -887,9 +887,9 @@ To reach level 5, you'll need to learn how to decouple multiple functions asynch
887887

888888
```shell
889889
export SENDER_ROLE_ARN=$(aws iam get-role --role-name "sender-exec-cli-${AWSUSER}" --query Role.Arn --output text)
890-
aws lambda create-function --function-name "sender-cli-${AWSUSER}" --zip-file fileb://function.zip --handler index.senderHandler --runtime nodejs18.x --role "$SENDER_ROLE_ARN"
890+
aws lambda create-function --function-name "sender-cli-${AWSUSER}" --zip-file fileb://function.zip --handler index.senderHandler --runtime nodejs22.x --role "$SENDER_ROLE_ARN"
891891
export RECIPIENT_ROLE_ARN=$(aws iam get-role --role-name "recipient-exec-cli-${AWSUSER}" --query Role.Arn --output text)
892-
aws lambda create-function --function-name "recipient-cli-${AWSUSER}" --zip-file fileb://function.zip --handler index.recipientHandler --runtime nodejs18.x --role "$RECIPIENT_ROLE_ARN"
892+
aws lambda create-function --function-name "recipient-cli-${AWSUSER}" --zip-file fileb://function.zip --handler index.recipientHandler --runtime nodejs22.x --role "$RECIPIENT_ROLE_ARN"
893893
```
894894

895895
1. Create a new message queue
@@ -1050,9 +1050,9 @@ Furthermore, you need to have valid credentials for your AWS user set up in your
10501050

10511051
1. Navigate back to the workshop repo
10521052

1053-
```shell
1054-
popd
1055-
```
1053+
```shell
1054+
popd
1055+
```
10561056

10571057
1. Set your AWS user name as an environment variable for Terraform
10581058

level-0/advanced/terraform/function.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resource "aws_lambda_function" "my_function" {
33

44
filename = "${path.module}/function.zip"
55

6-
runtime = "nodejs18.x"
6+
runtime = "nodejs22.x"
77
handler = "index.handler"
88

99
environment {

level-1/advanced/terraform/function.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resource "aws_lambda_function" "my_function" {
33

44
filename = "${path.module}/function.zip"
55

6-
runtime = "nodejs18.x"
6+
runtime = "nodejs22.x"
77
handler = "index.handler"
88

99
source_code_hash = data.archive_file.my_function.output_base64sha256

level-2/advanced/terraform/function.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resource "aws_lambda_function" "my_function" {
33

44
filename = data.archive_file.my_function.output_path
55

6-
runtime = "nodejs18.x"
6+
runtime = "nodejs22.x"
77
handler = "index.handler"
88

99
environment {

level-3/advanced/terraform/function.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resource "aws_lambda_function" "my_function" {
33

44
filename = data.archive_file.lambda_my_function.output_path
55

6-
runtime = "nodejs18.x"
6+
runtime = "nodejs22.x"
77
handler = "index.handler"
88

99
timeout = 1

level-4/advanced/terraform/function.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resource "aws_lambda_function" "my_function" {
33

44
filename = data.archive_file.my_function.output_path
55

6-
runtime = "nodejs18.x"
6+
runtime = "nodejs22.x"
77
handler = "index.handler"
88

99
environment {

level-5/advanced/terraform/recipient_function.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resource "aws_lambda_function" "recipient" {
33

44
filename = data.archive_file.functions.output_path
55

6-
runtime = "nodejs18.x"
6+
runtime = "nodejs22.x"
77
handler = "index.recipientHandler"
88

99
tracing_config {

level-5/advanced/terraform/sender_function.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resource "aws_lambda_function" "sender" {
33

44
filename = data.archive_file.functions.output_path
55

6-
runtime = "nodejs18.x"
6+
runtime = "nodejs22.x"
77
handler = "index.senderHandler"
88

99
tracing_config {

level-6/advanced/terraform/function.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resource "aws_lambda_function" "my_function" {
33

44
filename = data.archive_file.my_function.output_path
55

6-
runtime = "nodejs18.x"
6+
runtime = "nodejs22.x"
77
handler = "index.handler"
88

99
environment {

level-8/advanced/terraform/function.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resource "aws_lambda_function" "my_function" {
33

44
filename = data.archive_file.my_function.output_path
55

6-
runtime = "nodejs18.x"
6+
runtime = "nodejs22.x"
77
handler = "index.handler"
88

99
environment {

level-9/advanced/terraform/function.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resource "aws_lambda_function" "my_function" {
33

44
filename = "${path.module}/function.zip"
55

6-
runtime = "nodejs18.x"
6+
runtime = "nodejs22.x"
77
handler = "index.handler"
88

99
source_code_hash = data.archive_file.my_function.output_base64sha256

0 commit comments

Comments
 (0)