2
 functions:
  update:
    handler: todos/update.update
    events:
      - http:
          path: /update/{title}
          method: put

How do I have to define the path param in order to pass it to my AWS Lambda function using serverless framework?

The language I want to use for lambda is Python3.

1
  • Similar question was asked here Commented Jan 8, 2020 at 10:56

1 Answer 1

5

This is correct, you can access the parameter you defined in the serverless.yml from event['pathParameters']['title'] inside the lambda.

hope this helps

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.