-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
This is really a question.
Is it possible to mock a Lambda@Edge event when running the lamdba through an api.
So my lambda expects something like:
{ "Records": [
{
"cf": {
"config": {
...
},
"request": {
"headers": {
...
},
"origin": {
...
}
},
"response": {
"status": "200",
"statusDescription": "OK",
"headers": {
...
}}}}]}
I can pass along a mock event if calling the lamda directly: sam local <lambda> -e event.json but if I make the request through the api, a GET (or whatever) event is passed and the lamdba fails and returns null (as I've told it to), but this breaks the start-api. So, basically, can I mock the cf event when it's running as an api?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels