Skip to content

Commit a6f0e33

Browse files
lzauggcloudlena
authored andcommitted
Fix file path for level 5
1 parent c9aa3f9 commit a6f0e33

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -868,9 +868,10 @@ To reach level 5, you'll need to learn how to decouple multiple functions asynch
868868
1. Create a deployment package for your new functions:
869869

870870
```shell
871-
cd level-5/function
871+
pushd level-5/function
872872
npm install
873873
zip -r function.zip ./*
874+
popd
874875
```
875876

876877
1. Create two new roles:
@@ -885,9 +886,9 @@ To reach level 5, you'll need to learn how to decouple multiple functions asynch
885886

886887
```shell
887888
export SENDER_ROLE_ARN=$(aws iam get-role --role-name "sender-exec-cli-${AWSUSER}" --query Role.Arn --output text)
888-
aws lambda create-function --function-name "sender-cli-${AWSUSER}" --zip-file fileb://function.zip --handler index.senderHandler --runtime nodejs22.x --role "$SENDER_ROLE_ARN"
889+
aws lambda create-function --function-name "sender-cli-${AWSUSER}" --zip-file fileb://level-5/function.zip --handler index.senderHandler --runtime nodejs22.x --role "$SENDER_ROLE_ARN"
889890
export RECIPIENT_ROLE_ARN=$(aws iam get-role --role-name "recipient-exec-cli-${AWSUSER}" --query Role.Arn --output text)
890-
aws lambda create-function --function-name "recipient-cli-${AWSUSER}" --zip-file fileb://function.zip --handler index.recipientHandler --runtime nodejs22.x --role "$RECIPIENT_ROLE_ARN"
891+
aws lambda create-function --function-name "recipient-cli-${AWSUSER}" --zip-file fileb://level-5/function.zip --handler index.recipientHandler --runtime nodejs22.x --role "$RECIPIENT_ROLE_ARN"
891892
```
892893

893894
1. Create a new message queue

0 commit comments

Comments
 (0)