Skip to content
This repository was archived by the owner on Nov 4, 2022. It is now read-only.

Commit 2e25d2d

Browse files
committed
Updated command to invoke canary
1 parent 24a0217 commit 2e25d2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

workshop/content/canaries/rollbacks/faketraffic/_index.en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ In your terminal, run the following command to invoke the Lambda function:
1010

1111
```
1212
aws lambda invoke --function-name \
13-
$(aws lambda list-functions | jq -r .Functions[0].FunctionName):live \
13+
$(aws lambda list-functions | jq -r -c '.Functions[] | select( .FunctionName | contains("sam-app-HelloWorldFunction")).FunctionName'):live \
1414
--payload '{}' \
1515
response.json
1616
```
@@ -34,7 +34,7 @@ counter=1
3434
while [ $counter -le 15 ]
3535
do
3636
aws lambda invoke --function-name \
37-
$(aws lambda list-functions | jq -r .Functions[0].FunctionName):live \
37+
$(aws lambda list-functions | jq -r -c '.Functions[] | select( .FunctionName | contains("sam-app-HelloWorldFunction")).FunctionName'):live \
3838
--payload '{}' \
3939
response.json
4040
sleep 1

0 commit comments

Comments
 (0)