I have some python AWS lambdas which are deployed using serverless framework and I was able to retrieve the path variables using:
event.get("variable")
I am not sure what has changed but now I need to retrieve these path parameters using:
event.get("path").get("variable")
I am using lambda integration and my serverless configuration has not changed and looks like:
events:
- http:
operationId: delete
path: "${self:custom.prefix}/{id}"
method: delete
integration: lambda
request:
parameters:
paths:
id: true
I want to retrieve the id variable using event.get("id"), what do I need to do to remap the path parameters to be retrievable straight from the event?