You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-14Lines changed: 5 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -392,35 +392,26 @@ You can read more about how [cargo lambda watch](https://www.cargo-lambda.info/c
392
392
393
393
### Local testing with Runtime Interface Emulator (RIE)
394
394
395
-
For testing with the official AWS Lambda Runtime Interface Emulator, use the provided RIE testing infrastructure:
395
+
For testing with the official AWS Lambda Runtime Interface Emulator:
396
396
397
397
```bash
398
398
make test-rie
399
399
```
400
400
401
-
By default, this uses the `basic-lambda` example. To test a different example:
401
+
By default, this builds and tests the `basic-lambda` example. To build and test a custom handler:
402
402
403
403
```bash
404
-
make test-rie EXAMPLE=basic-sqs
405
-
make test-rie EXAMPLE=http-basic-lambda
404
+
HANDLER="basic-tenant-id" make test-rie
406
405
```
407
406
408
-
To test Lambda Managed Instances (concurrent polling), use:
407
+
To test Lambda Managed Instances (concurrent polling):
409
408
410
409
```bash
411
-
make test-rie-lmi EXAMPLE=basic-lambda-concurrent
410
+
RIE_MAX_CONCURRENCY=4 make test-rie
412
411
```
413
412
414
-
This command will:
415
-
1. Build a Docker image with Rust toolchain and RIE
416
-
2. Compile the specified example inside the Linux container
417
-
3. Start the RIE container on port 9000
418
-
4. Display the appropriate curl command for testing
419
-
420
413
Different examples expect different payload formats. Check the example's source code in `examples/EXAMPLE_NAME/src/main.rs`
421
414
422
-
This provides automated testing with Docker and RIE, ensuring your Lambda functions work in a Linux environment identical to AWS Lambda.
423
-
424
415
### Lambda Debug Proxy
425
416
426
417
Lambdas can be run and debugged locally using a special [Lambda debug proxy](https://github.com/rimutaka/lambda-debug-proxy) (a non-AWS repo maintained by @rimutaka), which is a Lambda function that forwards incoming requests to one AWS SQS queue and reads responses from another queue. A local proxy running on your development computer reads the queue, calls your Lambda locally and sends back the response. This approach allows debugging of Lambda functions locally while being part of your AWS workflow. The Lambda handler code does not need to be modified between the local and AWS versions.
0 commit comments